Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

(SKY) Final quest update.... I can see the finishing line!


Witty
 Share

Recommended Posts

Almost there!!!!

The final part of the quest requires that you retrieve an item. The item can be found on the NPC or normally on the ground once you have killed the NPC. I was hoping to attach the following script allowing the quest to update to its final stage. It compiles fine but I’m sure its not finished. Does the script need to know to update the quest only when the player picks it up?

Many thanks

Scriptname aaanewscript80 extends ObjectReference

Quest Property aaaaNewProperty80 Auto

Event OnEquip()

aaaaNewProperty80.SetStage(80)

EndEvent

Quest Property NewProperty80 Auto

Witty :thumbup:

Link to comment
Share on other sites

OnEquip only runs when the item is 'equipped'. Not when its picked up.

It also will not run when its transferred from one container (dead NPC) to another container (players inventory).

One example of checking if the player is interacting with the object would be to code an onactivate block.

Event onactivate(ObjectReference akActionRef)

If akActionRef == Game.GetPlayer()

Link to comment
Share on other sites

Hi Willie

I've tried compiling the below script and it has failed.

Many thanks

Witty

Scriptname aaanewscript80 extends ObjectReference

Quest Property aaaaNewProperty80 Auto

Event onactivate(ObjectReference akActionRef)

if akActionRef == Game.GetPlayer()

aaaaNewProperty80.SetStage(80)

EndEvent

Quest Property NewProperty80 Auto

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...