~ACE~RAPTOR
17 years ago
i need to know how to make certain items be on an enemies side in world builder (generals not zh) i was trying to make them be able to use the hovercraft and i dont think i cant do the unmanned script on generals plz help me thx



srry im a noob to scripting 💀 lol
online name: ~ACE~RAPTOR
part of the old ~ace~ clan
uses generals for now will go back to zh
FEAR MY NUCLEAR REIN!!!!!
Sponsor
Drummin
17 years ago
I order to do any scripting for AI players, you need to load AI skirmish scripts into your map.
(NOTE: These are for Generals not Zero Hour)
I will assume you already have add skirmish player's to your map. So do this.
Unzip AI script file.
With your map open in world builder, go to scripts, uncheck the AutoVerify box and import these scripts.
Download Attachment: UserPostedImage SkirmishScripts.zip 
44.82 KB
You can then write any script for these AI player's.
I'm not sure exactily what you're trying to do, but you should define the player in the conditon part of your script so the script will work if you have more than one player from the same faction. Somthing like
*** IF ***
Player '' has units in area 'The Area'.
*** THEN ***
Unit 'Hover1' is transferred to the command of Player ''

On the map, you would place the unit belonging to player Civilian and name it the same as your script as in Hover1. You would also need to make "The Area" that triggers this script if you go with that condition.

I believe that should do it.
I don't use Generals so I haven't checked this but it should work.
~ACE~RAPTOR
17 years ago
also i have a map that i made that has a slight problem, i have all of the paths labled and waypoints made, and put the skirmish players in and every time ill enter it, it will say "we are victorious" does any one know what the problem can be?
online name: ~ACE~RAPTOR
part of the old ~ace~ clan
uses generals for now will go back to zh
FEAR MY NUCLEAR REIN!!!!!
Drummin
17 years ago
Without seeing your map, here's a few things to check.

Areas are not overlapping and labeled properly.

Waypoints should start in the CombatZone and go to the innerperimeter. (Check direction arrows)
I've found that extra pathways only slow the game down so don't go crazy defining an exact path. Just two points from Combat to inner is all you need.

Waypoints labeled correctly.
Names should be listed in the "Waypoint Path Labels:" area and not replacing the waypoint name.

It could also be that you have some script that is interupting the default AI scripts from loading. That would mean you have no enemies and have won the game.

Can you upload it so we can take a look?
Go to your map folder and zip it up. In case you've not done that before, you should find it at
My Documents/Command and Conquer Generals Data/Maps/Your Map Name.

Right click on the map folder and look for "Send To" Compressed (zipped) folder.

Then do a normal reply to this post and click the "Insert a File" button.
~ACE~RAPTOR
17 years ago
ok here it is i made it 2 weeks ago and need to make it work with comps

Download Attachment: UserPostedImage NEW YORK WARFARE BY OsamaBinLaden.zip 
33.63 KB
online name: ~ACE~RAPTOR
part of the old ~ace~ clan
uses generals for now will go back to zh
FEAR MY NUCLEAR REIN!!!!!
Drummin
17 years ago
OK, well the extra player's you added interfered with the default AI scripts loading. I changed the five units that you had given to those extra player's over to Civilian player. I then removed the extra players. Also moved Combatzone edge within map boundaries. Seems to work, though there is some lag. Maybe those drones just flouting... don't no but the map works.

Download Attachment: UserPostedImage NEW YORK WARFARE BY OsamaBinLaden.zip 
33.58 KB
~ACE~RAPTOR
17 years ago
LOL how do i unzip it in to a normal file or will it work as it is?
online name: ~ACE~RAPTOR
part of the old ~ace~ clan
uses generals for now will go back to zh
FEAR MY NUCLEAR REIN!!!!!
Drummin
17 years ago
You need to extract or unzip the file and put the folder into your Generals map file in your document section. Right click on the zip folder and extract the map. Because you already have this map, you should probably move the old copy or delete it first before putting the new copy in.