Niborius on 5/6/2015 at 10:54
Hi Dromedders,
I'm really getting close to reaching the beta stage of my second FM "The Artifact Returns". I already had my brother playtest it for me and fixed more bugs in the meantime. One major bug however I cannot seem to fix.
My 6th objective is "Go back to where you started" and my 7th is "Don't kill any humans"
Is it ok to have the 6th objective as the final, or should I swap the 6th and 7th objective?
Here are my quest commands:
goal_final_6, 1
goal_min_diff 6, 0
goal_min_diff 7, 0 (Not sure if these are required)
goal_reverse_7, 1
goal_state_6, 0
goal_state_7, 0
goal_target_6, 849 (I've set this number as my room number as seen in the archetype)
goal_type_6, 4
goal_type_7, 2
goal_visible_6, 1
goal_visible_7, 1
When I set all my objectives's state to 1 just for testing and I spawn myself in the map, the 6th and 7th objective are automatically completed as well, no matter where I spawn in the map (thus even outside of the room).
Must be something simple but I can't figure it out. Thanks in advance!
Yandros on 5/6/2015 at 14:14
They're both being marked as complete because the goal scripts consider the Final one to be complete because the only other one left incomplete is a reverse goal. So the first thing is, make sure the room should be a room brush type created below the default roombrush in the hierarchy, and should be assigned only to your starting/ending room. Also, you need to set goal_irreversible_6 to 0. Otherwise, it will remember that you've been in that room (since it's the starting room) and will mark it complete as soon as all other goals (aside from the reverse goal) are complete, not requiring you to actually return to the final room. This will fix the problem you're seeing, because the starting point is in that room, and it triggers it even if you enter game mode somewhere else int he mission.
Secondly, you need to set a target for the no kill objective. For humans, set goal_target_7 to -14 (the number of the Human archetype).
Niborius on 5/6/2015 at 14:46
Hi Yandros,
Oh, I forgot to mention that I did have a target for objective 7, apparently I forgot to place that here.
Anyhow, adding goal_irreversible_6, 0 did the trick :) All is working fine now. I'm going to do a final test now for my mission before I start the beta testing process.
Thanks Yandros!
Yandros on 5/6/2015 at 16:12
\O/
R Soul on 5/6/2015 at 16:14
Quote Posted by Niborius
adding goal_irreversible_6, 0 did the trickIt shouldn't be necessary to set that. A goal is reversible unless you state otherwise. Could that qvar have been set to 1 on an earlier occasion?
Niborius on 5/6/2015 at 17:07
Perhaps I tested it the wrong way. When testing I set all objectives to complete except for those last two, but when testing it with irreversible set to 0, I set the first objective's state to incomplete and completed it manually, then went back and it worked.
Yandros on 5/6/2015 at 18:00
I don't think that should matter.
Niborius on 6/6/2015 at 10:25
Hmm, well I think it's just another Dromed thing. I mean, Dromed is and will always be unpredictable.