Simple Scripting Help

Discuss stuff related to HaloCE (for modding, go to the HEK General forum).
Post Reply
User avatar
DeeXener[138]





Posts: 45
Joined: Fri Feb 09, 2007 8:29 pm
Location: not knowingly here...
Contact:

Simple Scripting Help

Post by DeeXener[138] »

Code: Select all

(script startup keyes
(sleep_until (volume_test_objects trig_1 (players))15) ; Pauses script execution, and checks every 1/2 second to see if a player walks into the trigger "trig_1".
(ai_place encount_1) ; Places the ai encounter "encount _1"
)
That's my script and I have it on the tutorial map and it is set to single player map and keyes spawns in sapien immediately but doesn't at all in game. I walk through the trigger and... nothing. any ideas?
Image
DeeXener wrote:There's alot you can do in Guerilla that you can do in Sapien... only without such a pretty view.
User avatar
wanksta
Readers Club




Wordewatician 500

Posts: 617
Joined: Mon Jun 11, 2007 3:04 pm
Location: Owning Freedom451 Constantly over LAN. Kills:999999999 Owns:943234 Pwns:749455 Killtaculars:5667

Post by wanksta »

did you just like copy and paste that script. you might want too rewrite it more like this

(script startup keyes
(sleep_until
(volume_test_objects trig_1
(players))15)
(ai_place encount_1))

also you may want too make sure the triger and the encounter are correctly named
Sig may not be animated.
Lol you got me in like 3 minutes!
Oh wait... I'm banned.... well not funny anymore...
User avatar
Andrew_b




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

Post by Andrew_b »

in sapien are you pressing ctrl c??? are you saving it in the correct place?
User avatar
DeeXener[138]





Posts: 45
Joined: Fri Feb 09, 2007 8:29 pm
Location: not knowingly here...
Contact:

Post by DeeXener[138] »

I took it from a tutorial by p0lar and I was using it as a basis for an AI map but those scripts weren't working either so I decided to take it and test it out on the tutorial map to see if it would work there.

I'm saving in a scripts folder in the directory where the models, bitmaps and shaders are stored. and cntrl+c? is that for compiling the scripts? because yes I have compilied them.
Image
DeeXener wrote:There's alot you can do in Guerilla that you can do in Sapien... only without such a pretty view.
User avatar
wanksta
Readers Club




Wordewatician 500

Posts: 617
Joined: Mon Jun 11, 2007 3:04 pm
Location: Owning Freedom451 Constantly over LAN. Kills:999999999 Owns:943234 Pwns:749455 Killtaculars:5667

Post by wanksta »

put them in levels\test\mapname\scripts\
not levels\test\mapname\
Sig may not be animated.
Lol you got me in like 3 minutes!
Oh wait... I'm banned.... well not funny anymore...
User avatar
DeeXener[138]





Posts: 45
Joined: Fri Feb 09, 2007 8:29 pm
Location: not knowingly here...
Contact:

Post by DeeXener[138] »

put them in levels\test\mapname\scripts\
not levels\test\mapname\
They are like that
Image
DeeXener wrote:There's alot you can do in Guerilla that you can do in Sapien... only without such a pretty view.
User avatar
wanksta
Readers Club




Wordewatician 500

Posts: 617
Joined: Mon Jun 11, 2007 3:04 pm
Location: Owning Freedom451 Constantly over LAN. Kills:999999999 Owns:943234 Pwns:749455 Killtaculars:5667

Post by wanksta »

ok does it say scripts succesfuly compiled when you hit "compile scripts"


try this make a new script and put it in the scripts folder make the scripts say..

(script startup shit
did this compile?)

save it then try and compile the script in sapien. when you compile the script in sapein youshould get a error. if you dont get a error you not putting the scripts in the right place.
Sig may not be animated.
Lol you got me in like 3 minutes!
Oh wait... I'm banned.... well not funny anymore...
User avatar
DeeXener[138]





Posts: 45
Joined: Fri Feb 09, 2007 8:29 pm
Location: not knowingly here...
Contact:

Post by DeeXener[138] »

When i compile it does says 'Scripts succesfully compiled.' And I get no errors.

Ok I did not get an error with that script. I'm putting them in tags\levels\test\tutorial\scripts

should they go into data not tags?
Image
DeeXener wrote:There's alot you can do in Guerilla that you can do in Sapien... only without such a pretty view.
User avatar
wanksta
Readers Club




Wordewatician 500

Posts: 617
Joined: Mon Jun 11, 2007 3:04 pm
Location: Owning Freedom451 Constantly over LAN. Kills:999999999 Owns:943234 Pwns:749455 Killtaculars:5667

Post by wanksta »

...

dude im sorry but that is fcking retarded. :o

they go in data\levels\test\tutorial\scripts...

rofl :P
Sig may not be animated.
Lol you got me in like 3 minutes!
Oh wait... I'm banned.... well not funny anymore...
User avatar
Cryticfarm





Posts: 3611
Joined: Sat Dec 09, 2006 7:23 pm
Location: canada
Contact:

Post by Cryticfarm »

wanksta wrote:...

dude im sorry but that is fcking retarded. :o

