I have just ran into this problem in my new level I created. I don’t know if I accidently deleted something that is needed for this. What happens is when I test my level, My hero doesn’t show up and I have no methods, so my findFlag method is giving me an error. How do I fix this?
When you create a level, everything is preset, and you can tamper with it. I just solved this one problem. I must have accidently changed the level type to campaign, when it is supposed to be hero.
Okay now I need help with setting a goal for collecting items. I know how to set a goal to defeat certain thangs or make sure certain thangs survive, but how do I set a goal for the Here Placeholder to collect a chest of gems? This is my current configuration:
Also, how do I set optional goals, I know that there is a Optional setting, but for my optional goal to collect the items, the level says incomplete because I didn’t get the second treasure. Here is what happens:
I have defeated all the ogres, but don’t get the bonus as complete, and because I didn’t collect the treasure in the room of fire, the level says it is incomplete. How do I fix this?
Now it says success after I complete everything, but it only shows success for the first goal, not the two optional goals. These are both of the configurations for the goals:
Add a collectable item(ie. coin, chest, gem, etc.) to the level. And whatever the “name” of the item(ie. Gem) is what you’d put in the collect goal’s target. Additionally, if you want the player to collect a certain number of gold, you could do like:
@setGoalState 'collect-items', 'success' if @inventory.teamGold.humans.collected >= 100
No I have a problem, where even though I complete all of the goals, the last goal doesn’t show up as success. It is an optional goal, so do I have to make it mandatory?