"casting" variables

G

Guesto

Guest
Is there a way to "cast" variables in this editor.

And by that I mean.. I want to use Integer values (ex. Hero Attribute Numbers) but then use them in a Real value context (ex dealing damage).

The Editor will not allow me to use my Integer variables when I go to assign Damage.
 

Mind

New Member
Reaction score
7
Code:
Events:
    Unit - A unit takes damage
Conditions:
Actions:
    Set DamageDealt = (Damage taken)
 
G

Guesto

Guest
I'm not sure what you're doing there, but I'm pretty sure it is not what I'm talking about.

Here is what I am trying to do. I have a variable with a Hero's Intelligence stat stored in it. This variable *has* to be an INTEGER.

Later on in my Trigger, I want to deal Damage to a target equal to that same Hero's Intelligence stat. If you want to choose a variable to replace a numerical value for this damage (the default setting is a numerical value), it *has* to be a REAL variable. It cannot be INTEGER. It will not let you choose that variable.


So how can I get a REAL variable to "turn into" an INTEGER variable. (called "casting" when I learned it in Java programming)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top