fleetatks
19 years ago
I'm pretty sure (going by the official tuturoal) that it's backdoorpath#, centerpath#, and flank# (I need to fix my tutorial sometime because I put flankpath#)
Email me if you ever need help (edited signature November 6th, 2014)
Misacorp
  • Misacorp
  • 98.75% (Exalted)
  • Captain Topic Starter
19 years ago
Well, I had CenterPath# and the AI did use it to try break through my defenses quite alot.
UserPostedImage
krit
  • krit
  • 100% (Exalted)
  • Commander in Chief
19 years ago
Hmm... Must work on both then, since my maps uses "Center#" and it works as well.

Oh, and MiC, forgot to mention that the map.ini alone will not provide the map with a looping raining sound or the lightning flashes that occurs periodically. Those would need to be done via the scripts.

First, go into the team list and create a new team called "Rain"
Go into scripts via [Edit > Scripts...] and do the following:
> Create a folder called "Rain" under the "Rain" main directory and have the "Group is Active" check box ticked
> Create the following scripts:

>> Constantly Raining
*** IF ***
True.
*** THEN ***
Play Sound 'RainStereoLoop'.
Play Sound 'ThunderAmbienceStereo'.
Sound 'RainStereoLoop' play at 200.00% of full volume.
Sound 'ThunderAmbienceStereo' play at 200.00% of full volume.
Sound 'ThunderStrikesStereo' play at 200.00% of full volume.

>> Start Lightning
*** IF ***
True.
*** THEN ***
Set timer 'Lightning' to expire between 10.00 and 20.00 seconds.
Enable Script 'Time Between Lightning'.

>> Reset Lightning
*** IF ***
True.
*** THEN ***
Set timer 'Lightning' to expire between 15.00 and 30.00 seconds.
Enable Script 'Time Between Lightning'.

>> Time Between Lightning
*** IF ***
Timer 'Lightning' has expired.
*** THEN ***
Set timer 'Flash_Times' to expire between 0 and 4 frames.
Stop timer 'Flash_Times'
Set timer 'Between_Flash_Times' to expire between 0 and 6 frames.
Enable Script 'Reset Lightning'.

>> Lightning
*** IF ***
Timer 'Between_Flash_Times' has expired.
*AND* Counter 'Flash_Times' IS Greater Than 0
*** THEN ***
Fade (0-1) from 0.60 to 0.00 adding toward white. Take 1 frames to increase, hold for 2 fames, and decrease 2 frames.
Set timer 'Between_Flash_Times' to expire between 0 and 5 frames.
Subtract 1 from counter 'Flash_Times'
Play Sound 'ThunderStrikesStereo'.

> All the scripts are to be set as "Script is Active"
> "Start Lightning", "Reset Lightning" and "Time Between Lightning" are set as "Deactivate upon Success"
> All check boxes for the [Active in] "Hard", "Medium" and "Easy" are checked

Or, if you're just extra lazy, just download the following script file and import it into your map in WorldBuilder

Download Attachment: UserPostedImage Rain.zip 
1.96 KB
UserPostedImage 
MicScoTho
19 years ago
Thanks Krit, I've updated the tutorial.
UserPostedImage 
Misacorp
  • Misacorp
  • 98.75% (Exalted)
  • Captain Topic Starter
19 years ago
So is it BackDoorPath# or BackDoor# ?
UserPostedImage
MicScoTho
19 years ago
http://www.cncgeneralsworld.com/downloads/downloader.aspx?fileid=124  [page 41].

In light of Krit's observation that "Center#" works, however, someone might want to investigate that in more detail. After all, the official manual is for the Generals version (not Zero Hour) and was written before Generals was released.

Additionally, RVMECH's World Builder Tutorial here  (also targeted at Generals) lists the names as Flank, BackDoor, and Center.
UserPostedImage 
krit
  • krit
  • 100% (Exalted)
  • Commander in Chief
19 years ago
I looked at the official ZH map "Eastern Everglades" and they were "Flank#", "Center#" and "Backdoor#". So my guess is that they still work with or without the "-path"
UserPostedImage 
Sniperelite8243
19 years ago
when i tried it in my maps with path it didnt work, but then again i could hace scriped it wrong, even though i find no mistakes. the comp built normally and never attacked. just sat their? the map is long gone so i will never find out. maybe they updated it in a patch? maybe its in a regular generals map, you can check or i will check tomorow because i gotta go.
krit
  • krit
  • 100% (Exalted)
  • Commander in Chief
19 years ago
For regular skirmish on a basic map, no scripting is needed at all.
UserPostedImage