• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

handicap

Status
Not open for further replies.
Level 4
Joined
Dec 31, 2011
Messages
85
Well,

1) I wan't to make a command for certain names like "CrackBam" to be able to write "-handicap233 500" and when they write that they will recieve 500 gold or as many as they putted, and 500 wood or as many as they putted in number, but if player with other name like "Arhowk" or what ever thats not CrackBam etc. ,writes that shall be defeated with message "CrackBam has been informed"

2) When I write #32 and a text after #32, the text will be coloured Red after the name, but #32 won't be shown into the text I write after I button enter.

Rules to recieve Rep and other rewards:
1. Each one of these triggers means 1 rep, if you post the two triggers together in same reply you will recieve two reps I will just rep 1 other random of your post.
2. The Triggers must be in a Map so I download the map and Copy/Paste them to my map, and in my map you will also recieve credits.
3. Please, no custom text, normal triggers.
 
Level 4
Joined
Dec 31, 2011
Messages
85
Thats not what I wanted..

1. I didn't wan't Variables for the players name
2. I wanted like ANYONE else expect CrackBam to be auto-defeated for using that command, not only Arhowk.
3. You made only Player 1 when types that recieves the Gold, but I wanted any color and only writer taking the Gold.
 
Level 15
Joined
Jan 27, 2007
Messages
948
I'd like to point a few things out. First you can't actually tint the chat text, since for doing that you would need a chat system. Second you can't delete the already entered chat message, unless the same, you make a chat system. So; you might still be able to see the "#32 <message>" in the game chat, but you won't see it the game message that has been triggered.

BTW: the maximum text message has been set to 94 letters, numbers, spaces or symbols, you can change that by putting any number in the "99" part.

  • Game - Display to (All players) the text: ((Name of (Triggering player)) + (: + (|cffff0000 + (Substring((Entered chat string), 5, 99)))))
The same happens with the handicap, the max. amount has been set to 11 digits, you can change it by changing the "25" part. Be sure they both have the same number.

  • Player - Add (Integer((Substring((Entered chat string), 14, 25)))) to (Triggering player) Current gold
  • Player - Add (Integer((Substring((Entered chat string), 14, 25)))) to (Triggering player) Current lumber
 

Attachments

  • CrackBamTriggers.w3x
    13 KB · Views: 53
Level 4
Joined
Dec 31, 2011
Messages
85
Thank you, this is what I asked, for #32 not exactly, but since it needs chat system what you done there is really nice too.

I am really happy that finally a very kind and respectful man helped me, ty +rep

Now something last I didn't said in the topic.. Well I have title system


  • Creator CrackBam
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Name of (Picked player)) Equal to CrackBam
            • Then - Actions
              • Player - Set name of (Picked player) to (|CFF527B08Creator|R + (Name of (Picked player)))
            • Else - Actions
Hm.. Any ideas like, how to make it work, I mean the regognizer.

I tried this one already and it didn't work so:
  • (Name of (Triggering player)) Equal to |CFF527B08Creator|R CrackBam
 
Status
Not open for further replies.
Top