- Joined
- Jul 31, 2004
- Messages
- 108
Ok i got the dialog thing up but then it wont replace the unit heres wat i got so far
Events
Unit - A unit owned by Player 1 (Red) Gains a level
Conditions
And - All (Conditions) are true
Conditions
((Triggering unit) is A Hero) Equal to True
(Level of (Triggering unit)) Equal to 13
(Unit-type of (Triggering unit)) Equal to Child
Actions
Dialog - Create a dialog button for Dialog[1] labelled Human Evil
Set DialongButton[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog[1] labelled Human Good
Set DialongButton[2] = (Last created dialog Button)
Dialog - Show Dialog[1] for Player 1 (Red)
Dialog - Change the title of Dialog[1] to Evil or Good?
If ((Clicked dialog button) Equal to DialongButton[1]) then do (Unit - Replace (Leveling Hero) with a Teen using The new unit's default life and mana) else do (Do nothing)
If ((Clicked dialog button) Equal to DialongButton[2]) then do (Unit - Replace (Leveling Hero) with a Bandit Teen using The new unit's default life and mana) else do (Do nothing)
Big and fun but it wont replace the unit y?
Events
Unit - A unit owned by Player 1 (Red) Gains a level
Conditions
And - All (Conditions) are true
Conditions
((Triggering unit) is A Hero) Equal to True
(Level of (Triggering unit)) Equal to 13
(Unit-type of (Triggering unit)) Equal to Child
Actions
Dialog - Create a dialog button for Dialog[1] labelled Human Evil
Set DialongButton[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog[1] labelled Human Good
Set DialongButton[2] = (Last created dialog Button)
Dialog - Show Dialog[1] for Player 1 (Red)
Dialog - Change the title of Dialog[1] to Evil or Good?
If ((Clicked dialog button) Equal to DialongButton[1]) then do (Unit - Replace (Leveling Hero) with a Teen using The new unit's default life and mana) else do (Do nothing)
If ((Clicked dialog button) Equal to DialongButton[2]) then do (Unit - Replace (Leveling Hero) with a Bandit Teen using The new unit's default life and mana) else do (Do nothing)
Big and fun but it wont replace the unit y?