sunshinex3
You can change this now in User CP.
- Reaction score
- 7
I need to figure out why this isn't working, it fires off when not using the variables and just using a solid number so the second trigger works but when trying to use the bidedamagetaken variable it doesn't work, so im wondering if it is the custom script that is just below that's the problem?
I have this is in initialization its a custom script i was told would add the event unit takes damage to a trigger
First trigger that i need "unit takes damage"
this trigger works with a straight number but not with the variable arithmetic that i have here
[/code]
I have this is in initialization its a custom script i was told would add the event unit takes damage to a trigger
Code:
library DamagedEventAdder initializer init
private function init takes nothing returns nothing
//change the name of the trigger to match the name of the trigger you want it added to
//the format is: gg_trg_ + the name of the trigger with _ instead of spaces (see below)
//if you change the name of the trigger in the trigger editor (or delete the trigger entirely) you will have to change it here
//if you have multiple triggers that need this event you can duplicate the below line here for any number of triggers, just use the right name!
call TriggerRegisterAnyUnitEventBJ(gg_trg_BideActivate, EVENT_PLAYER_UNIT_DAMAGED)
endfunction
endlibrary
First trigger that i need "unit takes damage"
Trigger:
- BideActivate
- Events
- Conditions
- ((Damage Target) has buff Biding (NerubianKing)) Equal to True
- Actions
- Set VariableSet BideDamageTaken[(Player number of (Owner of (Damage Target)))] = (BideDamageTaken[(Player number of (Owner of (Damage Target)))] + (Damage taken))
this trigger works with a straight number but not with the variable arithmetic that i have here
Trigger:
- BideDeactivate
- Events
- Unit - A unit Is issued an order with no target
- Conditions
- And - All (Conditions) are true
- Conditions
- ((Ordered unit) has buff Biding (NerubianKing)) Equal to True
- (Issued order) Equal to (Order(unimmolation))
- Conditions
- And - All (Conditions) are true
- Actions
- Set VariableSet TempPoint = (Position of (Ordered unit))
- Unit - Cause (Ordered unit) to damage circular area after 0.00 seconds of radius 400.00 at TempPoint, dealing (BideDamageTaken[(Player number of (Owner of (Ordered unit)))] x (Real((Level of Bide (NerubianKing) for (Ordered unit))))) damage of attack type Spells and damage type Magic
- Custom script: call RemoveLocation (udg_TempPoint)
- Events
Last edited: