Xarik86 on 5/5/2013 at 22:34
Hello,
I am trying to set up an objective that asks the player to collect a certain number of an item. For example, there are 30 in the mission and I want it to only be required to collect 15. At the moment, I created a quest_create_mis object, 0. I have each object with a TrigWorldFrob script and FrobInfo set to Move, Script and a stack count of 1.
I have each object linked via CD to a QVarTrap that has the trap set as +1: object. I then have that Qvartrap linked to a QvarTrigger with trap set at =15: object. Then, that is linked to a goal_state=1 Qvar. At times this works, other times it completes with either too few or too many objects. Sometimes it never completes and sometimes it un-checks itself when other objectives tick completed. I am wondering if there is a better way to do this quest or if I am going about this all wrong. Thank you!
R Soul on 5/5/2013 at 23:50
It looks correct, although you don't need to link the QVTrap to the QVTrigger. I did a test with three NavigationGlobes and it worked fine. Your QVTrigger should be >15:object, not =15, otherwise stealing 16 or more will un-complete the objective.
What are your objects? There could be some property that is interfering.
Xarik86 on 5/5/2013 at 23:56
I used an LC_Mask1 (-3532) and changed the shape to a custom object. I'll try out >15 and see if it works!
R Soul on 6/5/2013 at 00:08
There's nothing unusual about the LC_Mask1 object.
:erg:
Xarik86 on 6/5/2013 at 00:12
It appears to be working for the moment. Even with the >15 it didn't work but I deleted the goal_irreversible and re-made the goal_state QVar for the objective and now it's working properly. Not sure why that would be an issue but I'm sure it makes sense somehow. Thank you, R Soul!