Text Commands to enable game modes

Astal

New Member
Reaction score
1
Im having some problems and im sure its probably somthin dumb. Ill post a few triggers as an example.

The problem im having is none of the triggers are getting turned on when i type the command. :\ Am i doin somthin wrong lol?


Well i see one problem so far LOL turning on wrong trigger


Edit: ok i fixed the triggers but still having problems, they are set to turn on the correct trigger but its just not happening


Edit 2: Ok the creep level triggers are working right. Now im having problems with the gold triggers. Ill post one.

Trigger:
  • Time is 10 seconds
    • Events
      • Time - Elapsed game time is 10.00 seconds
    • Conditions
    • Actions
      • Game - Display to (All players) the text: Commands: To set th...
      • Trigger - Turn on Creep Level Speed Normal <gen>
      • Trigger - Turn on Creep Level Speed Fast <gen>
      • Trigger - Turn on Give Extra Gold Per Kill <gen>
      • Trigger - Turn on Give Extreme Gold Per Kill <gen>
      • Trigger - Turn on Give Massive Gold Per Kill <gen>
      • Trigger - Turn on Give Insane Gold Per Kill <gen>


Trigger:
  • Time is 45 seconds
    • Events
      • Time - Elapsed game time is 15.00 seconds
    • Conditions
    • Actions
      • Trigger - Turn off Creep Level Speed Normal <gen>
      • Trigger - Turn off Creep Level Speed Fast <gen>
      • Trigger - Turn off Give Extra Gold Per Kill <gen>
      • Trigger - Turn off Give Extreme Gold Per Kill <gen>
      • Trigger - Turn off Give Massive Gold Per Kill <gen>
      • Trigger - Turn off Give Insane Gold Per Kill <gen>


Trigger:
  • Give Extra Gold Per Kill
    • Events
      • Player - Player 1 (Red) types a chat message containing -extragold as An exact match
    • Conditions
    • Actions
      • Trigger - Turn on Extra Gold <gen>
      • Trigger - Turn off Extreme Gold <gen>
      • Trigger - Turn off Massive Gold <gen>
      • Trigger - Turn off Insane Gold <gen>


I think it has somthing to do with im not setting the killing unit in the event, How would i do that?

Trigger:
  • Extra Gold
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Triggering unit)) Equal to Neutral Hostile) and (((Triggering unit) is Summoned) Not equal to True)
    • Actions
      • Player - Add 10 to (Owner of (Killing unit)) Current gold
      • Game - Display to (All players) the text: BANANA!
 

Dave312

Censored for your safe viewing
Reaction score
269
Depending on how you are checking whether the trigger is firing, your problem could be here:
Trigger:
  • Level Up Creeps Normal
    • Events
      • Time - Elapsed game time is 240.00 seconds
    • Conditions
    • Actions
      • Set CreepLevel = (CreepLevel + 1)

This trigger will only ever fire once because you have used a 'Time - Time Elapsed' event. If you want it to fire multiple times every 240 seconds, use a 'Time - Periodic Event'.
 

Shura

New Member
Reaction score
45
Try putting in messages in to some of the triggers to see if they are running or not.
 

Astal

New Member
Reaction score
1
Try putting in messages in to some of the triggers to see if they are running or not.

I did that but im curious, can i use Owner of killing unit even though the event is a unit dies. Does a unit dieing automatically define a unit that kills it?

Too the guy above i saw that and fixed it, thanks man

Trigger:
  • Extra Gold
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Triggering unit)) Equal to Neutral Hostile) and (((Triggering unit) is Summoned) Not equal to True)
    • Actions
      • Player - Add 10 to (Owner of (Killing unit)) Current gold
      • Game - Display to (All players) the text: BANANA!
 

Shura

New Member
Reaction score
45
Yes, when a unit dies, there is a killing unit, and you can get the owner of the killing unit.
 

Astal

New Member
Reaction score
1
Yes, when a unit dies, there is a killing unit, and you can get the owner of the killing unit.

ok so i did that much correctly hehehe

yep not workin at all hmm.....


working as a substring though, wierd, i dunno the difference so maybe not.
 

Dave312

Censored for your safe viewing
Reaction score
269
I assume 'BANANA!' is not being displayed. Try using this modified version of your trigger:
Trigger:
  • Extra Gold
    • Events
      • Unit - A unit owned by Neutral Hostile Dies
    • Conditions
      • ((Dying unit) is Summoned) Equal to False
      • (Killing unit) Not equal to No unit
    • Actions
      • Player - Add 10 to (Owner of (Killing unit)) Current gold
      • Game - Display to (All players) the text: Bounty Given

If it is still not working, remove the '((Dying unit) is Summoned) Equal to False' condition and then check whether it works.
 

Astal

New Member
Reaction score
1
I assume 'BANANA!' is not being displayed. Try using this modified version of your trigger:
Trigger:
  • Extra Gold
    • Events
      • Unit - A unit owned by Neutral Hostile Dies
    • Conditions
      • ((Dying unit) is Summoned) Equal to False
      • (Killing unit) Not equal to No unit
    • Actions
      • Player - Add 10 to (Owner of (Killing unit)) Current gold
      • Game - Display to (All players) the text: Bounty Given

If it is still not working, remove the '((Dying unit) is Summoned) Equal to False' condition and then check whether it works.

k ill try tomorrow im goin to bed, ill report back, thanks
 

Astal

New Member
Reaction score
1
I assume 'BANANA!' is not being displayed. Try using this modified version of your trigger:
Trigger:
  • Extra Gold
    • Events
      • Unit - A unit owned by Neutral Hostile Dies
    • Conditions
      • ((Dying unit) is Summoned) Equal to False
      • (Killing unit) Not equal to No unit
    • Actions
      • Player - Add 10 to (Owner of (Killing unit)) Current gold
      • Game - Display to (All players) the text: Bounty Given

If it is still not working, remove the '((Dying unit) is Summoned) Equal to False' condition and then check whether it works.

Ok its working Im using substrings also. Thanks man ill try to rep u
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top