wilze
Active Member
- Reaction score
- 3
Im makeing a stat system where the player can add there own stats to thier hero...
Heres the problem: When I click a button the dialog closes but it dosent add stats... any suggestions?
thx for help.
wilze.
PHP:
Add BTNS
Events
Unit - A unit Gains a level
Conditions
Actions
Dialog - Change the title of Dialog to Input 2 New Stats t...
Dialog - Create a dialog button for Dialog labelled |c0000FF00ACR
Set DialogButtonACR[1] = (Last created dialog Button)
Wait 0.05 seconds
Dialog - Create a dialog button for Dialog labelled |c00FF0000STR
Set DialogButtonMID[1] = (Last created dialog Button)
Wait 0.05 seconds
Dialog - Create a dialog button for Dialog labelled |c000000FFMID
Set DialogButtonSTR[1] = (Last created dialog Button)
Wait 0.05 seconds
Trigger - Turn off (This trigger)
PHP:
Open Stat Dialog
Events
Unit - A unit Gains a level
Conditions
((Leveling Hero) is A Hero) Equal to True
Actions
Dialog - Show Dialog for (Owner of (Leaving unit))
PHP:
Click Dialog Buttons
Events
Dialog - A dialog button is clicked for Dialog
Conditions
(Clicked dialog button) Equal to DialogButtonACR[1]
Actions
Hero - Modify Agility of (Random unit from CameraP1): Add 2
PHP:
Click Dialog Buttons Copy
Events
Dialog - A dialog button is clicked for Dialog
Conditions
(Clicked dialog button) Equal to DialogButtonMID[1]
Actions
Hero - Modify Intelligence of (Random unit from CameraP1): Add 2
PHP:
Click Dialog Buttons Copy 2
Events
Dialog - A dialog button is clicked for Dialog
Conditions
(Clicked dialog button) Equal to DialogButtonSTR[1]
Actions
Hero - Modify Strength of (Random unit from CameraP1): Add 2
Heres the problem: When I click a button the dialog closes but it dosent add stats... any suggestions?
thx for help.
wilze.