• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Substring triggers stopped working

Status
Not open for further replies.
Level 12
Joined
Mar 23, 2008
Messages
942
Those two triggers aren't working anymore after war3 update:

  • DM Mode
    • Events
      • Player - Player 1 (Red) types a chat message containing -dm as A substring
    • Conditions
      • (Substring((Entered chat string), 0, 3)) Equal to -dm
    • Actions
      • Game - Display to (All players) the text: (|cffff0000Deathmatch Mode|r choosen. Each player have + ((Substring((Entered chat string), 5, 6)) + lifes. If someone dies, looses one life. If lives reach 0, the player cannot ressurect.))
      • Set Game_Mode_Int = (Integer((Substring((Entered chat string), 5, 6))))
      • Set Kill_Name = Kills
      • Set Death_Name = Lives
      • Set Game_Mode = |cffff0000Deathmatch|r
  • Point Mode
    • Events
      • Player - Player 1 (Red) types a chat message containing -pt as A substring
    • Conditions
      • (Substring((Entered chat string), 0, 3)) Equal to -pt
    • Actions
      • Game - Display to (All players) the text: (|cff0000ffPoint Mode|r choosen. The first team to get + ((Substring((Entered chat string), 5, 6)) + points wins. Every time someone dies, the team looses one point. Every time someone kills, the team get one point.))
      • Set Game_Mode_Int = (Integer((Substring((Entered chat string), 5, 6))))
      • Set Kill_Name = Points
Strangely, those trigger are working:

  • Level hack
    • Events
      • Player - Player 1 (Red) types a chat message containing -level as A substring
    • Conditions
    • Actions
      • Hero - Set PlayerHero[1] Hero-level to (Integer((Substring((Entered chat string), 7, 2)))), Hide level-up graphics
  • Mode Help
    • Events
      • Player - Player 1 (Red) types a chat message containing -help mode as An exact match
      • Player - Player 2 (Blue) types a chat message containing -help mode as An exact match
      • Player - Player 3 (Teal) types a chat message containing -help mode as An exact match
      • Player - Player 4 (Purple) types a chat message containing -help mode as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -help mode as An exact match
      • Player - Player 6 (Orange) types a chat message containing -help mode as An exact match
      • Player - Player 7 (Green) types a chat message containing -help mode as An exact match
      • Player - Player 8 (Pink) types a chat message containing -help mode as An exact match
      • Player - Player 9 (Gray) types a chat message containing -help mode as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -help mode as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -help mode as An exact match
      • Player - Player 12 (Brown) types a chat message containing -help mode as An exact match
    • Conditions
    • Actions
      • Game - Display to (Player group((Triggering player))) the text: Type -help "mode" t...
O.O?
 
Level 12
Joined
Mar 23, 2008
Messages
942
They stoped working after you patched the warcraft to the 1.3, right?
So try to save the map with a difrent name, open it and see can you enable the triggers.

I will assume you said 1.23.

Tried saving with another name, the trigger still do nothing :(
(They aren't disabled, they just don't work ingame)

Also, a secondary game mode using -lvl is working.
 
Status
Not open for further replies.
Top