Jump to content

[LE] Probably Simple Scripting Help


glcdos

Recommended Posts

I am having some issues which I am pretty sure are simple scripting things but I can’t get it for the life of me.
I have EXTREMELY BASIC Papyrus knowledge, and I know the CK on a similar level. I have managed to set up the skeleton for the quests I want to implement, and I can get them to work through console commands, but that’s about it. No idea how to connect them, and I’ve read the tutorial quests on the Creation Kit wiki, but they aren’t really helping me.

Anyways, here’s what I need some help with.

1. Starting the questline through a book. I want it to start through this, preferably via the courier. No idea how to script this. I've looked at vanilla quests with this aspect but I can’t get the script to work for mine.
2. Updating the objective when reaching a certain map marker.
3. Updating the objective when an actor is killed by the player.

Also, I'm unsure if this is causing problems but I have no objective markers for immersion reasons, and there are no dialogue trees. If this is creating conflicts, I want to know if thereâs a way to do a questline without either.

That’s about it. Any help is appreciated!

Edited by glcdos
Link to comment
Share on other sites

https://www.creationkit.com/index.php?title=Bethesda_Tutorial_Planning_the_Quest

 

https://www.creationkit.com/index.php?title=Using_the_Vanilla_Courier

 

I never had any luck with the Courier tutorial myself but perhaps you'll succeed. I had luck with the quest tutorial though, had to follow it to the letter.

Should be able to figure out what you want with the help of the first tutorial. From having done it I know for a fact that they go over number 3. Possibly 2 as well

Edited by Niborino9409
Link to comment
Share on other sites

I am having some issues which I am pretty sure are simple scripting things but I can’t get it for the life of me.

I have EXTREMELY BASIC Papyrus knowledge, and I know the CK on a similar level. I have managed to set up the skeleton for the quests I want to implement, and I can get them to work through console commands, but that’s about it. No idea how to connect them, and I’ve read the tutorial quests on the Creation Kit wiki, but they aren’t really helping me.

 

Anyways, here’s what I need some help with.

 

1. Starting the questline through a book. I want it to start through this, preferably via the courier. No idea how to script this. I've looked at vanilla quests with this aspect but I can’t get the script to work for mine.

2. Updating the objective when reaching a certain map marker.

3. Updating the objective when an actor is killed by the player.

 

Also, I'm unsure if this is causing problems but I have no objective markers for immersion reasons, and there are no dialogue trees. If this is creating conflicts, I want to know if thereâs a way to do a questline without either.

 

That’s about it. Any help is appreciated!

 

1) To start the quest via reading a book use something like. No idea how to script the courier though.

Event OnRead()
myquest.Setstage(10)
EndEvent

Change myquest to the name of your created quest 10 to whichever Stage you want to update.

 

2) Have a triggerbox set up beside the mapmarker big enough for the player to enter with the following script attached:

 

To display an Objective:

Event OnTriggerEnter(ObjectReference akActionRef)
   If akActionRef == Game.Getplayer()
   myquest.setobjectivedisplayed(10)
EndEvent

To complete an Objective:

Event OnTriggerEnter()
   myquest.setobjectivecompleted(10)
EndEvent

Again change myquest to your quest name 10 to whichever objective you want to update.

 

3) Use this script attached to the actor the player will kill

Event OnDying(Actor akKiller)
   If akKiller == Game.GetPlayer()
   myquest.SetObjectiveCompleted(10)
EndEvent

Again change myquest to your quest name and 10 to whichever objective you want to update.

Edited by morrowind1979
Link to comment
Share on other sites

2) Have a triggerbox set up beside the mapmarker big enough for the player to enter with the following script attached:

 

To display an Objective:

Event OnTriggerEnter(ObjectReference akActionRef)
   If akActionRef == Game.Getplayer()
   myquest.setobjectivedisplayed(10)
EndEvent

To complete an Objective:

Event OnTriggerEnter()
   myquest.setobjectivecompleted(10)
EndEvent

Again change myquest to your quest name 10 to whichever objective you want to update.

 

3) Use this script attached to the actor the player will kill

Event OnDying(Actor akKiller)
   If akKiller == Game.GetPlayer()
   myquest.SetObjectiveCompleted(10)
EndEvent

Again change myquest to your quest name and 10 to whichever objective you want to update.

 

 

 

I got basically everything to work but the quoted section.

 

I keep getting this for my Objective Trigger:

 

7ybUGgU.png

 

and this for my Objective Completed Trigger:

 

Y9a1Iwe.png

 

And this for the Actor Death:

 

kz0oWyk.png

 

 

I have no idea what I'm doing, so I'm sorry if I'm missing something obvious. Thanks for your help, regardless!

Link to comment
Share on other sites

Okay, update, I fixed all the errors, but I'm still having issues with the Objective Trigger.

 

This is the error: "the parameter types of function ontriggerenter in the empty state on script nertrigscript do not match the parent script objectreference"

 

I have no idea what this means.

Link to comment
Share on other sites

You have to set your quest as a script property:

Scriptname NERScriptQuest30 extends ObjectReference.

Quest Property NERQuest01 auto

Event OnTriggerEnter(ObjectReference akActionRef)
   If akActionRef == Game.Getplayer()
   NERQuest01.setobjectivedisplayed(10)
   EndIf
EndEvent

And don't forget to fill the script property as your quest (click properties on the edit script tab thingy, Choose NERQuest01, edit property, then choose your quest from the drop down menu. Sorry I forgot an EndIf too add the EndIf to all your scripts that have an If function, put the EndIf in the line above EndEvent. Also you dont need the conditional flag on your actor script

Edited by morrowind1979
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...