Tigger Help (conditions)

ghost reaper

New Member
Reaction score
0
Tigger Help (conditions) (SOLVED)

Hello People :thup: SOLVED

I get straght to point.

i can't find the right condition for my tigger i want condition do this.

all of this been in If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions player 2 types -attack EVA:banghead:
Then - Actions .....................................
Else - Actions Do nothing

all of this been in If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions player 2 types -attack BAB:banghead:
Then - Actions .....................................
Else - Actions Do nothing

you should get my point ask me if there any question about this and i use custom if i have to.
 

TomTTT

New Member
Reaction score
44
Ahh... depends on the event.
If the event is "Player types a message containing [...] as a [...]"
it's simple. You can make a string comparison and in "substring - (entered substring(1,4)) equal to [...]
Which means, the letters in places 1 to 4 equal to -BAB or -EVA.
Please post the entire trigger by using the "Copy as Text" and paste it normally in here, recommeneded using the WC3 GUI tags.
 

ghost reaper

New Member
Reaction score
0
Trigger:
  • Goth Middle to Bases
    • Events
      • Player - Player 2 (Blue) types a chat message containing -BAB as An exact match
      • Player - Player 2 (Blue) types a chat message containing -EVA as An exact match
      • Player - Player 2 (Blue) types a chat message containing -REA as An exact match
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Trigger - Turn on GAL <gen>
          • Trigger - Turn off GAB <gen>
          • Trigger - Turn off GAR <gen>
          • Game - Display to (All players) the text: GOTH Has Gone To WA...
          • Unit - Move Elder Voidwalker 0118 <gen> instantly to (Center of GAL <gen>)
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Trigger - Turn off GAL <gen>
          • Trigger - Turn on GAB <gen>
          • Trigger - Turn off GAR <gen>
          • Game - Display to (All players) the text: GOTH Has Gone To WA...
          • Unit - Move Elder Voidwalker 0118 <gen> instantly to (Center of GAL <gen>)
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Trigger - Turn off GAL <gen>
          • Trigger - Turn off GAB <gen>
          • Trigger - Turn on GAR <gen>
          • Game - Display to (All players) the text: GOTH Has Gone To WA...
          • Unit - Move Elder Voidwalker 0118 <gen> instantly to (Center of GAL <gen>)
        • Else - Actions
          • Do nothing


here's the main tigger i just need conditions i think.
 

TomTTT

New Member
Reaction score
44
Trigger:
  • Goth Middle to Bases
    • Events
      • Player - Player 2 (Blue) types a chat message containing -BAB as An exact match
      • Player - Player 2 (Blue) types a chat message containing -EVA as An exact match
      • Player - Player 2 (Blue) types a chat message containing -REA as An exact match
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Trigger - Turn on GAL <gen>
          • Trigger - Turn off GAB <gen>
          • Trigger - Turn off GAR <gen>
          • Game - Display to (All players) the text: GOTH Has Gone To WA...
          • Unit - Move Elder Voidwalker 0118 <gen> instantly to (Center of GAL <gen>)
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Trigger - Turn off GAL <gen>
          • Trigger - Turn on GAB <gen>
          • Trigger - Turn off GAR <gen>
          • Game - Display to (All players) the text: GOTH Has Gone To WA...
          • Unit - Move Elder Voidwalker 0118 <gen> instantly to (Center of GAL <gen>)
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Trigger - Turn off GAL <gen>
          • Trigger - Turn off GAB <gen>
          • Trigger - Turn on GAR <gen>
          • Game - Display to (All players) the text: GOTH Has Gone To WA...
          • Unit - Move Elder Voidwalker 0118 <gen> instantly to (Center of GAL <gen>)
        • Else - Actions
          • Do nothing


here's the main tigger i just need conditions i think.

Trigger looks fine, tho i would put the second and third If/Then/Else in the else of the first If/Then/Else cause im not sure. But it's your opinion. Anyway, about the condition it's simple:
Trigger:
  • (Substring((Entered chat string), 1, (Length of (Entered chat string)))) Equal to -BAB

Trigger:
  • (Substring((Entered chat string), 1, (Length of (Entered chat string)))) Equal to -EVA

Trigger:
  • (Substring((Entered chat string), 1, (Length of (Entered chat string)))) Equal to -REA


Substring - means letters in the (Entered chat string) the numbers are in what places, so in those conditions it means from letter 1 to length(number..)of the entered chat string.
so lets say there are 5 letters, it means if all the letters from place 1 to 5(length) equal to blaba...
Hope it helped.
BTW: this is also used in kick systems.
 
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