The player should click on a monster. If the player has some item, message A should appear and the quest ends, but if the player has not that item, message B should appear and he can return later when he has the item.
Following code snippet (I have obfuscated the actual monster and item names, to avoid spoilers but the logic is directly from my quest):
Code: Select all
_MonsterMessageOK_ task:
when _clickedMyMonster_ and _hasTheItem_
say 1024
start task _endquest_
_MonsterMessageNotOK_ task:
when _clickedMyMonster_ and not _hasTheItem_
say 1021
clear _clickedMyMonster_ _MonsterMessageNotOK_
_clickedMyMonster_ task:
clicked foe _MyMonster_
But the clearing commands in that task somehow do not work. Making it impossible to click that monster again.
What do I do wrong?
Edit: Sorry, wrong forum, should be in quest development. If someone could move it ... thanks!