Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline GodlyGamer  
#1 Posted : Monday, January 28, 2008 4:46:01 PM(UTC)
GodlyGamer
Private
Joined: 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.
Sponsor
Offline Me Myself and Pi  
#2 Posted : Tuesday, January 29, 2008 11:26:23 AM(UTC)
Me Myself and Pi
Colonel
Joined: 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.
thanks 1 user thanked Me Myself and Pi for this useful post.
Hvel on 12/10/2019(UTC)
Offline TheDesertAce  
#3 Posted : Thursday, February 14, 2008 10:57:11 PM(UTC)
TheDesertAce
Private
Joined: 2/14/2008(UTC)
Posts: 11
Location: Canada

what else can u do....
You will learn to fear..."The Desert Ace"
Offline Me Myself and Pi  
#4 Posted : Friday, February 15, 2008 7:21:23 AM(UTC)
Me Myself and Pi
Colonel
Joined: 8/22/2007(UTC)
Posts: 867

Was thanked: 12 time(s) in 5 post(s)
What else can I do?

What do you mean?
Offline fleetatks  
#5 Posted : Friday, February 15, 2008 9:11:43 AM(UTC)
fleetatks
Colonel
Joined: 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.