
Delicon20
Joined: Oct 3, 2008
Still here. Still loves bacon
|
Posted: Jul 20, 2010 10:37 AM
Msg. 1 of 14
script: (script dormant mission_cliff_marine (sleep_until (or (< (ai_living_fraction cliff_wave )0.5 ) (volume_test_objects cliff_right_fort_first_floor (players ))(volume_test_objects cliff_left_fort_first_floor (players )))5 ) (if (not (volume_test_objects cliff_inside_left_bottom (players )))(sound_impulse_start "sound\dialog\a30\a30_540_cortana" none 1 )) (sleep (sound_impulse_time "sound\dialog\a30\a30_540_cortana" )) (ai_timer_expire cliff_wave/left_fort_inside_grunt ) (ai_timer_expire cliff_wave/right_fort_inside_grunt ) (sleep_until (or (< (ai_living_fraction cliff_wave )0.3 ) (volume_test_objects cliff_right_fort_second_floor (players ))(volume_test_objects cliff_left_fort_second_floor (players )))5 ) (if (or (volume_test_objects cliff_right_fort_second_floor (players ))(volume_test_objects cliff_left_fort_second_floor (players )))(ai_place cliff_wave/inside_bottom_jackal )) (ai_place cliff_marine ) (objects_predict (ai_actors cliff_marine )) (objects_predict (ai_actors cliff_wave )) (sleep_until (or (< (ai_living_fraction cliff_wave )0.3 )(volume_test_objects cliff_inside_left_bottom (players )))5 ) (sleep_until (< (ai_living_count cliff_wave/inside_bottom_jackal )3 )1 delay_late ) (if (< (ai_living_fraction cliff_wave )0.3 )(set global_cliff_welcome true )) (sleep_until (game_safe_to_speak )1 ) (wake save_cliff_welcome ) (ai_conversation cliff_welcome ) (sleep_until (< 4 (ai_conversation_status cliff_welcome ))1 )(set global_cliff_welcome true ))
error: 07.20.10 09:30:13 recompiling scripts after scenarios were merged. 07.20.10 09:30:14 this left parenthesis is unmatched.: (script dormant mission_cliff_marine
now where do I put the parenthesis?
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jul 20, 2010 07:27 PM
Msg. 2 of 14
...I'm not going to go through that giant script. Count the number of unclosed pairs; every time you see a left parentheses, increase your count by one. Whenever you see a right parentheses, decrease your count by one.
|
|
|

SlappyThePirate
Joined: Aug 24, 2009
You are irritating, I'll release nothing
|
Posted: Jul 21, 2010 08:42 PM
Msg. 3 of 14
Quote: --- Original message by: Delicon20 error: 07.20.10 09:30:13 recompiling scripts after scenarios were merged. 07.20.10 09:30:14 this left parenthesis is unmatched.: (script dormant mission_cliff_marine
Compile in sapien, it will tell you the line #. In notepad Go to>Type your line #
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jul 21, 2010 09:02 PM
Msg. 4 of 14
However, the provided line number usually isn't the location of the missing parentheses. Sapien usually provides the line number for the beginning of the block that isn't closed.
|
|
|

Delicon20
Joined: Oct 3, 2008
Still here. Still loves bacon
|
Posted: Jul 22, 2010 10:49 AM
Msg. 5 of 14
It's the zteam campaign scripts so the formatting isn't my fault if anyone knows any better more reliable campaign scripts I'd be happy to download them
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jul 22, 2010 12:49 PM
Msg. 6 of 14
You can format zteam's scripts, you know O.o
|
|
|

Delicon20
Joined: Oct 3, 2008
Still here. Still loves bacon
|
Posted: Jul 22, 2010 08:08 PM
Msg. 7 of 14
Well I'll ask this here:
(script dormant cave_hermits (sleep_until volume_test_objects Cave_AI1 (players)) (AI_place Forunner_Cave-Cov)) ^Made myself hurrrrrrrrr
07.22.10 19:04:28 [a30 line 2417] i expected "true" or "false".: volume_test_objects Cave_AI1 (players))
07.22.10 19:04:28 recompiling scripts after scenarios were merged. 07.22.10 19:04:43 [a30 line 2416] this left parenthesis is unmatched.: (script dormant cave_hermits
true or false about what I don't completely understand scripts so Idk I just want a trigger volume to spawn an encounter when entered
|
|
|

SlappyThePirate
Joined: Aug 24, 2009
You are irritating, I'll release nothing
|
Posted: Jul 22, 2010 08:25 PM
Msg. 8 of 14
Quote: --- Original message by: Delicon20 Well I'll ask this here:
(script dormant cave_hermits (sleep_until volume_test_objects Cave_AI1 (players)) (AI_place Forunner_Cave-Cov)) ^Made myself hurrrrrrrrr
07.22.10 19:04:28 [a30 line 2417] i expected "true" or "false".: volume_test_objects Cave_AI1 (players))
07.22.10 19:04:28 recompiling scripts after scenarios were merged. 07.22.10 19:04:43 [a30 line 2416] this left parenthesis is unmatched.: (script dormant cave_hermits
true or false about what I don't completely understand scripts so Idk I just want a trigger volume to spawn an encounter when entered (script dormant cave_hermits (sleep_until (volume_test_objects Cave_AI1 (players)) );;end sleep (AI_place Forunner_Cave-Cov) ) If I interpreted this correctly, he wants the AI in the cave placed upon player-in-the-volume.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jul 22, 2010 09:27 PM
Msg. 9 of 14
Quote: --- Original message by: SlappyThePirateQuote: --- Original message by: Delicon20 Well I'll ask this here:
(script dormant cave_hermits (sleep_until volume_test_objects Cave_AI1 (players)) (AI_place Forunner_Cave-Cov)) ^Made myself hurrrrrrrrr
07.22.10 19:04:28 [a30 line 2417] i expected "true" or "false".: volume_test_objects Cave_AI1 (players))
07.22.10 19:04:28 recompiling scripts after scenarios were merged. 07.22.10 19:04:43 [a30 line 2416] this left parenthesis is unmatched.: (script dormant cave_hermits
true or false about what I don't completely understand scripts so Idk I just want a trigger volume to spawn an encounter when entered (script dormant cave_hermits (sleep_until (volume_test_objects Cave_AI1 (players)) );;end sleep (AI_place Forunner_Cave-Cov) ) If I interpreted this correctly, he wants the AI in the cave placed upon player-in-the-volume. Doesn't work. You're missing a parameter in the sleep_until command for the interval for checking for the condition. (script dormant cave_hermits (sleep_until (volume_test_objects Cave_AI1 (players)) 15 );;check every half second for completion of the condition (AI_place Forunner_Cave-Cov) ) Although why he's using a dormant command AND a sleep_until command in conjunction is beyond my mind.
|
|
|

Delicon20
Joined: Oct 3, 2008
Still here. Still loves bacon
|
Posted: Jul 22, 2010 10:27 PM
Msg. 10 of 14
because I have absolutely no clue what in the world I'm doing
|
|
|

Delicon20
Joined: Oct 3, 2008
Still here. Still loves bacon
|
Posted: Jul 23, 2010 11:12 AM
Msg. 11 of 14
so do I delete sleep_until only? or do I have to delete something with it? or do you not understand what in the world I'm trying to say because I sure don't :/
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jul 23, 2010 11:46 AM
Msg. 12 of 14
It doesn't matter which you use, as according to grunts, (and after a bit of checking), both scripts function.
|
|
|

Delicon20
Joined: Oct 3, 2008
Still here. Still loves bacon
|
Posted: Jul 23, 2010 12:10 PM
Msg. 13 of 14
Quote: --- Original message by: Gamma927 It doesn't matter which you use, as according to grunts, (and after a bit of checking), both scripts function. so if I leave both it will work?
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jul 23, 2010 12:21 PM
Msg. 14 of 14
>>; Either my script or SlappyThePirate's script will work. Use one.
|
|
|