Random power help

LordChicken

New Member
Reaction score
0
Hello i need help making a trigger that makes a random of all the players farmer get one of several(lets say 5:D) random abilitys

if you want a example of somthing like this i woud say look at parasite 2,darkdeeds,phase killer and meny more

please help


thank you:thup:
 

Cheesy

some fucker
Reaction score
95
Here's a freehand attempt. It's late, and I don't have WE on this computer, and I haven't used GUI in a while so there might be some mistakes.

Variables:
Farmer - Unit
Skill - Ability - Array (Size 5)
Amount - Integer


Trigger 1: Ability Init
Code:
Events
     Map Initialization
Conditions
Actions
     Set Skill[1] = [I](Spell 1)[/I]
     Set Skill[2] = [I](Spell 2)[/I]
     Set Skill[3] = [I](Spell 3)[/I]
     Set Skill[4] = [I](Spell 4)[/I]
     Set Skill[5] = [I](Spell 5)[/I]

Trigger 2: Learn Ability
Code:
Events
    [Your Event]
Conditions
    [Your Conditions]
Actions
    Set Ammount (Integer Variable) = Random Integer between (1 and 5)
    Set Farmer = Leveling Unit
    Learn Skill[Ammount] for Farmer

Hope this helped,

CheesyBeefy
 

LordChicken

New Member
Reaction score
0
thanks for the help! im gonna try it now! eny more help would be nice! i hope this works out


thanks buddy

question will this add ability to all the units? or just 1? ps what kind of conditions do YOU think i should use buddy?
 

Cheesy

some fucker
Reaction score
95
Well, if you use the event:
Code:
A unit gains a level
you should probably use the condition:
Code:
Level of (Leveling Unit) equal to [B][YOUR LEVEL][/B]
Good luck! :thup:
 
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