- Joined
- Jul 14, 2011
- Messages
- 3,213
Hi! I'm trying to remove abilities based on -forget (like GoH) but I'm having problems with it.
-
Preloads
-
Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
-
Actions
- -------- Skills and Skill Name --------
- Set Skill[1] = Entangling Roots
- Set Skill[2] = Envenomed Strike
- Set Skill[3] = Pulverize
- Set Skill[4] = Throw Rock
-
Events
-
Forget Skill
-
Events
- Player - Player 1 (Red) types a chat message containing -forget as A substring
- Player - Player 2 (Blue) types a chat message containing -forget as A substring
- Player - Player 3 (Teal) types a chat message containing -forget as A substring
- Player - Player 4 (Purple) types a chat message containing -forget as A substring
- Player - Player 5 (Yellow) types a chat message containing -forget as A substring
- Conditions
-
Actions
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring((Entered chat string), 9, (Length of (Entered chat string)))) Equal to (Name of Skill[(Integer A)])
- (Substring((Entered chat string), 1, 7)) Equal to -forget
-
Then - Actions
- Player - Add (Level of Skill[(Integer A)] for Heroes[1]) to (Triggering player) Current lumber
- Unit - Remove Skill[(Integer A)] from Heroes[1]
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer A) from 1 to 4, do (Actions)
-
Events
Last edited: