1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  4. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  5. The results are out! Check them out.
    Dismiss Notice
  6. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  7. The raddest synthwave tracks were chosen - Check out our Music Contest #12 - Results and congratulate the winners!
    Dismiss Notice
  8. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Trigger] Substring triggers stopped working

Discussion in 'Triggers & Scripts' started by Saishy, Apr 24, 2009.

  1. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    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?
     
  2. Kingz

    Kingz

    Joined:
    Jun 5, 2008
    Messages:
    2,470
    Resources:
    6
    Spells:
    5
    Tutorials:
    1
    Resources:
    6
    Well i don't have the newest version of warcraft but i think that one of the things changed is that a changed version of a original map is no longer playable.
    In plain language you have to save it with a difrent name,not sure though.
     
  3. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    ????????????????

    Could you please be clear?
     
  4. Kingz

    Kingz

    Joined:
    Jun 5, 2008
    Messages:
    2,470
    Resources:
    6
    Spells:
    5
    Tutorials:
    1
    Resources:
    6
    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.
     
  5. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    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.