• 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.

-ul command like in LoD

Status
Not open for further replies.
Level 6
Joined
Dec 6, 2009
Messages
173
A player writes said command:
  • Types level
    • Events
      • Player - Player 1 (Red) types a chat message containing -level50 as An exact match
    • Conditions
    • Actions
      • Set level50 = True

A units level = 25:
  • If level 25
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • (Level of (Triggering unit)) Equal to 25
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • level50 Equal to True
        • Then - Actions
        • Else - Actions
          • Hero - Disable experience gain for (Triggering unit)
 
To make multiple commands in a single line you use the Event is "part-String".
You have multiple Triggers like this.
  • AP
    • Ereignisse
      • Player - Player 1 (Rot) types a chat message containing -ap as a Part-String
    • Bedingungen
    • Aktionen
      • Set Mod_Allpick = True
      • Countdown-Timer - Start Timer_Mod_Entered as a Once timer that will expire in 0.10 seconds
Resulting in allowing a Command like this one
"-ap -ar -em"

I use a Timer to later start once the "Do Mod"-Trigger which will than alter the game depending on setup and deactivade all Mods.
  • Do Mods
    • Ereignisse
      • Zeit - Timer_Mod_Entered expires
    • Bedingungen
    • Aktionen
      • Trigger - Turn off AP <gen>
      • Trigger - Turn off AR <gen>
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Mod_Allpick = True
        • Then - Actions
          • -------- Do Allpick --------
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Mod_AllRandom = True
        • Then - Actions
          • -------- Do AllRandom --------
        • Else - Actions
 
Last edited:
Status
Not open for further replies.
Top