Spawning units from being attacked. Need some help.

Scauldingpon

New Member
Reaction score
1
K i only know GUI, very little at that. :nuts:

K i'm having trouble finding out what condition to use to "spawn units when attacked" by a % chance. i was looking and all i really could find was a Buff comparison.

As the spell is going to be:

Spawn when attacked
level 1 = 5%
level 2 = 10%
level 3 = 15%
level 4 = 20%

level skip is ever 4 or 5 levels don't know that for sure yet.

This ability is based off Thorns Aura
 

nabbig2

New Member
Reaction score
43
You mean like this?

Code:
(Random integer number between 1 and 100) Less than or equal to 15
 

Scauldingpon

New Member
Reaction score
1
New issue!

Okay, if i want the "percent" to go up with each rank of the spell how do i do that in GUI? like do i make a trigger like

Event:
Unit- gains a level
Condition:
?????????????
Action:
Trigger - Turn on (next trigger)


thats all i can think of
 

Scauldingpon

New Member
Reaction score
1
(Random integer number between 1 and 100) Less than or equal to ((Level of Thronebearers for (Triggering unit)) x 5)



kinda like this?
 

Scauldingpon

New Member
Reaction score
1
okay. these guys can get out of hand. how can i make it so it can only happen lets say ever 20 seconds?
 

Emu.Man00

New Member
Reaction score
41
E- every 20 seconds of game
C-
A- turn on (yourTrigger)

And at the end of 'yourTrigger' add (inside of 'then-actions'
turn off (this trigger)
 

Scauldingpon

New Member
Reaction score
1
Ty, but i've decided that using a

A- turn on (CD trigger)
Turn off (this trigger)

instead and did a time elasped time event instead. Making it just when the ability is used.
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
Just Turn off that trigger, add a 20 seconds wait, turn it back on.
 

Scauldingpon

New Member
Reaction score
1
Okay this is an off topic but still has something to do with this ability.

I want to increase the dmg and armor with upgrades. i've got it to upgrade but i want it to upgrade with each rank. right now it will just do the upgrade when the spell is learned. how can i get it to do it every time the spell is upgraded?
 

mordocai

New Member
Reaction score
17
uhm with moar triggers? xD
Make an if/then/else trigger like this(its off the top of my head)
If-
level of spell=x
then-add
else-
(another if/then/else)
repeat it again
 

Scauldingpon

New Member
Reaction score
1
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Learned skill level) Equal to 2
Then - Actions
Unit - Order Blacksmith 0157 <gen> to research Iron Plating
Unit - Order Blacksmith 0157 <gen> to research Iron Forged Swords
Else - Actions
Do nothing


Thats my trigger base. but it seems not to work. is my condition wrong?
 
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