Random Spells ?

ggoi

New Member
Reaction score
0
How to Give the Heroes Random Spells when they are picked >? and if one spell belongs to another hero it dont be given to someone else ?
 

RangerX

I am justice!
Reaction score
69
my idea:
make an ability array that contains all ability that you want for each heroes in part that will be like this
ilidian[1] is imolation
ilidian[2] is manaburn
...
warden[1] is fan of knives
warden[2] is blink
and so on ..

then make a trigger that is like this
Trigger:
  • Warden
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Warden
    • Actions
      • Set spell_integer = (Random integer number between 1 and 3)
      • Unit - Add warden[spell_integer] to (Triggering unit)
 
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