sappe on 12/4/2003 at 20:07
I'm working on a plug-in and I want to make creature appear when you open a specific chest.. Sort of like in dadric ruins when you take the stuff on the altar and a Dremora Lord pops up. I think that's a script but I can't find it in the editor and I don't know how to write it myself:(
So if you know the scripts name or know how to do the script please tell me :eek:
Kilana on 12/4/2003 at 22:20
heres a start...
startscript kil_suprise
short doneonce
if ( onactivate == 1 )
if doneonce == 1
return
activate
endif
elseif
set doneonce to 1
placeatpc "daedra_lord" 1,128,0
activate
endif
endif
end kil_suprise
sappe on 12/4/2003 at 23:33
sorry didn't work it out. Can you write down the hole script as it will be? The chest that starts the script is "Com_chest_11_empty" (as always no quotes) and I want to add 10 rats:cheeky:
I would really apriciate if you took the time do do this. Ofcourse anyone is allowed to try :eek:
Kilana on 14/4/2003 at 19:01
startscript kil_suprise
short doneonce
if ( onactivate == 1 ) ; when the player uses the object, like try to open the box, pick up the item or whatever.
if ( doneonce == 1 ) ; this part checks if the rats have already been spawned already, you don't want 10 rats to spawn every single time the player opens the box, do you?
return
activate
endif
elseif
set doneonce to 1 ; this part sets it so the script knows when the rats have been spawned.
placeatpc "rat" 10,128,0 ; this puts 10(10,128,0) rats 128(10,128,0) spaces behind(10,128,0) the player.
activate
endif
endif
end kil_suprise
the stuff after the ; tell what is going on
sappe on 14/4/2003 at 19:14
actually I had gotten the answer earlier but thanks anyway. If you want to you can try the mod?:eek:
Forsythe on 14/4/2003 at 23:44
Btw, "Com_chest_11_empty" doesn't already exist, does it? (I'm at work) If it does already exist, and you apply such a script to it, it's going to irritate some people as your mod'll make any "Com_chest_11_empty" chest spawn rats.
sappe on 14/4/2003 at 23:53
It does already exist and ye I noticed...;)Irritate to say the least:eek:
Forsythe on 15/4/2003 at 00:32
Hmm.. you'd probably be better served by making your own chest and applying the script to that, y'know. Just type in a new objectID (per the modding standard) and when you 'Save', it'll ask if you want to change the ID on the existing object or create a new object instead. (Then, of course, go back and edit the previously-existing chest to no longer have your script)
sappe on 15/4/2003 at 12:07
ye that would've gone faster..I made a hole new chest and then exchanged the two.:eek:
Forsythe on 15/4/2003 at 19:16
Ah well, live and learn, neh? ;)