I need help with a script !

Post » Thu Jun 21, 2012 12:42 pm

Okay here is the situation : first I need a script that will be activated after a dialogue and the script will do the following : it will check if the player is sitting on a chosen chair :
  • if "yes" it will activate another script
  • if "no" it will wait until the player sit on that chair
Please help. I really don't know how to form such a complicated script !

Thanks in advance !
User avatar
Kit Marsden
 
Posts: 3467
Joined: Thu Jul 19, 2007 2:19 pm

Post » Thu Jun 21, 2012 4:29 pm

http://www.creationkit.com/Category:Papyrus
User avatar
Haley Cooper
 
Posts: 3490
Joined: Wed Jun 14, 2006 11:30 am

Post » Thu Jun 21, 2012 4:54 pm

Okay I've clicked the link. Then what ?
User avatar
Wayne Cole
 
Posts: 3369
Joined: Sat May 26, 2007 5:22 am

Post » Thu Jun 21, 2012 4:49 pm

Okay I've clicked the link. Then what ?

Learn. That's what everybody did before starting to do script...;)
User avatar
Nick Pryce
 
Posts: 3386
Joined: Sat Jul 14, 2007 8:36 pm

Post » Thu Jun 21, 2012 12:31 pm

Rein20,

Please check out the following function: IsFurnitureInUse(). I don't know much about how dialogue works. You can use IsFurnitureInUse() in conjunction with OnActivate() to fire a function that will only fire when the player is sitting in a particular chair. This is an "on event" method of doing things, instead of waiting and periodically checking if the player is sitting down, which consumes script resources.

Good luck!
User avatar
Steeeph
 
Posts: 3443
Joined: Wed Apr 04, 2007 8:28 am

Post » Thu Jun 21, 2012 6:23 am

@*Mofakin*
I know some thing but I am not so good. And the problem is I don't have much time. So I post my problem here and I hope someone that is good in scripting and have the time can write the script. And also is this script to complicated ?

@Chesko
Okay I will check that ! Thank you !
User avatar
Madeleine Rose Walsh
 
Posts: 3425
Joined: Wed Oct 04, 2006 2:07 am

Post » Thu Jun 21, 2012 9:43 am

Learn. That's what everybody did before starting to do script... :wink:
That's not helpful. Someone posted in this forum asking for specific help with a specific script - either supply the requested information or keep quiet.

Thanks, Chesko.
User avatar
BaNK.RoLL
 
Posts: 3451
Joined: Sun Nov 18, 2007 3:55 pm


Return to V - Skyrim