• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Set Proper name to unit by writing a string?

Status
Not open for further replies.
Level 20
Joined
Jan 6, 2008
Messages
2,622
Title says it all, i want my player to write something and the Proper name of the unit will be set, he presses OK and then a dialg comes up: Are you sure you want to be named: LOLCAPS ?
Yes
No, but that dialog can i make myself.
But i need one of these Conditions

If
Entered string on Name equal to true
Then
Run Dialog Trigger
Else
Run Back Trigger

and on the back trigger it would be this

Select a name for your character
Back, ill create the dialogs, but i need help on the If Then Else
 
Would it work that Game Cache will save a Variable that collects the string that the player is writing and it would look like hes name is LOLCAPS for an example, so just make a trigger like this:

  • Cinematic - Chat thing: From Mr.Bignoob: Welcome to my house + Custom_Name + what can i do for you today?
 
No, i wasnt always thinking about a cinematic, but in a cinematic, you will also need that, ye. But i wanted to change the Hero Name itself, its for the oblivion map.
EDIT: What event shall i use? maybe i could have a whole trigger that you could show me, I also need a condition for that Custom_Name is a string with letters equal to true

EDIT: Solved the Event, now its the Condition


EDIT: There isnt a code for Variable data that i can put inside that Proper name thing?

Like the abilities got damage data??
 
Last edited:
Status
Not open for further replies.
Back
Top