| 07-11-2002, 06:41 PM | #1 |
Guest | okay, i got 2 basic questions. I would like to know if there is a tag or something you can throw into like a name of an item or hero or text or something that will be replaced by a variable. an example would be like, a variable was 10 or 15, can i have it so i can just make a person say blah blah blah (variable would go here). it would help me a bunch. thanx |
| 07-11-2002, 06:42 PM | #2 |
Guest | and the second question is, would the tag thing work if i placed it on an item name or something. |
| 07-11-2002, 07:34 PM | #3 |
Okay, I'll try to walk you through it... there may be a better way, but this is how to do it nice and dirty... First create your variable... call it ThingVar and give a type Integer or something, assign it an initial value if you want... Now, create a new trigger: Cinematic - Transmission From Unit where it says "Message" in red, click there. Change the circular radio box to "Function: Concatenate Strings" For String 1, click there and give it a value of something like "Blah Blah". Now click String 2, think of it as a nested function. When the new window pops up change its radio box to "Function: Concatenate Strings" and then click "String 1". When it pops up... change the radio box to "Variable: ThingVar", then click okay. You'll go back to the previous box which should say "ThingVar + String 2". Click String 2 and replace with "Blah". Then click okay. When you get back to the original string, you'll see "Blah Blah + (ThingVar + Blah)". It's a dirty way to do it... but it works. I'm not sure if you have to add a space before the "Blah" and after the "Blah Blah" or not... trial and error after that. A unit name cannot be changed dynamically so the variable in the unit name or item name can't happen. |
| 07-11-2002, 07:49 PM | #4 |
Guest | thanks for that much, damn, i was hoping to make something where u can name units in the game, like naming heros in an rpg. that is always a fun thing to do. |
