PrivateJoined: 1/28/2008(UTC) Posts: 4 Location: Canada
|
Could anybody help me to understand where and how to define a string in the World Builder for C&C Generals ZERO:HOUR.
I want to use the "Military Briefing" to display text onscreen for people to view whilst in my scenario... but I can not figure out where I define a string, or how I do it. I've looked through all the triggers, and could not find anyplace to define one, and I've looked through other peoples scenarios, but could not find any help for that.
If anybody could explain where I may be able to define a string, it would be appreciated.
|
|
|
|
ColonelJoined: 8/22/2007(UTC) Posts: 867
Was thanked: 12 time(s) in 5 post(s)
|
If I understood you correctly, strings are definned in an STR file. What you do is open up Notepad & type:
NAMEOFSTRING "STRINGTEXT" End
So bassically, in the briefing action of a script, type a name of the string, like, Caption 1. Then if you wanted the caption to say, "Welcome to my map!" Then the text in Notepad should look like this:
Caption 1 "Welcome to my map!" End
Now all you have to do is save the Notepad file as "Map.str" in your map folder. (The folder for youre map in located in "My Documents\Command & Conquer Generals Zero Hour Data\Maps" [Assuming your using Zero Hour & not Generals.])
If you are using Zero Hour & not just Generals, then take note, if you're doing this for a multiplayer map you'll see on your screen, "Welcome to my map!" while the other players will see, "MISSING: 'Caption 1'". (In just Generals there's no problem. This only accours in Zero Hour.) There's no way around this, unless all the players have the map in advance, so just use the caption as the string name. So in the briefing action of your script, put, "Welcome to my map!" Then in the Notepad file, change the text to:
Welcome to my map! "Welcome to my map!" End
Then at least the players will see, "MISSING: 'Welcome to my map!'". After they player exit Zero Hour & open it up again & play the map again, then the caption will come out right, without the MISSING infront of it.
|
 1 user thanked Me Myself and Pi for this useful post.
|
|
|
PrivateJoined: 2/14/2008(UTC) Posts: 11 Location: Canada
|
|
You will learn to fear..."The Desert Ace" |
|
|
|
ColonelJoined: 8/22/2007(UTC) Posts: 867
Was thanked: 12 time(s) in 5 post(s)
|
What else can I do?
What do you mean?
|
|
|
|
ColonelJoined: 6/2/2006(UTC) Posts: 961 Location: USA
Was thanked: 3 time(s) in 2 post(s)
|
You can also make the text scroll, if you want to learn more go to this topic and scroll down |
Email me if you ever need help (edited signature November 6th, 2014) |
|
|
|
Users browsing this topic |
Guest (3)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.