Integer To Real Variable Conversion

Undead_Lives

New Member
Currently I'm trying to make a trigger for revive time. I want the Wait time to be based on the hero's level. The only problem is, Wait needs a Real variable. Now, I've tried making a variable for the level and converting to a real variable, and i've also tried to create a real variable based on the hero's level, both theories didn't work. So, I'm asking, how do I convert an Integer to a Real?
 
Werbung:

Xeridanus

New Member
im assuming you are using the GUI and not JASS. im not certain of this but i think you can convert real's to int's quite easily. going the other way is the problem when you have a fractional part. look for it in the list of things you can put in a real place.

if you are using JASS, which i think is based off C, or C++ then don't worry at all. they both (all three?) have no trouble going from int to double.
 

Xeridanus

New Member
ugh, i shall have to get my CD. ok back again, though you didn't notice. :p .



ok, i took a screen capture. man i must be bored... oh well.
 
Werbung:
Top