Problem with trigger to increase damage on kills.

L

Leos

Guest
Basically, for every kill the unit makes, I wanted to increase damage by 25. So I made a claws of attack item with 20 levels, and made the damage go from 0-500 in 25 damage intervals.

Code:
Rage
    Events
        Unit - A unit owned by Player 12 (Brown) Dies
    Conditions
        (Unit-type of (Killing unit)) Equal to Rage Warrior
    Actions
        Set RageKillNumber = (RageKillNumber + 1.00)
        Set RageUnit = (Killing unit)
        Unit - Increase level of  Rag1 (+1) for RageUnit

It works, but my problem is that I'm worried that when the damage reaches the limit of 500, the trigger will keep running. I have tried several ways of trying to stop it after 20 kills (thats why the variables were created), but none seem to work. Can anyone help me with this?
 

denmax

You can change this now in User CP.
Reaction score
155
So it isn't a skill?..

Okay..

USE IF/THEN/ELSE:

If
- ragekillnumber less than or equal to 500
then
- set ragekillnumber = ragekillnumber + 1
- unit-increase level of rag1 (+1) for triggering unit
else


---

So if ragekillnumber goes to 500 already (500 kills), it wouldn't do anything ^_^..


Another thing, its not needed to make a variable for the unit..
 
R

Rykyu

Guest
Maybe it's silly but... If I were you, I would make an ability called "Rage", and I would give it to my Rage Warrior. And each time my warrior kills, the level of his ability is increased.
Then, you add the condition that "Rage" level have to be less than 20.
Isn't it the same ?

I don't really understand what all your variables mean.
 
L

Leos

Guest
Thanks, not sure why I missed that option lol.

Is there any way to make it MUI? As at the moment, if there is more than one Rage Warrior, all their kills count towards the the same kill variable.

E.g. Rage Warrior A gets 10 kills, and then Rage Warrior B gets another 10 kills and instantly gets 500 damage.

Any way to fix this with GUI or limited custom script?
 

denmax

You can change this now in User CP.
Reaction score
155
Use "u_are_a_noob"'s MUI GUI tutorial. Search for it...

But I certainly DONT understand his tut at all :D (cuz its using damn random arrays, meaning, THERE IS ALWAYS A CHANCE THAT IT WILL FAIL)
 
L

Leos

Guest
Maybe it's silly but... If I were you, I would make an ability called "Rage", and I would give it to my Rage Warrior. And each time my warrior kills, the level of his ability is increased.
Then, you add the condition that "Rage" level have to be less than 20.
Isn't it the same ?

I don't really understand what all your variables mean.

That works perfectly, thanks. MUI too.
 

denmax

You can change this now in User CP.
Reaction score
155
Well, you could use a skill that is invisible (no icon) such as Attribute Bonus to remove the icon of the skill =P..
 

810

New Member
Reaction score
1
I would like to make an ability similar to this, but the rage would last about 20 seconds and then his rage level would decrease. How would i do this?
 
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