Page 1 of 1

Simple Scripting Help

Posted: Tue Jul 10, 2007 7:29 pm
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?

Posted: Tue Jul 10, 2007 8:01 pm
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

Posted: Tue Jul 10, 2007 8:34 pm
by Andrew_b
in sapien are you pressing ctrl c??? are you saving it in the correct place?

Posted: Tue Jul 10, 2007 9:20 pm
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.

Posted: Tue Jul 10, 2007 9:28 pm
by wanksta
put them in levels\test\mapname\scripts\
not levels\test\mapname\

Posted: Tue Jul 10, 2007 9:49 pm
by DeeXener[138]
put them in levels\test\mapname\scripts\
not levels\test\mapname\
They are like that

Posted: Wed Jul 11, 2007 12:04 pm
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.

Posted: Wed Jul 11, 2007 12:13 pm
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?

Posted: Wed Jul 11, 2007 12:56 pm
by wanksta
...

dude im sorry but that is fcking retarded. :o

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

rofl :P

Posted: Wed Jul 11, 2007 5:00 pm
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).

Posted: Thu Jul 12, 2007 3:55 am
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:

Posted: Thu Jul 12, 2007 4:08 am
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.

Posted: Thu Jul 12, 2007 8:23 am
by Dead Killa \ D
In sapien on the encounter make sure you have "Not initailly created" checked

Posted: Thu Jul 12, 2007 8:30 am
by DeeXener[138]
It's all okay I got it working correctly.

Posted: Thu Jul 12, 2007 10:49 am
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.

Posted: Thu Jul 12, 2007 11:42 am
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

Posted: Thu Jul 12, 2007 12:04 pm
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!!!