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 »[HELP]Every Script won't work (Repost)

Author Topic: [HELP]Every Script won't work (Repost) (7 messages, Page 1 of 1)
Moderators: Dennis

YoGamerProductionz
Joined: Dec 21, 2011

I'm back and a noob at modding :(


Posted: Jan 17, 2012 11:02 PM    Msg. 1 of 7       
Yes I know I had another one but I haven't got a response for 1 week so I'm reposting :P Soz Dennis.

Okay all I'm wanting to fix is respawnable bipeds. I might post some more script that need to be fix.

(script continuous respawn
(if (= (unit_get_health recon) 0)
(object_create_anew recon )
)


And the debug.txt

01.17.12 20:01:19  [recon line 1] this left parenthesis is unmatched.: (script continuous respawn

01.17.12 20:01:19 recompiling scripts after scenarios were merged.
01.17.12 20:01:19 this left parenthesis is unmatched.: (script continuous respawn



Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Jan 17, 2012 11:27 PM    Msg. 2 of 7       
The left parentheses is unmatched for your conditional statement. Every ( requires a ) to complement it. If you're ever unsure, count up the number of left parentheses and the number of right parentheses. In this case, everything is closed except the (if block.

Or, if you don't want to read anything I just said, just copy paste this script:


(script continuous respawn
(if (= (unit_get_health recon) 0)
(object_create_anew recon)
)
)


YoGamerProductionz
Joined: Dec 21, 2011

I'm back and a noob at modding :(


Posted: Jan 18, 2012 12:12 AM    Msg. 3 of 7       
Quote: --- Original message by: Gamma927
The left parentheses is unmatched for your conditional statement. Every ( requires a ) to complement it. If you're ever unsure, count up the number of left parentheses and the number of right parentheses. In this case, everything is closed except the (if block.

Or, if you don't want to read anything I just said, just copy paste this script:


(script continuous respawn
(if (= (unit_get_health recon) 0)
(object_create_anew recon)
)
)


Now it says this:


01.17.12 21:11:53 [recon line 2] this is not a valid object name.: recon) 0)

01.17.12 21:11:53 recompiling scripts after scenarios were merged.
01.17.12 21:11:53 this left parenthesis is unmatched.: (if (= (unit_get_health recon) 0)


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Jan 18, 2012 02:25 AM    Msg. 4 of 7       
That means that you don't have any objects called recon in your scenario. When you place down the biped in Sapien (I'm going to assume it's a biped), check the properties pane. There's a place where you can fill out what its name is. Set its name to recon, and the script will work fine.


YoGamerProductionz
Joined: Dec 21, 2011

I'm back and a noob at modding :(


Posted: Jan 18, 2012 06:13 PM    Msg. 5 of 7       
Quote: --- Original message by: Gamma927
That means that you don't have any objects called recon in your scenario. When you place down the biped in Sapien (I'm going to assume it's a biped), check the properties pane. There's a place where you can fill out what its name is. Set its name to recon, and the script will work fine.


Wow, thank you Gamma!! :D

Oh and that's why I was curious about the "scripts" thing on Sapien..

E: Umm, how come my biped isn't respawning? I think there's something wrong with the script.
Edited by YoGamerProductionz on Jan 18, 2012 at 06:43 PM


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Jan 18, 2012 07:20 PM    Msg. 6 of 7       
Make sure you placed the .hsc file in the correct location, compiled the scripts in Sapien (it should say "scripts compiled successfully"), and then re-compiled the map.


YoGamerProductionz
Joined: Dec 21, 2011

I'm back and a noob at modding :(


Posted: Jan 18, 2012 07:42 PM    Msg. 7 of 7       
Quote: --- Original message by: Gamma927
Make sure you placed the .hsc file in the correct location, compiled the scripts in Sapien (it should say "scripts compiled successfully"), and then re-compiled the map.


Mmk thanks!

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 10:22 PM 140 ms.
A Halo Maps Website