a j j bones
New Member
- Reaction score
- 3
hi, i need to find a way to make creeps respawn, i am currently using this trigger but it is not working
i also need to know how to make a dialog button give you an attribute bonus of one, im using this trigger and it doesnt work
and
i have no clue y it wont work
Code:
respawn
Events
Unit - A unit Dies
Conditions
(Owner of (Dying unit)) Equal to Neutral Hostile
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Neutral Hostile
Then - Actions
Wait 40.00 seconds
Else - Actions
Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Default building facing (270.0) degrees
i also need to know how to make a dialog button give you an attribute bonus of one, im using this trigger and it doesnt work
Code:
level dialog
Events
Unit - A unit Gains a level
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Dialog - Clear mydialog
Dialog - Change the title of mydialog to Attributes
Dialog - Create a dialog button for mydialog labelled + agility
Set dialog_button[1] = (Last created dialog Button)
Dialog - Create a dialog button for mydialog labelled + Strength
Set dialog_button[2] = (Last created dialog Button)
Dialog - Create a dialog button for mydialog labelled + Int
Set dialog_button[3] = (Last created dialog Button)
Dialog - Show mydialog for (Triggering player)
and
Code:
agility button
Events
Dialog - A dialog button is clicked for mydialog
Conditions
(Clicked dialog button) Equal to dialog_button[1]
Actions
Hero - Set Agility of(Leveling Hero) to ((Agility of (Leveling Hero) (Exclude bonuses)) + 1), (Permanent or Temporary:Permanent)
i have no clue y it wont work