- Joined
- Jun 28, 2004
- Messages
- 8
Code:
Apprentice
Events
Unit - A unit Gains a level
Conditions
((Hero level of (Leveling Hero)) Greater than or equal to 10) and ((Unit-type of (Leveling Hero)) Equal to Warrior)
Actions
Unit - Pause (Leveling Hero)
Unit - Make (Leveling Hero) Invulnerable
Dialog - Clear Dialog[(Player number of (Owner of (Leveling Hero)))]
Dialog - Change the title of Dialog[(Player number of (Owner of (Leveling Hero)))] to New Class:
Dialog - Create a dialog button for Dialog[(Player number of (Owner of (Leveling Hero)))] labelled Holy Warrior
Set DialogButtonWarrior[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog[(Player number of (Owner of (Leveling Hero)))] labelled Champion
Set DialogButtonWarrior[2] = (Last created dialog Button)
Dialog - Show Dialog[(Player number of (Owner of (Leveling Hero)))] for (Owner of (Leveling Hero))
That code isn't working so good. In my map there is a chance that alot of people get level at the same time, then this trigger doesn't work anylonger. Do anyone know how to make a dialog work for many people at the same time?
The Problem: When 2 or more heroes get level 10 at the same time, then the buttons only work for ONE single person. No one else.