Rinpun
Ex TH Member
- Reaction score
- 105
Code:
Side Change
Events
Unit - A unit Gains a level
Conditions
(Hero level of (Triggering unit)) Equal to 100
Actions
Dialog - Clear HeroChoice
Dialog - Change the title of HeroChoice to Choose your Side
Dialog - Create a dialog button for HeroChoice labelled Choose Good
Set Good = (Last created dialog Button)
Dialog - Create a dialog button for HeroChoice labelled Choose Evil
Set Evil = (Last created dialog Button)
Dialog - Show HeroChoice for (Owner of (Triggering unit))
I was thinking, is there anyway to turn off the trigger just for that person? From what I can gather, I have to make the level rewards for completed side things only 1 level, or else there is a chance of skipping from level 99 to level 101 with a 2 level and you miss this trigger altogether.
So, how do I do this? Perhaps I should make it greater than 100 and make an integer array for the number of players and have it in the conditions that the variable has to equal 0 to change sides and that it sets to 1 when you change sides? Or, is there a better way?


