• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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