Need help with mode

Status
Not open for further replies.
Level 7
Joined
Nov 13, 2007
Messages
244
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

  • 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:
Level 15
Joined
Apr 13, 2008
Messages
1,531
Explain what is stockmode, I could google it up but it looks like to me it's you who is asking for help and your version of "stockmode" could be different from what I find on google.
So would you?...
 
Level 15
Joined
Apr 13, 2008
Messages
1,531
If this stockmode is only supposed to mean lives than the problem with ankhs is that they occupy 1/6 of your precious inventory space.
 
Status
Not open for further replies.
Top