How to initiate a task when NOT having an item in pc inventory
Posted: Sat Oct 28, 2023 2:02 am
Essentially what I want to happen is:
If meet npc before having the item - task - he says a message
If meet npc after having the item - task - he doesnt say the message
_meeting7_ task:
clicked npc _tavernknight_ and _nowill_
say 1037
log 1039 step 3
_meeting8_ task:
clicked npc _tavernknight_ and _nowill_ and _meeting7_
say 1045
_return_ task:
toting _will_ and _tavernknight_ clicked
say 1046
say 1047
say 1048
say 1049
get item _reward_
Toting item and npc clicked is irrelevant as this is for getting rid of a quest item to complete a task and I already do that later as seen above. I also tried:
have _item_ set _haveitem_
_haveitem_ task:
npc clicked say X (or some variation of this)
This wont work because the task needs to only initiate when not having a specific item in the inventory. It's for exposition in the quest. I want branching narratives and for the pc to be able to meet the npc early in the quest and get a "retrieve item" subquest within it. Or, to come upon the item and have a task to bring it back to the NPC. So, when clicking the NPC, they will greet you with different qrc messages depending on if you have met them before or not.
I tried this but it also didn't work.
not have _will_ set _nowill_
variable _nowill_
Item _will_ letter used 1043
_meeting7_ task:
clicked npc _tavernknight_ and _nowill_
say 1037
log 1039 step 3
The npc will still say the qrc message even when _will_ is in the inventory.
If meet npc before having the item - task - he says a message
If meet npc after having the item - task - he doesnt say the message
_meeting7_ task:
clicked npc _tavernknight_ and _nowill_
say 1037
log 1039 step 3
_meeting8_ task:
clicked npc _tavernknight_ and _nowill_ and _meeting7_
say 1045
_return_ task:
toting _will_ and _tavernknight_ clicked
say 1046
say 1047
say 1048
say 1049
get item _reward_
Toting item and npc clicked is irrelevant as this is for getting rid of a quest item to complete a task and I already do that later as seen above. I also tried:
have _item_ set _haveitem_
_haveitem_ task:
npc clicked say X (or some variation of this)
This wont work because the task needs to only initiate when not having a specific item in the inventory. It's for exposition in the quest. I want branching narratives and for the pc to be able to meet the npc early in the quest and get a "retrieve item" subquest within it. Or, to come upon the item and have a task to bring it back to the NPC. So, when clicking the NPC, they will greet you with different qrc messages depending on if you have met them before or not.
I tried this but it also didn't work.
not have _will_ set _nowill_
variable _nowill_
Item _will_ letter used 1043
_meeting7_ task:
clicked npc _tavernknight_ and _nowill_
say 1037
log 1039 step 3
The npc will still say the qrc message even when _will_ is in the inventory.