Jump to content

Need some scripting help for my housmod (SetSatge if three Objectives


FlahoShi

Recommended Posts

(Sry for my english, I'm Swiss)

 

Hi,

 

I'm actually working on a quest for my housemod and I try to make a script that SetStage of the running Quest to the next stage after completing three QuestObjectives

 

The stages are:

 

0

10 find the place

20 buy some stuff

30 find guards

40 ..

50 ...

60 ....

 

Questobjectives:

20 finde a way to the House

31 buy furniture

32 buy alchemie stuff

31 buy stable stuff

40 finde guards

50 ...

 

And now my problem:

At Stage 20, the player has to buy ALL three Questobjectives (31, 32, 33). After that, stage 30 should be active.

 

 

When the player found the house, stage 20 is active with this script:

 

SetObjectiveCompleted(20)
SetObjectiveDisplayed(31)
SetObjectiveDisplayed(32)
SetObjectiveDisplayed(33)
if (questName.IsObjectiveCompleted(31)) && (questName.IsObjectiveCompleted(32)) && (questName.IsObjectiveCompleted(33))
questName.SetStage(StageToSet)
endif
Prooerties: questName -> Name of the Quest, StageToSet -> 30
The Questobjectives are getting completed in the Questdialogue with the Seller. But after that, nothing happens.
I started scripting, but I'm still a newbie... Maybe someone can help me.
Thx
FlahoShi
PS: Here is a WIP Picture of the Housemod:
Edited by FlahoShi
Link to comment
Share on other sites

I don't do quests, but this code:

 

if (questName.IsObjectiveCompleted(31)) && (questName.IsObjectiveCompleted(32)) && (questName.IsObjectiveCompleted(33))
questName.SetStage(StageToSet)
endif

 

Needs to be run as a fragment from the seller quest dialogues after each of objectives 31, 32 and 33 is completed.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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