
FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Dec 29, 2010 09:54 PM
Msg. 1 of 23
Ok, so I have a script, and I can't find out whats wrong with it. The onTrig4 is the problem. Unmatched Parentheses. Here's the script: (script dormant bridgespawn (ai_place Bridge_Covenant) (sleep 100) (ai_set_respawn Bridge_Covenant 1) )
(script startup onTrig1 (sleep_until (volume_test_objects trig1 (players 0)) (ai_place startencounter) (ai_place startmarines) (object_create_containing A) )
(script startup destroyallthings (object_destroy_all) )
(script startup onTrig3 (sleep_until (volume_test_objects trig3 (players 0)) (object_destroy_containing A) (object_create_containing B) )
(script startup onTrig4 (sleep_until (volume_test_objects (player 0)) (sleep 10) (wake bridgespawn) ) Edited by FtDSpartn on Dec 29, 2010 at 09:55 PM
|
|
|

Head Noob
Joined: Oct 3, 2010
This difficulty is for noobs! Mythic is for pros
|
Posted: Dec 29, 2010 10:43 PM
Msg. 2 of 23
(script dormant bridgespawn (ai_place Bridge_Covenant) (sleep 100) (ai_set_respawn Bridge_Covenant 1) )
(script startup onTrig1 (sleep_until (volume_test_objects trig1 (players 0)) 15) (ai_place startencounter) (ai_place startmarines) (object_create_containing A) )
(script startup destroyallthings (object_destroy_all) )
(script startup onTrig3 (sleep_until (volume_test_objects trig3 (players 0)) 15) (object_destroy_containing A) (object_create_containing B) )
(script startup onTrig4 (sleep_until (volume_test_objects (player 0)) 15) (sleep 10) (wake bridgespawn) ) U forgot the 15 or 30's at the end! Edited by Head Noob on Dec 29, 2010 at 10:44 PM
|
|
|

FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Dec 29, 2010 11:10 PM
Msg. 3 of 23
Oh wait, I think it's because I put player instead of players. Headnoob, it didn't give me an error with those parts. If it does though, thanks. Edit: ... (script dormant bridgespawn (ai_place Bridge_Covenant) (sleep 100) (ai_set_respawn Bridge_Covenant 1) )
(script startup onTrig1 (sleep_until (volume_test_objects trig1 (players 0) 15) (ai_place startencounter) (ai_place startmarines) (object_create_containing A) )
(script startup destroyallthings (object_destroy_all) )
(script startup onTrig3 (sleep_until (volume_test_objects trig3 (players 0) 15) (object_destroy_containing A) (object_create_containing B) )
(script startup onTrig4 (sleep_until (volume_test_objects trig4 (players 0) 15) (sleep 10) (wake bridgespawn) ) 12.29.10 20:14:13 [A10CampaignNew line 24] this left parenthesis is unmatched.: (script startup onTrig4
12.29.10 20:14:13 recompiling scripts after scenarios were merged. 12.29.10 20:14:13 this left parenthesis is unmatched.: (script startup onTrig4
Edited by FtDSpartn on Dec 29, 2010 at 11:15 PM
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Dec 29, 2010 11:49 PM
Msg. 4 of 23
@ Head Noob, the 15s / 30s are optional. Here: (script startup onTrig1 (sleep_until (volume_test_objects trig1 (players))) (ai_place startencounter) (ai_place startmarines) (object_create_containing A) )
Edited by Gamma927 on Dec 29, 2010 at 11:49 PM
|
|
|

FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Dec 30, 2010 12:20 AM
Msg. 5 of 23
(script dormant bridgespawn (ai_place Bridge_Covenant) (sleep 100) (ai_set_respawn Bridge_Covenant 1) )
(script startup onTrig1 (sleep_until (volume_test_objects trig1 (players 0))) (ai_place startencounter) (ai_place startmarines) (object_create_containing A) )
(script startup destroyallthings (object_destroy_all) )
(script startup onTrig3 (sleep_until (volume_test_objects trig3 (players 0))) (object_destroy_containing A) (object_create_containing B) )
(script startup onTrig4 (sleep_until (volume_test_objects trig4 (players 0))) (sleep 10) (wake bridgespawn) ) 12.29.10 21:19:18 [A10CampaignNew line 8] this is not a valid trigger_volume name: trig1 (players 0)))
12.29.10 21:19:18 recompiling scripts after scenarios were merged. 12.29.10 21:19:18 [A10CampaignNew line 7] this left parenthesis is unmatched.: (script startup onTrig1
|
|
|

Head Noob
Joined: Oct 3, 2010
This difficulty is for noobs! Mythic is for pros
|
Posted: Dec 30, 2010 12:53 AM
Msg. 6 of 23
Ummm.. Easy fix. U wrote the name wrong or the trigger volume.
|
|
|

FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Dec 30, 2010 02:31 AM
Msg. 7 of 23
Quote: --- Original message by: Head Noob Ummm.. Easy fix. U wrote the name wrong or the trigger volume. No I didn't, it said that trig1 (players 0))) was not a valid trigger.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Dec 30, 2010 11:59 AM
Msg. 8 of 23
For once, I wish you had copied my script rather than looking at what was wrong.
Why is your object list (players 0)? This isn't a valid object list. (players) would be the correct object list. Change this for ALL your sleep until trigger volume lines.
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Dec 30, 2010 01:50 PM
Msg. 9 of 23
(script static void bridgespawn (ai_place Bridge_Covenant) (sleep 100) (ai_set_respawn Bridge_Covenant 1) ) (script startup onTrig1 (object_destroy_all) (sleep_until (volume_test_objects trig1 (unit (list_get (players) 0)) 15)) (ai_place startencounter) (ai_place startmarines) (object_create_containing A) ) (script startup onTrig3 (sleep_until (volume_test_objects trig3 (unit (list_get (players) 0)) 15)) (object_destroy_containing A) (object_create_containing B) ) (script startup onTrig4 (sleep_until (volume_test_objects trig4 (unit (list_get (players) 0)) 15)) (sleep 10) (bridgespawn) ) Happy New year. Fixed scripts for ya. 
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Dec 30, 2010 02:13 PM
Msg. 10 of 23
That actually won't work, because you're using a specific object in conjunction with the volume_test_objects command. Either change it to volume_test_object or use a players list.
|
|
|

FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Dec 30, 2010 03:08 PM
Msg. 11 of 23
Thanks to both of you. I haven't scripted in like 2-3 months,so I forgot some stuff.
Edit: Stil, having probs,but I need to go somewhere so I don't have time to post a script and the debug. Edited by FtDSpartn on Dec 30, 2010 at 03:50 PM
|
|
|

Head Noob
Joined: Oct 3, 2010
This difficulty is for noobs! Mythic is for pros
|
Posted: Dec 31, 2010 12:41 AM
Msg. 12 of 23
Quote: --- Original message by: MoooseGuy(script static void bridgespawn (ai_place Bridge_Covenant) (sleep 100) (ai_set_respawn Bridge_Covenant 1) ) (script startup onTrig1 (object_destroy_all) (sleep_until (volume_test_objects trig1 (unit (list_get (players) 0)) 15)) (ai_place startencounter) (ai_place startmarines) (object_create_containing A) ) (script startup onTrig3 (sleep_until (volume_test_objects trig3 (unit (list_get (players) 0)) 15)) (object_destroy_containing A) (object_create_containing B) ) (script startup onTrig4 (sleep_until (volume_test_objects trig4 (unit (list_get (players) 0)) 15)) (sleep 10) (bridgespawn) ) Happy New year. Fixed scripts for ya.  WTF. Thats just to make it long for no reason. The two main trigger volumes i use r: (sleep_until (volume_test_objects trig1 (players))) and: (if (= (volume_test_objects trig1 (list_get (players) 0)) true) )
|
|
|

sargejohnson
Joined: Apr 20, 2009
Shall we play a game?
|
Posted: Dec 31, 2010 03:13 AM
Msg. 13 of 23
Quote: --- Original message by: FtDSpartn(script dormant bridgespawn (ai_place Bridge_Covenant) (sleep 100) (ai_set_respawn Bridge_Covenant 1) )
(script startup onTrig1 (sleep_until (volume_test_objects trig1 (players 0))) (ai_place startencounter) (ai_place startmarines) (object_create_containing A) )
(script startup destroyallthings (object_destroy_all) )
(script startup onTrig3 (sleep_until (volume_test_objects trig3 (players 0))) (object_destroy_containing A) (object_create_containing B) )
(script startup onTrig4 (sleep_until (volume_test_objects trig4 (players 0))) (sleep 10) (wake bridgespawn) ) 12.29.10 21:19:18 [A10CampaignNew line 8] this is not a valid trigger_volume name: trig1 (players 0)))
12.29.10 21:19:18 recompiling scripts after scenarios were merged. 12.29.10 21:19:18 [A10CampaignNew line 7] this left parenthesis is unmatched.: (script startup onTrig1
Try enclosing the values with " ", maybe that will work. Eg. (script dormant bridgespawn (ai_place Bridge_Covenant) (sleep 100) (ai_set_respawn Bridge_Covenant 1) )
(script startup onTrig1 (sleep_until (volume_test_objects "trig1" (players 0))) (ai_place startencounter) (ai_place startmarines) (object_create_containing A) )
(script startup destroyallthings (object_destroy_all) )
(script startup onTrig3 (sleep_until (volume_test_objects "trig3" (players 0))) (object_destroy_containing A) (object_create_containing B) )
(script startup onTrig4 (sleep_until (volume_test_objects "trig4" (players 0))) (sleep 10) (wake bridgespawn) )
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Dec 31, 2010 03:09 PM
Msg. 14 of 23
Quote: --- Original message by: Head Noob WTF. Thats just to make it long for no reason. The two main trigger volumes i use r: (sleep_until (volume_test_objects trig1 (players))) and: (if (= (volume_test_objects trig1 (list_get (players) 0)) true) ) No, he has a reason for it, and it would work except for the fact that he's using the volume_test_objects command rather than the volume_test_object command.
|
|
|

FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Dec 31, 2010 07:09 PM
Msg. 15 of 23
(script dormant bridgespawn (ai_place Bridge_Covenant) (sleep 100) (ai_set_respawn Bridge_Covenant 1) )
(script startup onTrig1 (object_destroy_all) (sleep_until (volume_test_object trig_1 (unit (list_get (players)) 15))) (ai_place startencounter) (ai_place startmarines) (object_create_containing A) )
(script startup onTrig3 (sleep_until (volume_test_object trig_3 (unit (list_get (players)) 15))) (object_destroy_containing A) (object_create_containing B) )
(script startup onTrig4 (sleep_until (volume_test_object trig_4 (unit (list_get (players)) 15))) (sleep 10) (wake bridgespawn) ) 12.31.10 16:09:31 [A10CampaignNew line 9] the unit call requires 1 arguments.: (unit (list_get (players)) 15)))
12.31.10 16:09:31 recompiling scripts after scenarios were merged. 12.31.10 16:09:31 [A10CampaignNew line 7] this left parenthesis is unmatched.: (script startup onTrig1 Edited by FtDSpartn on Dec 31, 2010 at 07:11 PM
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Dec 31, 2010 10:30 PM
Msg. 16 of 23
Haha, didn't catch that. It should look like:
(sleep_until (volume_test_object trig_1 (unit (list_get (players) 0) 15)))
for all the sleep until lines.
|
|
|

FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Jan 1, 2011 05:48 PM
Msg. 17 of 23
|
|
|

Head Noob
Joined: Oct 3, 2010
This difficulty is for noobs! Mythic is for pros
|
Posted: Jan 1, 2011 06:37 PM
Msg. 18 of 23
(sleep_until (volume_test_objects trig1 (players))) or: (sleep_until (volume_test_object trig1 (unit (list_get (players) 0))) 15) ??
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jan 1, 2011 11:10 PM
Msg. 19 of 23
Both of those work.
And the picture doesn't really explain anything. All it provides us is the name of the trigger volumes, which were implemented correctly into the script.
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Jan 3, 2011 02:56 AM
Msg. 20 of 23
Scripts are fun.  I used to despise them, but now they are a blast, I have no idea why... Anyways, good to see this came out well. 
|
|
|

FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Jan 3, 2011 09:52 PM
Msg. 21 of 23
Um, it didn't work still. I tried those. (sleep_until (volume_test_objects trig1 (players))) doesn't work. Edited by FtDSpartn on Jan 3, 2011 at 09:58 PM
|
|
|

Head Noob
Joined: Oct 3, 2010
This difficulty is for noobs! Mythic is for pros
|
Posted: Jan 3, 2011 10:25 PM
Msg. 22 of 23
Quote: --- Original message by: FtDSpartn
Um, it didn't work still. I tried those. (sleep_until (volume_test_objects trig1 (players))) doesn't work. Edited by FtDSpartn on Jan 3, 2011 at 09:58 PM Try this: (sleep_until (volume_test_objects trig1 (players)) 15) ? If not ur script is wierd. I use this for volume triggers.
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Jan 4, 2011 04:57 AM
Msg. 23 of 23
Is this for multiplayer? If so: (global short x 0) (script continuous changenumber (if (= x 16) (set x -1) ) (set x (+ x 1)) ) (script continuous trigcheck (sleep_until (volume_test_objects trig1 (unit (list_get (players) x))) 15) (sleep 15) ) Edited by MoooseGuy on Jan 4, 2011 at 05:07 AM
|
|
|