S
somesexyguy
Guest
Hello, me again. I have developed a simple ranking system where every 5 levels, a player increases in rank, which enables abilities that are unlocked after every promotion. When a hero levels up to another rank, the upgrade "hero rank" is increased to match the level of the rank ability, which tells the player which rank he/she is. but whenever a hero ranks up, it freezes, and i am unsure why. perhaps someone can point out what it is...
Code:
Increase
Events
Unit - A unit Gains a level
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Triggering unit)) Equal to 5
Then - Actions
Game - Display to (All players) the text: |CFF00AEEBYou Have ...
Player - Set the current research level of Rank: Private to 2 for (Owner of (Triggering unit))
Unit - Set level of Hero Rank for (Triggering unit) to (Current research level of Rank: Private for (Owner of (Triggering unit)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Triggering unit)) Equal to 10
Then - Actions
Game - Display to (All players) the text: |CFF00AEEBYou Have ...
Player - Set the current research level of Rank: Private to 3 for (Owner of (Triggering unit))
Unit - Set level of Hero Rank for (Triggering unit) to (Current research level of Rank: Private for (Owner of (Triggering unit)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Triggering unit)) Equal to 15
Then - Actions
Game - Display to (All players) the text: |CFF00AEEBYou Have ...
Player - Set the current research level of Rank: Private to 4 for (Owner of (Triggering unit))
Unit - Set level of Hero Rank for (Triggering unit) to (Current research level of Rank: Private for (Owner of (Triggering unit)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Triggering unit)) Equal to 20
Then - Actions
Game - Display to (All players) the text: |CFF00AEEBYou Have ...
Player - Set the current research level of Rank: Private to 5 for (Owner of (Triggering unit))
Unit - Set level of Hero Rank for (Triggering unit) to (Current research level of Rank: Private for (Owner of (Triggering unit)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Triggering unit)) Equal to 25
Then - Actions
Game - Display to (All players) the text: |CFF00AEEBYou Have ...
Player - Set the current research level of Rank: Private to 6 for (Owner of (Triggering unit))
Unit - Set level of Hero Rank for (Triggering unit) to (Current research level of Rank: Private for (Owner of (Triggering unit)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Triggering unit)) Equal to 30
Then - Actions
Game - Display to (All players) the text: |CFF00AEEBYou Have ...
Player - Set the current research level of Rank: Private to 7 for (Owner of (Triggering unit))
Unit - Set level of Hero Rank for (Triggering unit) to (Current research level of Rank: Private for (Owner of (Triggering unit)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Triggering unit)) Equal to 35
Then - Actions
Game - Display to (All players) the text: |CFF00AEEBYou Have ...
Player - Set the current research level of Rank: Private to 8 for (Owner of (Triggering unit))
Unit - Set level of Hero Rank for (Triggering unit) to (Current research level of Rank: Private for (Owner of (Triggering unit)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Triggering unit)) Equal to 40
Then - Actions
Game - Display to (All players) the text: |CFF00AEEBYou Have ...
Player - Set the current research level of Rank: Private to 9 for (Owner of (Triggering unit))
Unit - Set level of Hero Rank for (Triggering unit) to (Current research level of Rank: Private for (Owner of (Triggering unit)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Triggering unit)) Equal to 45
Then - Actions
Game - Display to (All players) the text: |CFF00AEEBYou Have ...
Player - Set the current research level of Rank: Private to 10 for (Owner of (Triggering unit))
Unit - Set level of Hero Rank for (Triggering unit) to (Current research level of Rank: Private for (Owner of (Triggering unit)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Triggering unit)) Equal to 50
Then - Actions
Game - Display to (All players) the text: |CFF00AEEBYou Have ...
Player - Set the current research level of Rank: Private to 11 for (Owner of (Triggering unit))
Unit - Set level of Hero Rank for (Triggering unit) to (Current research level of Rank: Private for (Owner of (Triggering unit)))
Else - Actions