gazza22
  • gazza22
  • 99.75% (Exalted)
  • Captain Topic Starter
17 years ago
i have been playin this game for a long time now an i have tryed making map in the passed but i still dont no how to make a map with a timer and draining water so its no rush just like the beachparty map. in other words the water drains away then u can go and attack them can u plz help me?
untitled.JPG

Click to View Image101 View(s)


g.Threlkeld
Sponsor
Drummin
17 years ago
It's pretty simple really. It takes two scripts. One is the delay timer the other changes the water level.

*** IF ***
    True.
*** THEN ***
  Set timer 'WaterTimer' to expire in 600.00 seconds.

Change the name of the water area if you're not using the default water.
*** IF ***
    Timer 'WaterTimer' has expired.
*** THEN ***
    area 'Default Water' changes altitude to 0.00 in 20.00 seconds doing 0.00 dam_/sec.

The script for changing the water is found under Map/Modify.

Make sure the elevation of your river bottom is above zero.
gazza22
  • gazza22
  • 99.75% (Exalted)
  • Captain Topic Starter
17 years ago
thanx mate its done but it dose not show the timer counting down tho how do u do that plz
g.Threlkeld
Drummin
17 years ago
You know I tried to make a timer show quite a while ago and could never get it to work. It would probably require making a map.ini file and creating the properties to display in the game like a nuke countdown timer.
Me Myself and Pi
17 years ago
It's easy to get the timer to show up. Since it will take another 20 seconds for the water to drain, add these actions:
*** IF ***
    True.
*** THEN ***
  Set timer 'WaterTimer' to expire in 600.00 seconds.
  Set timer 'Water Display Timer' to expire in 620.00 seconds.
  [???]Show 'Water Display Timer' with text Localized String: '???'
(Scripting/Timer/Display an individual timer to the user.)

If you don't choose a localized string (a message that shows up next to the timer) then it should just show the number count down. (Don't worry about the 3 question marks that appear at the biggining of the action.) If you do want a message to show up, (i.e. Water Drains In:) this requires a few extra steps. But note, if you use it for a multiplayer map, the other players will see, "MISSING: 'SCRIPT: Water Drains In #:##'" while on your computer, you'll see "Water Drains In: #:##" (The # just means what ever time the is left)

So let me know & I'll tell you how.
Drummin
17 years ago
Sky Demon
17 years ago
Pi i'm bookmarking this Thread, please tell me how to do that.
Just like Drummin I have tried for a long time and never managed to get a timer to show up with chosen text. I am referring to C&C Generals, not Zero-Hour. Although it'd be great if I could have methods for both, assuming there not the same. 😉
gazza22
  • gazza22
  • 99.75% (Exalted)
  • Captain Topic Starter
17 years ago
yer sound it works but the timer comes up in seconds not minutes come do i do that plz
g.Threlkeld
Drummin
17 years ago
The timers are based on seconds so I dought they can be coverted to show in minutes though Pi's post makes it look like it's possible (#:##).
Sky Demon, just looking at what Pi wrote, a map.str file might be what he's using.
It might look like

Water Drains In:
"Water Drains In:"
END

I guess we'll wait for Pi to give us the scoop.
Me Myself and Pi
17 years ago
Yes, you use a Map.str file.

1) Open up note pad & add the text to show up next to the timer with, SCRIPT: infront of it. (This is case sensitive)
2) Under that, enclosed in quotes, type the same text as before.
3) Then type End under it all.
4) So in the end, it should look like this, it's close to what Drummin wrote:
SCRIPT: Water Drains In:
"Water Drains In:"
End
5) Now save the note pad document as, Map.str in your map folder. (Your map folder in located in, My Documents\Command and Conquer Generals (Zero Hour) Data\Maps\ There you'll see folders with the names of all your maps.)

Now in the world builder (whether or not you using Zero Hour) you'll see SCRIPT: Water Drains In: in the list of localized strings in that one action for displaying a timer. If you are using Generals, then the other players will see the text just fine next to the timer, but for Zero Hour, the players will see as I described above.

yer sound it works but the timer comes up in seconds not minutes come do i do that plz


The timer will count down in minutes & seconds in the game, not just seconds. So if you want a timer for 10 minutes, you multiply 10 by 60 to know how many seconds to put in. Altough if is, I'm pretty sure that it doesn't. Let me know again & I'll look into it again.
Drummin
17 years ago
Ha, SCRIPT: was what I was missing when trying this way back when. Thanks again Pi!
Sky Demon
17 years ago
Thank you Pi.
I have tested what you said and it works a treat! I can finally have countdown timers that say what I want them to say.
gazza22
  • gazza22
  • 99.75% (Exalted)
  • Captain Topic Starter
17 years ago
YER I GOT IT WORKING AS WELL PRITTY EASY LIKE THANX
g.Threlkeld