I apologize for such a basic question, but for whatever reason I just can't seem to grasp it. I've been trying to put a simple trigger into my map and it keeps giving me issues. I want a player to be able to say "-Spectate" and once this is done, it kills all of their units and gives them vision of all the other players and a message would come up that would have the name of the triggering player and then " has decided to spectate." I can get everything working except for the chat part. I'm unsure of what trigger to use to get it to work and been messing around with it a bunch and just getting errors.
Event-Chatmessage"spectate"enteredConditions-Actions-Pickeachunitin(unitsinentiremapownedbyplayer(triggeringplayer)anddoactionsRemoveunit(pickedunit)Revealarea(entiremap)forplayer(triggeringplayer)TextMessage(combinetext(Nameofplayer(triggeringplayer))+("has decided to spectate"))to(subtitle)areaforplayergroup(allplayers)
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Thank you very much, for whatever reason i kept messing with custom dialogs and that obviously had me going down the wrong path =). Now I'm gonna try and fiddle around with it until I can get the text of the Triggering player to come up as the triggering player's color.
For that color part. Instead of using name of player, use text with color. So it would look like
TextMessage(combinetext(Textwithcolor(colorofplayer(triggeringplayer))withtext(Nameofplayer(triggeringplayer))+("has decided to spectate"))to(subtitle)areaforplayergroup(allplayers)
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
To post a comment, please login or register a new account.
I apologize for such a basic question, but for whatever reason I just can't seem to grasp it. I've been trying to put a simple trigger into my map and it keeps giving me issues. I want a player to be able to say "-Spectate" and once this is done, it kills all of their units and gives them vision of all the other players and a message would come up that would have the name of the triggering player and then " has decided to spectate." I can get everything working except for the chat part. I'm unsure of what trigger to use to get it to work and been messing around with it a bunch and just getting errors.
Any help would be greatly appreciated ♥
@Yekim2o3: Go Make a trigger something like this.
@zeldarules28: Go
Thank you very much, for whatever reason i kept messing with custom dialogs and that obviously had me going down the wrong path =). Now I'm gonna try and fiddle around with it until I can get the text of the Triggering player to come up as the triggering player's color.
@Yekim2o3: Go
For that color part. Instead of using name of player, use text with color. So it would look like