they go in data\levels\test\tutorial\scripts...

rofl :P
LOL!! Wanksta's right on this one (That's not why LOLed).
User avatar
DeeXener[138]





Posts: 45
Joined: Fri Feb 09, 2007 8:29 pm
Location: not knowingly here...
Contact:

Post by DeeXener[138] »

wanksta wrote:...

dude im sorry but that is fcking retarded. :o

they go in data\levels\test\tutorial\scripts...

rofl :P
real nice wank. I beta for you and you call me retarded. Anyway I didn't know it went into data because I assumed it was in tags since the scenario was in tags. sorry :oops:
Image
DeeXener wrote:There's alot you can do in Guerilla that you can do in Sapien... only without such a pretty view.
User avatar
Titusz




Grunge Mad Hatter

Posts: 549
Joined: Wed Nov 29, 2006 8:04 am

Post by Titusz »

wanksta wrote:
dude im sorry but that is fcking retarded. :o
That's quite lame don't you agree? The guy comes here with a question and you call him retarted?
Nobody ever called you retarted in any of your question topics,so why would you call someone else retarted for asking a question? Think about that.
Image
<---OMFG, they're breeding
Dead Killa \ D





Posts: 539
Joined: Fri Nov 25, 2005 6:58 pm
Location: ^^here...?
Contact:

Post by Dead Killa \ D »

In sapien on the encounter make sure you have "Not initailly created" checked
Image
link816 says:your crazy about those jeely beans arent you?
=EP Killa says: welll, um yes i love them YUK BUTTER SCOTCH
User avatar
DeeXener[138]





Posts: 45
Joined: Fri Feb 09, 2007 8:29 pm
Location: not knowingly here...
Contact:

Post by DeeXener[138] »

It's all okay I got it working correctly.
Image
DeeXener wrote:There's alot you can do in Guerilla that you can do in Sapien... only without such a pretty view.
User avatar
wanksta
Readers Club




Wordewatician 500

Posts: 617
Joined: Mon Jun 11, 2007 3:04 pm
Location: Owning Freedom451 Constantly over LAN. Kills:999999999 Owns:943234 Pwns:749455 Killtaculars:5667

Post by wanksta »

Titusz wrote:
wanksta wrote:
dude im sorry but that is fcking retarded. :o
That's quite lame don't you agree? The guy comes here with a question and you call him retarted?
Nobody ever called you retarted in any of your question topics,so why would you call someone else retarted for asking a question? Think about that.
IM NOT CALLING YOU RETARDEED i said that was retarded not you are retarted i said that it is stoopid that we missed something so simple as makeing sure you had it in the right directory at the begining. your cool dude.

sorry about that confusion. i guess i should write my posts a little more carefully next time.
Sig may not be animated.
Lol you got me in like 3 minutes!
Oh wait... I'm banned.... well not funny anymore...
User avatar
DeeXener[138]





Posts: 45
Joined: Fri Feb 09, 2007 8:29 pm
Location: not knowingly here...
Contact:

Post by DeeXener[138] »

wanksta wrote:
Titusz wrote:
wanksta wrote:
dude im sorry but that is fcking retarded. :o
That's quite lame don't you agree? The guy comes here with a question and you call him retarted?
Nobody ever called you retarted in any of your question topics,so why would you call someone else retarted for asking a question? Think about that.
IM NOT CALLING YOU RETARDEED i said that was retarded not you are retarted i said that it is stoopid that we missed something so simple as makeing sure you had it in the right directory at the begining. your cool dude.

sorry about that confusion. i guess i should write my posts a little more carefully next time.
Sorry about the confusion, Wank. Took it the wrong way but it really did seem like you were saying I was retarded. Anyway I got my scripts working now so thanks for the time out for the help. :D
Image
DeeXener wrote:There's alot you can do in Guerilla that you can do in Sapien... only without such a pretty view.
User avatar
wanksta
Readers Club




Wordewatician 500

Posts: 617
Joined: Mon Jun 11, 2007 3:04 pm
Location: Owning Freedom451 Constantly over LAN. Kills:999999999 Owns:943234 Pwns:749455 Killtaculars:5667

Post by wanksta »

DeeXener[138] wrote:
wanksta wrote:
Titusz wrote:
wanksta wrote:
dude im sorry but that is fcking retarded. :o
That's quite lame don't you agree? The guy comes here with a question and you call him retarted?
Nobody ever called you retarted in any of your question topics,so why would you call someone else retarted for asking a question? Think about that.
IM NOT CALLING YOU RETARDEED i said that was retarded not you are retarted i said that it is stoopid that we missed something so simple as makeing sure you had it in the right directory at the begining. your cool dude.

sorry about that confusion. i guess i should write my posts a little more carefully next time.
Sorry about the confusion, Wank. Took it the wrong way but it really did seem like you were saying I was retarded. Anyway I got my scripts working now so thanks for the time out for the help. :D
no problem. scripting i had too figure out myself most of the time. helping people out is doing what no one else would do for me usually. lol :roll:

quote chain!!!
Sig may not be animated.
Lol you got me in like 3 minutes!
Oh wait... I'm banned.... well not funny anymore...
Post Reply