Hi, I'm hard at work on my first RPG Maker game, but Im having trouble setting up a dungeon that only appears on the world map once the actor as hit a certain number.
I messed around with variables but I can't seem to wrap my head around this one. Any help would be deeply appreciated.
Depends exactly what you want to happen when you say that it "only appears". Do you mean that it only appears visually once the actor reaches a level, or that it is only accessible when that level is reached.
If it is only accessible, then the simplest way is to put a condition into the transfer event.
Line one, set a control variable named e.g. Dungeon Access, then select Game Data (first tab of variable command), click it and it will take you to a choice. Select Actor, select Level. That will check to see what level your actor has reached.
Then condition branch,
Variable [Dungeon Access] is equal to or greater than [whatever level you choose]
Transfer to the dungeon.
The 'Else' part could be some sort of text saying whatever.
EDIT
Oops, forgot to suggest what to do if "only appears" = visually.
Set up the variable as above.
Have an event with the graphic of the dungeon, with the condition switch (top right section) the variable Dungeon Access is equal to or greater than...
ok, I tried to do both of those, but the problem It seems now is that the variable is not tracking the character level. So when the actor levels up, its not adding to the variable.
It won't. it will check the actor's level only when you ask it to. That is why I suggested putting it into the transfer event into your dungeon. When the player interacts with that event, the check will be run. If you want it to do a constant running check irrespective of where the player is, then you will have to use a parallel process. I tend not to use them unless I have absolutely no choice; they can cause lag and do other nasty things unless kept firmly under control. However, as the purpose of getting the variable to to open up or deny access to a particular place, I don't think you need it to be constantly updating.
State what you actually want to achieve first. Do you want the dungeon to always be there, but you can only enter it when the actor reaches a certain level? Or do you only want it to be visible when the actor reaches a certain level?
If you want it to be visible all the time, do as ksjp17 says above. If you only want it to appear when the actor reaches a certain level, only use a parallel process if they can level up on the world map. If they can't level up on the world map, then create a parallel process event on the world map that puts the actor's level into a variable, then erases itself. So each time you go to the world map it'll check the actor's level and determine whether the dungeon (which is an event conditioned by that variable) should be visible.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.