• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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:
Status
Not open for further replies.
Top