A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »could this script work

Author Topic: could this script work (10 messages, Page 1 of 1)
Moderators: Dennis

docter p0
Joined: Jul 22, 2010


Posted: Sep 6, 2010 01:11 PM    Msg. 1 of 10       
alright i have 4 doors and 2 control panels and this is the script i made but i had an error

(script continuous door-open
(begin
(sleep_until
(=
(device_get_position control2) 1.00))
(device_set_position control1 1.00)
(device_set_position door4 1.00)
(device_set_position door3 1.00)
(device_set_position door2 1.00)
(device_set_position door1 1.00)))
(sleep_until
(=
(device_get_position control2) 0.00))
(device_set_position control1 0.00)
(device_set_position door4 0.00)
(device_set_position door3 0.00)
(device_set_position door2 0.00)
(device_set_position door1 0.00)))
(sleep_until
(=
(device_get_position control1) 1.00))
(device_set_position control2 1.00)
(device_set_position door4 1.00)
(device_set_position door3 1.00)
(device_set_position door2 1.00)
(device_set_position door1 1.00)))
(sleep_until
(=
(device_get_position control1) 0.00))
(device_set_position control2 0.00)
(device_set_position door4 0.00)
(device_set_position door3 0.00)
(device_set_position door2 0.00)
(device_set_position door1 0.00)))

and heres my stupid error


09.06.10 12:07:27 sapien pc 01.00.00.0609 ----------------------------------------------
09.06.10 12:07:27 reference function: _write_to_error_file
09.06.10 12:07:27 reference address: 401b13
09.06.10 12:07:27 Couldn't read map file './sapienbeta.map'
09.06.10 12:07:29 CreateDevice succeeded with refresh rate = 0
09.06.10 12:07:30 Increasing sound decompression buffer size to 1048576 bytes
09.06.10 12:07:32 recompiling scripts after scenarios were merged.
09.06.10 12:07:32 this left parenthesis is unmatched.: (script continuous door-open

09.06.10 12:07:32 this left parenthesis is unmatched.: (script continuous door-open

09.06.10 12:07:36 local player 0, weapon (0x0), deleted unexpectedly
09.06.10 12:07:41 [door line 11] i expected "script" or "global".: sleep_until

09.06.10 12:07:41 recompiling scripts after scenarios were merged.
09.06.10 12:07:41 this left parenthesis is unmatched.: (sleep_until

09.06.10 12:07:43 [door line 11] i expected "script" or "global".: sleep_until

09.06.10 12:07:43 recompiling scripts after scenarios were merged.
09.06.10 12:07:43 this left parenthesis is unmatched.: (sleep_until


thx if gamma or dennis or hydrogen or someone can plz help


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Sep 6, 2010 01:26 PM    Msg. 2 of 10       
Your formatting made me cry :[

(script continuous door-open
(sleep_until (= (device_get_position control2) 1.00))
(device_set_position control1 1.00)
(device_set_position door4 1.00)
(device_set_position door3 1.00)
(device_set_position door2 1.00)
(device_set_position door1 1.00)
)
)
(sleep_until

Up to here, you should see an issue with the parentheses.


docter p0
Joined: Jul 22, 2010


Posted: Sep 6, 2010 01:42 PM    Msg. 3 of 10       
ummm noo...

just started to script today XD

what did i do wrong and how can i make it work


docter p0
Joined: Jul 22, 2010


Posted: Sep 6, 2010 04:18 PM    Msg. 4 of 10       
awww u loser u should help fine i include u

ASP Grunts


docter p0
Joined: Jul 22, 2010


Posted: Sep 6, 2010 05:11 PM    Msg. 5 of 10       
do you even know how cause now ur just trollin *sighs*


docter p0
Joined: Jul 22, 2010


Posted: Sep 6, 2010 05:30 PM    Msg. 6 of 10       
i dont think gammas online and i need script today *sigh* school tommorow


Hydrogen
Joined: Dec 6, 2009

Wort Wort Wort...


Posted: Sep 6, 2010 08:46 PM    Msg. 7 of 10       
Quote: thx if gamma or dennis or hydrogen or someone can plz help


lol I dont know how to script much i know how to fix most up :P


docter p0
Joined: Jul 22, 2010


Posted: Sep 6, 2010 10:01 PM    Msg. 8 of 10       
well just fix this plz its just a fregin perinthisis!?!?!


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Sep 6, 2010 10:58 PM    Msg. 9 of 10       
Quote: --- Original message by: Gamma927
Your formatting made me cry :[

(script continuous door-open
(sleep_until (= (device_get_position control2) 1.00))
(device_set_position control1 1.00)
(device_set_position door4 1.00)
(device_set_position door3 1.00)
(device_set_position door2 1.00)
(device_set_position door1 1.00)
)
)
(sleep_until


Color coding might help you. For every one red parentheses, you want one and ONLY ONE blue parentheses.


docter p0
Joined: Jul 22, 2010


Posted: Sep 7, 2010 07:20 AM    Msg. 10 of 10       
ok ill try it

still says left parenthisis is unmatched


(script continuous door-open
(begin
(sleep_until
(=
(device_get_position control2) 1.00))
(device_set_position control1 1.00)
(device_set_position door4 1.00)
(device_set_position door3 1.00)
(device_set_position door2 1.00)
(device_set_position door1 1.00)))
(sleep_until
(=
(device_get_position control2) 0.00))
(device_set_position control1 0.00)
(device_set_position door4 0.00)
(device_set_position door3 0.00)
(device_set_position door2 0.00)
(device_set_position door1 0.00))
(sleep_until
(=
(device_get_position control1) 1.00))
(device_set_position control2 1.00)
(device_set_position door4 1.00)
(device_set_position door3 1.00)
(device_set_position door2 1.00)
(device_set_position door1 1.00))
(sleep_until
(=
(device_get_position control1) 0.00))
(device_set_position control2 0.00)
(device_set_position door4 0.00)
(device_set_position door3 0.00)
(device_set_position door2 0.00)
(device_set_position door1 0.00))
Edited by docter p0 on Sep 7, 2010 at 07:34 AM

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 1:27 PM 171 ms.
A Halo Maps Website