mode random spell

mute

New Member
Reaction score
2
hi
can someone tell me how to do this
if player 1 ( host ) type -rs (random spell ) that's make all unit eve who against them have random spell
 

Kahiera

Active Member
Reaction score
9
if player 1 ( host ) type -rs (random spell ) that's make all unit eve who against them have random spell

-------------------

if player 1 types -rs
make all units, even opponents, get a random spell

----

i think
 

Kahiera

Active Member
Reaction score
9
add each spell to an array, then do a random interger, then pick all heroes, add them to a unit group, pick a unit from the unit group, give them the spell with the random interger in the array, remove the unit from the unit group, repeat... i have to go back to work soon so i can't explain in more precision at the moment
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Here my good sir.
I added like 4 different triggers you can use.
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Is that what you needed?
:banghead::banghead::banghead::banghead::banghead::banghead::banghead:
No rep.
:(:(:(:(:(:(:(:(:(
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Oh did it work?I think i deleted the triggers 1st musta forgot the spell.
Well if u wanted to see it here it is.
Edit: I actually made it for some1 on THWS because it seemed like an easy and fun spell to make.
I was wrong....
 

mute

New Member
Reaction score
2
nice spell hawk :D
and i want add 3 spell for all player and 1 spell not random all player have it like blink
 

HydraRancher

Truth begins in lies
Reaction score
197
Trigger:
  • Initialization
    • Events
      • Map Initialization
    • Conditions
    • Actions
      • Set Ability[1] = Blink
      • -------------Carry on------------

Trigger:
  • Initialization
    • Events
      • Player - Player 1 (Red) types -rs chat message as an Exact Match
    • Conditions
    • Actions
      • Set Random_Ability = Ability[Random Number from 1 to Number of Abilities]
      • Set Temp_Group = Units in (Playable Map Area)
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Unit - Add Random_Ability to (Picked Unit)
      • Custom Script: call DestroyGroup (udg_Temp_Group)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top