- Joined
- Nov 13, 2007
- Messages
- 237
so what im looking ofr is an stock mode like the one in super smash brothers this is wath i made any help will be greatly appreciated.
First Part
This is the second Part
First Part
-
stock mode
-

Events
-


Player - Player 1 (Red) types a chat message containing -sm as A substring
-


Player - Player 1 (Red) types a chat message containing -stockmode as A substring
-
-

Conditions
-

Actions
-


Set TempInteger = 3
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Matched chat string) Equal to -sm
-




(Length of (Entered chat string)) Greater than or equal to 4
-
-



Then - Actions
-




Set TempInteger = (Integer((Substring((Entered chat string), 4, (Length of (Entered chat string))))))
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Matched chat string) Equal to -stockmode
-




(Length of (Entered chat string)) Greater than or equal to 13
-
-



Then - Actions
-




Set TempInteger = (Integer((Substring((Entered chat string), 13, (Length of (Entered chat string))))))
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




TempInteger Less than 1
-
-



Then - Actions
-




Set TempInteger = 3
-
-



Else - Actions
-
-


Quest - Display to Players the Secret message: (Stock Mode has been enabled. Each player has + ((String(TempInteger)) + Lives.))
-


Player Group - Pick every player in Players and do (Actions)
-



Loop - Actions
-




Set StockMode[(Player number of (Picked player))] = TempInteger
-
-
-


Trigger - Turn on StockMode <gen>
-
-
This is the second Part
-
StockMode
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


((Dying unit) is A Hero) Equal to True
-
-

Actions
-


Set TempInteger = (Player number of (Owner of (Dying unit)))
-


Set StockMode[TempInteger] = (StockMode[TempInteger] - 1)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




StockMode[TempInteger] Less than 1
-
-



Then - Actions
-




Quest - Display to Players the Hint message: has ran out of life...
-




Game - Defeat (Owner of (Dying unit)) with the message: Defeat!
-
-



Else - Actions
-
-
-
Last edited:




