Where is action (or something like) "Pick Random Integer...ect."?

Estel3

New Member
Reaction score
6
I'm working on a spell for an anti-spellcaster unit, where a unit casts a spell in range of the aura, the projector of the aura (or an ally, if I decide to go that way) has a 5-25% chance of being healed for some amount of health.

But I can't figure out how to pick a random integer. I think I can pick a random integer between 1 and 100 but I can't make it pick a number between like 5 and the level of the ability for the projector of the aura (I store him in a variable when he learns the ability).

Could someone please tell me how I can do this? Thanks.
 

elmstfreddie

The Finglonger
Reaction score
203
Event: A unit starts the effect of an ability
Conditions: Distance between casting unit and aura projector less than X
Random integer between 1-100 is less than random number between 5-(real(level of ability for(unit)))
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
I think you need something like this:

Code:
Untitled Trigger 001
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Random integer number between 5 and (Level of <Your Ability> for (Casting unit))) Equal to <Whatever>
    Actions
        <Do whatever>
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top