Attach script to player

Post » Wed Jun 20, 2012 4:47 am

Hi.

Is it possible to attach a script to the player?
If yes then how?

Thanks.
User avatar
Jesus Sanchez
 
Posts: 3455
Joined: Sun Oct 21, 2007 11:15 am

Post » Tue Jun 19, 2012 4:02 pm

yes, just create a quest that never complete, then put whatever you want in the quest main script
User avatar
dean Cutler
 
Posts: 3411
Joined: Wed Jul 18, 2007 7:29 am

Post » Tue Jun 19, 2012 7:59 pm

I haven't made any quests before. Does the player need to acquire the quest somehow? For example talk to a certain NPC. EDIT: I would prefer if the quest could start magically without the player knowing.
User avatar
Lil Miss
 
Posts: 3373
Joined: Thu Nov 23, 2006 12:57 pm

Post » Wed Jun 20, 2012 12:42 am

Well every quests start silently at the beginning of the game at stage 0. They do nothing most of the then, they are just there.

You are aware of that in game only if the quest specifically shows an objective

For example every dialog in the game is initiated through a quest process.
User avatar
Kelly Upshall
 
Posts: 3475
Joined: Sat Oct 28, 2006 6:26 pm

Post » Wed Jun 20, 2012 5:24 am

I believe there is a field you should check for the quest "Start game enabled" or something similar
User avatar
Johnny
 
Posts: 3390
Joined: Fri Jul 06, 2007 11:32 am

Post » Tue Jun 19, 2012 6:33 pm

It starts enable with a new quest even
User avatar
Joanne Crump
 
Posts: 3457
Joined: Sat Jul 22, 2006 9:44 am

Post » Wed Jun 20, 2012 1:33 am

Essentially as others have written, you create a quest that is "start game enabled," then you create a new Reference Alias in the Quest Alias tab, point that alias at a specific reference of the Player, and then attach any scripts you want to affect the player in that Reference Alias window.
User avatar
CRuzIta LUVz grlz
 
Posts: 3388
Joined: Fri Aug 24, 2007 11:44 am

Post » Wed Jun 20, 2012 12:25 am

I tried creating a new quest. When I had finished creating the player alias and adding the script I clicked "ok" to close the quest window and Creation Kit crashed..
User avatar
Laura Ellaby
 
Posts: 3355
Joined: Sun Jul 02, 2006 9:59 am

Post » Tue Jun 19, 2012 9:49 pm

to solve that problem, first create the quest (close it out) re-open the quest then attach the script
User avatar
Kara Payne
 
Posts: 3415
Joined: Thu Oct 26, 2006 12:47 am

Post » Wed Jun 20, 2012 1:44 am

ActiveMagic Effects are also scripts that attach to whatever the target is.
User avatar
Jah Allen
 
Posts: 3444
Joined: Wed Jan 24, 2007 2:09 am

Post » Wed Jun 20, 2012 2:31 am

What is the difference between attach to the "players actor" and attach it to the "players quest alias"?
User avatar
Katie Samuel
 
Posts: 3384
Joined: Tue Oct 10, 2006 5:20 am

Post » Tue Jun 19, 2012 10:19 pm

What is the difference between attach to the "players actor" and attach it to the "players quest alias"?

Most likely: Just how many hoops you have to jump through to get them to work...ActiveMagicEffects can be attached or detached fairly easily. But if it's part of a quest script, you have to control it with quest stages and so on.
User avatar
Queen of Spades
 
Posts: 3383
Joined: Fri Dec 08, 2006 12:06 pm


Return to V - Skyrim