Here's the script I am working on and I need some help with it.
desc = Puzzle #1
:state=0,plrdistwithin=60,plrhasentity=1,scancodekeypressed=79:state=1,animate=2,setframe=4
:state=1:incframe=0
:state=1,frameatend=8:state=2
:state=2,plrdistwithin=60,plrhasentity=2,scancodekeypressed=80:state=3,animate=3,setframe=10
:state=3:incframe=0
:state=3,frameatend=15:state=4
:state=4,plrdistwithin=60,plrhasentity=3,scancodekeypressed=81:state=5,animate=4,setframe=17
:state=5:incframe=0
:state=5,frameatend=22:state=6
:state=6,plrdistwithin=60,plrhasentity=4,scancodekeypressed=75:state=7,animate=5,setframe=24
:state=7:incframe=0
:state=7,frameatend=29:state=8
:state=8,plrdistwithin=60,plrhasentity=5,scancodekeypressed=76:state=9,animate=6,setframe=31
:state=9:incframe=0
:state=9,frameatend=36:state=10
:state=10,plrdistwithin=60,plrhasentity=6,scancodekeypressed=77:state=300,animate=7,setframe=38
:state=300:incframe=0
:state=300,frameatend=43:state=320
:state=11,plrdistwithin=60,plrhasentity=7,plrusingaction=1:state=310,animate=1,setframe=1
:state=310:incframe=0
:state=310,frameatend=2:state=330
:state=320:activateifused=1
:state=330:plraddhealth=-9999,state=0
;End of Script
What I am trying to do is use six entities to activate like a switch to open a door. Everytime you place one entity in it animates showing the plr putting the stone in when close to the switch. if the plr brings the wrong entity to the switch it kills the plr. But this is not working for me. I have attached a pic to show what I am doing. I edited the 5 entities pickup fpi along with the code door fpi to get this. I would appreciate the help with this. I will be back on here a week from now to answr any questions. Thanks