HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Variable question

08-31-2002, 01:06 AM#1
Guest
How would I store the name of a hero (who's name is generated randomly at beginning of game) into a variable?
08-31-2002, 11:17 AM#2
SuperIKI
If you want a string containing the heroes name that was generated from several possibilities you typed into the unit editor: Not possible.

However, depending on what you want to do, there are several workarounds.
08-31-2002, 03:30 PM#3
Guest
Let me explain what I mean. One of the computers is human and I give them a paladin. Its not a special unit type, just a normal paladin hero. However, there are like 10 or so random paladin names. I'm trying to get his name so I can put it into a Cinematic - Transmission from unit trigger. I can't type his name because its random. Any ideas?
08-31-2002, 03:41 PM#4
Digital Angel
Use a custom unit based on a hero and name it differently..
08-31-2002, 03:46 PM#5
Guest
wow, that was simple enough...
08-31-2002, 11:02 PM#6
Digital Angel
yeh sorry for the short post though I was on my way to work :P. Actually this reply is just me being stupid and adding up to my post count hehe :rolleyes: well happy to help you :)
09-01-2002, 01:03 AM#7
Guest
you could just delete all the names of the pallys except for one, or you can go if you crated him
(name of last created unit) its somewhere they there is many ways to do it.