Posted by: gazza22 - Thursday, October 9, 2008 6:20:40 AM
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? [ATTACH]66[/Attach]

Posted by: Drummin - Thursday, October 9, 2008 8:01:10 AM
It's pretty simple really. It takes two scripts. One is the delay timer the other changes the water level. [code]*** IF *** True. *** THEN *** Set timer 'WaterTimer' to expire in 600.00 seconds.[/code] Change the name of the water area if you're not using the default water. [code]*** IF *** Timer 'WaterTimer' has expired. *** THEN *** area 'Default Water' changes altitude to 0.00 in 20.00 seconds doing 0.00 dam_/sec. [/code] The script for changing the water is found under Map/Modify. Make sure the elevation of your river bottom is above zero.

Posted by: gazza22 - Thursday, October 9, 2008 8:54:13 AM
thanx mate its done but it dose not show the timer counting down tho how do u do that plz

Posted by: Drummin - Thursday, October 9, 2008 9:27:03 AM
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.

Posted by: Me Myself and Pi - Thursday, October 9, 2008 11:37:13 AM
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: [code]*** 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: '???'[/code] (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.

Posted by: Drummin - Thursday, October 9, 2008 11:42:20 AM
Cool Pi!

Posted by: Sky Demon - Thursday, October 9, 2008 12:12:52 PM
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. ;)

Posted by: gazza22 - Thursday, October 9, 2008 1:35:34 PM
yer sound it works but the timer comes up in seconds not minutes come do i do that plz

Posted by: Drummin - Thursday, October 9, 2008 3:01:30 PM
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.

Posted by: Me Myself and Pi - Thursday, October 9, 2008 4:59:56 PM
Yes, you use a Map.str file. 1) Open up note pad & add the text to show up next to the timer with, [b]SCRIPT:[/b] infront of it. (This is case sensitive) 2) Under that, enclosed in quotes, type the same text as before. 3) Then type [b]End[/b] under it all. 4) So in the end, it should look like this, it's close to what Drummin wrote: [code]SCRIPT: Water Drains In: "Water Drains In:" End[/code] 5) Now save the note pad document as, [b]Map.str[/b] 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 [b]SCRIPT: Water Drains In:[/b] 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. [quote]yer sound it works but the timer comes up in seconds not minutes come do i do that plz[/quote] 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.

Posted by: Drummin - Thursday, October 9, 2008 6:09:18 PM
Ha, SCRIPT: was what I was missing when trying this way back when. Thanks again Pi!

Posted by: Sky Demon - Saturday, October 11, 2008 9:23:02 AM
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.

Posted by: gazza22 - Saturday, October 11, 2008 1:49:14 PM
YER I GOT IT WORKING AS WELL PRITTY EASY LIKE THANX