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. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. 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] Name Changing Trigger

Discussion in 'Triggers & Scripts' started by Flamingo!, Jan 4, 2007.

  1. Flamingo!

    Flamingo!

    Joined:
    Jan 1, 2007
    Messages:
    19
    Resources:
    0
    Resources:
    0
    Hello.

    ..
    ......

    Well, the name pretty much says it all. I need a trigger that changes your name when you say a certain phrase. like so...

    Flamingo: -name Poop
    Poop: Yay

    I would love this to be in GUI but if its in JASS I'm fine with it. Thank you, and I will give credits!

    ~Flamingo!
     
  2. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,716
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Use -name as the trigger to the player types text event then just change the player's name to that of the after text.
    In gui there is a player change name action and the ablily to cut a string out of a string

    Like. . .
    DrSuperGood: -name dooGrepuSrD
    //-name detected, running actions
    //Get all text after "-name "
    //Change triggering player's name to that of the extracted text
    dooGrepuSrD: DrSuperGood is now fully backward compatiable LOL. . .

    Note the // represent a noobish interpretation of what the game engine should be doing.
     
  3. Mini-Me

    Mini-Me

    Joined:
    Oct 30, 2004
    Messages:
    1,800
    Resources:
    10
    Maps:
    10
    Resources:
    10
    Event - Player1 red types -name as a substring
    condition - none
    actions:
    -Set name of (triggering player) to Substring 6,30 (entered chat string)
     
  4. Flamingo!

    Flamingo!

    Joined:
    Jan 1, 2007
    Messages:
    19
    Resources:
    0
    Resources:
    0
    Thanks both of you! Everything worked except for:

    ~Flamingo!
     
  5. Xarwin

    Xarwin

    Joined:
    Nov 16, 2006
    Messages:
    2,232
    Resources:
    3
    Icons:
    1
    Maps:
    1
    Tutorials:
    1
    Resources:
    3
    Wrong posted anyway -,-
     
  6. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,716
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    That was meant to be a joke. . .
    Basicly it was added to explain why I chose that name in the example, because it is my account but backwards.
     
  7. Archian

    Archian

    Site Director

    Joined:
    Jan 1, 2006
    Messages:
    2,874
    Resources:
    12
    Skins:
    1
    Tutorials:
    11
    Resources:
    12
    Wrong forum!

    ~Thread Moved.
     
  8. Deep Sea Kraken

    Deep Sea Kraken

    Joined:
    Dec 29, 2006
    Messages:
    994
    Resources:
    6
    Models:
    6
    Resources:
    6
    Yeah i used a name changer in a map i made a while ago. The only problem with it is it makes it hard to ban people/whisper/add to friends so i would create a leaderboard or something that stores the original name of each player that people can look at. People will do ALOT of bad #@$% if they know they cant get caught for it.
     
  9. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,716
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    No need since banlist automaticly stores their orignal names.
    Thats why banlist is so useful.
     
  10. Orc_Tamer

    Orc_Tamer

    Joined:
    Jan 5, 2007
    Messages:
    41
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
    You can always store the player's original name into a variable and use like:

    -realname Red (Red's Real name is ...)


    -Orc_Tamer