bio138
  • bio138
  • 50.25% (Neutral)
  • Private Topic Starter
12 years ago
Hello,
I am fairly new to Zero Hour scripting, however I have made a AOD map for me and my friends to
play on so I know what's going on for the most part in a script.

But to the point now, can anyone help me figure out why these aren't spawning when told to?

Here are the script examples:

Also, I don't know how some people transfer them over so
I am going to just type them out

Game Start1
*** IF ***
True.
*** THEN ***
Show military briefing String: 'Attackers Have 2 Hours To Successfully Drive The Defenders Out' for 15000 milliseconds.
Set timer 'GameStart1' to expire in 15.00 seconds.

Game Start2
*** IF ***
Timer 'GameStart1' has expired.
*** THEN ***
Show military briefing String: 'Boats Have Now Spawned For The Attacker' for 10000 milliseconds.
Spawn an instance of Team 'Boats1' at Waypoint 'Boatspawn1'.
Spawn an instance of Team 'Boats1. 1' at Waypoint 'Boatspawn2'.
Spawn an instance of Team 'Boats1. 2' at Waypoint 'Boatspawn3'.
Spawn an instance of Team 'Boats1. 3' at Waypoint 'Boatspawn4'.
Spawn an instance of Team 'Boats1. 4' at Waypoint 'Boatspawn5'.
Make Team 'Boats1' unmanned.
Make Team 'Boats1. 1' unmanned.
Make Team 'Boats1. 2' unmanned.
Make Team 'Boats1. 3' unmanned.
Make Team 'Boats1. 4' unmanned.
Set timer 'GameStart2' to expire in 10.00 seconds.

Game Start3
*** IF ***
Timer 'GameStart2' has expired.
*** THEN ***
Show military briefing String: 'The Boats Will Only Respawn Upon Squad Being Killed, A Message Will Appear Upon Respawn' for 15000 milliseconds.

Team1
*** IF ***
Team 'Boats1' has been destroyed.
*** THEN ***
Spawn an instance of Team 'Boats1' at Waypoint 'Boatspawn1'.
Make Team 'Boats1' unmanned.
Show military briefing String: 'Transport Team 1 Has Respawned' for 10000 milliseconds.

Team2
*** IF ***
Team 'Boats1. 1' has been destroyed.
*** THEN ***
Spawn an instance of Team 'Boats1. 1' at Waypoint 'Boatspawn2'.
Make Team 'Boats1. 1' unmanned.
Show military briefing String: 'Transport Team 2 Has Respawned' for 10000 milliseconds.

Team3
*** IF ***
Team 'Boats1. 2' has been destroyed.
*** THEN ***
Spawn an instance of Team 'Boats1. 2' at Waypoint 'Boatspawn3'.
Make Team 'Boats1. 2' unmanned.
Show military briefing String: 'Transport Team 3 Has Respawned' for 10000 milliseconds.

Team4
*** IF ***
Team 'Boats1. 3' has been destroyed.
*** THEN ***
Spawn an instance of Team 'Boats1. 3' at Waypoint 'Boatspawn4'.
Make Team 'Boats1. 3' unmanned.
Show military briefing String: 'Transport Team 4 Has Respawned' for 10000 milliseconds.

Team5
*** IF ***
Team 'Boats1. 4' has been destroyed.
*** THEN ***
Spawn an instance of Team 'Boats1. 4' at Waypoint 'Boatspawn5'.
Make Team 'Boats1. 4' unmanned.
Show military briefing String: 'Transport Team 5 Has Respawned' for 10000 milliseconds.


That's it for the scripts I added so far

By the way before you go "Boats?"
The whole map is a 2v1 where 1 gets the amphibious transports and the others have to hold him off, the boats are the transports.

Any help at all would be nice
Thank you for your time...
Sponsor
brncao
  • brncao
  • 71% (Friendly)
  • Captain
12 years ago
You need to place the scripts in the folder that is controlled by an AI (i.e. SkirmishGLA), not (neutral). But I assume you know that already.

The other piece of information we need to know more about is the Teams' properties where you edit and add teams. If you leave the script conditions & triggers blank, then nothing will happen.

Upload your map so we can take a look.
bio138
  • bio138
  • 50.25% (Neutral)
  • Private Topic Starter
12 years ago
Thank you for your reply brncao,

The map currently has the Shockwave mod installed, I removed all the content from the map that involved shockwave just in case that added any problems. But just as a warning the map is somewhat bland right now because I am attempting to solve this scripting problem (thanks for the help by the way). I wasn't aware that it must be an AI player controlling these, when me and my friends were testing I had some scripts with boats ie(Carriers and battleships) to make them unmanned BUT they didn't need to respawn as here. So I didn't realize that "PlyrCivilian" was in fact not a bot, I knew neutral was off limits though. Also, can you enlighten me into what you mean by if you leave them blank? Do you mean instead of "True."? Or...


But here is the map, if there are any problems with you opening it please reply so I can get rid of any Mod content and re-upload.


After this post I will attempt to move the teams and scripts to another AI folder, I guess I made the other AOD by shear luck lol

Thank you for your help so far everything here is helping so far.

I also seem to be having difficulty attaching said file to the post, hopefully it works if not you may see several posts of me trying to attach it.


*EDIT*
https://www.mediafire.com/?843zua4t5aazz01 
Still cant seem to get the attachments to work, and ignore that deleted message that was just me asking how to get it to work lol
bio138
  • bio138
  • 50.25% (Neutral)
  • Private Topic Starter
12 years ago
Thank you brncao,
Through reminding me that PlyrCivilian isn't an actual player, I managed to get it working.

Thanks again...