• 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.

Name System

Status
Not open for further replies.
Level 11
Joined
Mar 19, 2008
Messages
800
I'm needing a Name system in my map, like example below.
33vnhvl.png


So basically, when player picks hero, that player gets that heros name, in the end of his own. I would like to get this on seperate map, so i can import it.

I give reputation those who are willing to help, thanks in advanced
 
Level 9
Joined
Jul 4, 2007
Messages
130
Well they are 2 string functions for that:
* Hero - Proper name of (UnitHero)
* Unit - Name of (Unit)

to add "(blabla)" you just make more Concatenate Strings.
  • Actions
    • Set THE_HERO_CHOOSEN = LastCreatedUnit (depends..)
    • Set THE_PLAYER = Owner of (THE_HERO_CHOOSEN)
    • Player - Set name of (THE_PLAYER) to ((Name of (THE_PLAYER)) + ( [ + ((Proper name of (THE_HERO_CHOOSEN)) + ])))
You didn't asked for a pick system, so it is your job to put these actions after your Hero Selection code.
 
Level 11
Joined
Jun 20, 2009
Messages
880
  • Melee Initialization
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • ((Unit-type of (Trained Unit)) is A Hero) Equal to True
    • Actions
      • Player - Set name of (Owner of (Trained Unit)) to ((Name of (Owner of (Trained Unit))) + ((( + (Name of (Trained Unit))) + )))
The event depends from the way you choose hero
 
Status
Not open for further replies.
Top