[Script] Pullchain changes quest stage

Post » Tue Jun 19, 2012 1:26 pm

I wan't to change quest stage with my pull-bar. I got such script on my pull-bar at the moment :
event onActivate()CDPQuest01.SetStage(21)endEvent

but I get this error message :
CDPPullBarActivated.psc(4,0): the parameter types of function onactivate in the empty state on script cdppullbaractivated do not match the parent script objectreference

I understand not. That of the force dark side is. :(
User avatar
james tait
 
Posts: 3385
Joined: Fri Jun 22, 2007 6:26 pm

Post » Tue Jun 19, 2012 6:58 pm

The event header must be :



Event OnActivate(ObjectReference akActionRef)

User avatar
Chenae Butler
 
Posts: 3485
Joined: Sat Feb 17, 2007 3:54 pm

Post » Tue Jun 19, 2012 5:23 am

Cold you make an example, please ?
User avatar
ANaIs GRelot
 
Posts: 3401
Joined: Tue Dec 12, 2006 6:19 pm

Post » Tue Jun 19, 2012 4:44 pm

Event OnActivate(ObjectReference akActionRef)  CDPQuest01.SetStage(21)endEvent

You must respect the syntax from the parent script : http://www.creationkit.com/OnActivate_-_ObjectReference
User avatar
liz barnes
 
Posts: 3387
Joined: Tue Oct 31, 2006 4:10 am

Post » Tue Jun 19, 2012 11:03 am

Where can I find an explanation about "ObjectReference" and "akActionRef". I don't really know what to do with them/ what it is :(
User avatar
Melis Hristina
 
Posts: 3509
Joined: Sat Jun 17, 2006 10:36 pm

Post » Tue Jun 19, 2012 6:53 pm

I gave you the link to the wiki. It's the reference to the actor that pulled the chain. If you don't need it, don't use it, but it must be in the event declaration.
User avatar
Laura Cartwright
 
Posts: 3483
Joined: Mon Sep 25, 2006 6:12 pm

Post » Tue Jun 19, 2012 5:49 pm

This works. Thank you a lot :)
User avatar
Eddie Howe
 
Posts: 3448
Joined: Sat Jun 30, 2007 6:06 am


Return to V - Skyrim