Random Integers trigger spells.

idk_a_name

ABC GUM :D
Reaction score
43
I'm trying to create a spell that deals with random integers.

The main concept of the spell is the Hero cast the spell and a random number is picked in the trigger. If the number is say, 1-25 the spell will do a something like heal everyone, but if the number is 25-35 the spell will be something else, ect, ect with different numbers.
 

XxShadyxX

I abused the rep system.
Reaction score
81
So whats the problem?

do a if than else with a integer
Like this

Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
    • Actions
      • Set A[(Player number of (Owner of (Triggering unit)))] = (Random integer number between 1 and 35)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • A[(Player number of (Owner of (Triggering unit)))] Less than or equal to 25
        • Then - Actions
        • "Healing Trigger"
        • Else - Actions
        • Do another If than else function here
 
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