How would you go about using a command to set creep respawn speed?

Astal

New Member
Reaction score
1
Here is what i have, its not really working, im probably doing somthing wrong.

Im tryin to learn how to work with this kind of stuff hahaha its neat when you do it right.

Trigger:
  • Creep Respawn Speed
    • Events
      • Player - Player 1 (Red) types a chat message containing -respawn as A substring
    • Conditions
      • (Substring((Entered chat string), 1, 11)) Equal to -respawn
    • Actions
      • Set CreepRespawnTime = (Real((Substring(-respawn , 10, 11))))
      • Game - Display to (All players) the text: (Creep Respawn Speed Has Been Set To + (String(CreepRespawnTime)))


Trigger:
  • Revive Creeps
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Triggering unit)) Equal to Neutral Hostile) and (((Triggering unit) is Summoned) Not equal to True)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • CreepRespawnTime Greater than 0.00
        • Then - Actions
          • Wait CreepRespawnTime game-time seconds
          • Unit - Create 1 (Random level CreepLevel creep unit-type) for Neutral Hostile at ((Center of (Entire map)) offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))])) facing (Random angle) degrees
          • Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
        • Else - Actions
          • Wait 45.00 seconds
          • Unit - Create 1 (Random level CreepLevel creep unit-type) for Neutral Hostile at ((Center of (Entire map)) offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))])) facing (Random angle) degrees
          • Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
I hate text trigger thats why i changed all the text commands in my map into dialog buttons 10x easier. Like you press Esc then a box pops up with options. I would read a tutorial its real simple.
Trigger:
  • DialogBox
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Dialog - Clear ModeDialog
      • Dialog - Change the title of ModeDialog to Spawn Times
      • Dialog - Create a dialog button for ModeDialog labelled 10 secs
      • Set ModeDialogButton[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for ModeDialog labelled 12 secs
      • Set ModeDialogButton[2] = (Last created dialog Button)
      • Dialog - Show ModeDialog for Player 1 (Red)


Trigger:
  • Dialog Button press
    • Events
      • Dialog - A dialog button is clicked for ModeDialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to ModeDialogButton[1]
        • Then - Actions
          • Trigger - Turn on (10 sec) <gen>
          • Trigger - Turn off (20 sec) <gen>
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to ModeDialogButton[2]
            • Then - Actions
              • Trigger - Turn on (12 sec) <gen>
              • Trigger - Turn off (10 sec) <gen>
            • Else - Actions

Just an example change it if you wish to use it.
 

Astal

New Member
Reaction score
1
I hate text trigger thats why i changed all the text commands in my map into dialog buttons 10x easier. Like you press Esc then a box pops up with options. I would read a tutorial its real simple.
Trigger:
  • DialogBox
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Dialog - Clear ModeDialog
      • Dialog - Change the title of ModeDialog to Spawn Times
      • Dialog - Create a dialog button for ModeDialog labelled 10 secs
      • Set ModeDialogButton[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for ModeDialog labelled 12 secs
      • Set ModeDialogButton[2] = (Last created dialog Button)
      • Dialog - Show ModeDialog for Player 1 (Red)


Trigger:
  • Dialog Button press
    • Events
      • Dialog - A dialog button is clicked for ModeDialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to ModeDialogButton[1]
        • Then - Actions
          • Trigger - Turn on (10 sec) <gen>
          • Trigger - Turn off (20 sec) <gen>
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to ModeDialogButton[2]
            • Then - Actions
              • Trigger - Turn on (12 sec) <gen>
              • Trigger - Turn off (10 sec) <gen>
            • Else - Actions

Just an example change it if you wish to use it.

Alright, ill search for a tutorial on that. It does seem a bit simpler i guess
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top