Units spawns with random abilities

[DS]Rebel

New Member
Reaction score
1
i want to make a footman spawning with random abilities.
please tell me which variables to use and give me a trigger thanks very much.

i used search but i couldnt find what i was looking for.
 

_whelp

New Member
Reaction score
54
You would have to make an integer array and fill it up with abilities' raw codes and give them the ability with a random integer number for the array.

Sorry if that doesn't make any sense.
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
before i can finish the trigger** how are the footman spawned?

what he means is like this:
Trigger:
  • Untitled Trigger 023
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Set Unit_ability[1] = AOE damage upon death (Big Mine)
      • Set Unit_ability[2] = Abolish Magic (Neutral Hostile, second position)
      • Set Unit_ability[3] = Animate Dead (Neutral Hostile)
      • Set Unit_ability[4] = AOE damage upon death (Big Mine)

and what gives the unit the ability is:
Trigger:
  • Untitled Trigger 022
    • Events
    • Conditions
    • Actions
      • Set TempInteger = (Random integer number between 1 and 10)
      • Unit - Add Unit_ability[TempInteger] to Unit
 

[DS]Rebel

New Member
Reaction score
1
would this trigger actually work?
Trigger:
  • tests
    • Events
      • Unit - A unit enters Human Top <gen>
      • Unit - A unit enters Human Bottom <gen>
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Entering unit)) Equal to Footman
          • ((Entering unit) belongs to an ally of Player 1 (Red)) Equal to True
    • Actions
      • Set UnitAbility[1] = Bash (Neutral Hostile 1)
      • Set UnitAbility[2] = Cleaving Attack (Neutral Hostile)
      • Set UnitAbility[3] = Critical Strike (Chiefs)
      • Set UnitAbility[4] = Blink
      • Set UnitAbility[5] = Devotion Aura (Neutral Hostile)
      • Set UnitAbility[6] = Inner Fire (Forgotten Man)
      • Set UnitAbility[7] = Frenzy
      • Set UnitAbility[8] = Healing Wave (Neutral Hostile)
      • Set UnitAbility[9] = Critical Strike (Forgotten Man)
      • Set UnitAbility[10] = Frost Armor (Autocast) (Neutral Hostile Edited)
      • Set TempInteger = (Random integer number between 1 and 10)
      • Unit - Add UnitAbility[TempInteger] to (Entering unit)
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
yeah it would :3 but why reset the variable every time a unit enters the region?

it just seems to make more scense if you store them at 0.00 in game time :/

and why entering unit? triggering would'be worked too...
 

[DS]Rebel

New Member
Reaction score
1
what? >.> the triggers are unfinished because i have no ideah how hes making the units.. so it could be done a number of ways......

there is a different trigger that makes units. every 30 seconds a footman spawns in a region (Human Top) and (Human Bottom)
 

[DS]Rebel

New Member
Reaction score
1
yeah it would :3 but why reset the variable every time a unit enters the region?

it just seems to make more scense if you store them at 0.00 in game time :/

and why entering unit? triggering would'be worked too...

because i dont know how to do that. im a n00b
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
yeha
well:
1. try hot to double post (its bad) ;)
2.yeah i figured..but that was directed that that other guy :p
3.lulz it was the thing that was genaricly on there...when you make a trigger the first thing that is on those are "triggering unit"

oih...and btw.... dun double post....(its still bad)
 
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