Tabris on 28/10/2002 at 12:28
Hey... Im pretty new at scripting but here we go... I have a cell... at a point it forms a large square room about 1600 units across at its widest point. I have an activator in the middle of the room. What I'm trying to do is make the person sneak in this area or else be teleported elsewhere.
Begin VoleurSneakCheck
if ( MenuMode == 1 )
return
endif
if ( GetSneak == 1 )
return
endif
if ( GetDistance, Player > 800 )
return
endif
MessageBox, "Come back when your lesson is learned"
Player->Cast, "Almsivi Intervention", Player
End
I know that is probably horrible... but it wont work... and some of you probably know why.. wondering if you could enlighten me.
Kilana on 29/10/2002 at 23:04
Here's one problem I see...
Player->Cast, "Almsivi Intervention", Player
If you were going to do this, you would need to disable player controls, make sure the player had the spell almsivi intervention, and you'd have to script it to reactivate player controls once the spell is cast. If the player has low mysticism skill, it wont work at all either. You should probably use the positioncell command. Another note... I didn't know there was a getsneak command, I know there is a getforcesneak which checks if npc's have been scripted to sneak...
Tabris on 31/10/2002 at 19:36
Thanks for the reply... yeah.. someone told me to use getsneak.. but now I realize that that simply returns the current value of their sneak level.. so sadly I guess this will not work. Thanks though :D