Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
♥Otaku♥

Can someone help me with this little problem?

Recommended Posts

Hi everyone! :)

 

In the game im making, instead of random battles, the player needs to touch monster sprites to start a battle. For weak monsters, im using a slime sprite, for average monsters, im using a ghost sprite, for tough monsters, a skeleton and for deadly or overpowered enemies, im using a grim reaper sprite.

 

So heres my question:

 

Lets say that the player becomes stronger than an average monster (ghost sprite), how can i make the sprite automatically become a slime? Can i do this with events? Or do i need a script?

Share this post


Link to post
Share on other sites

You can reserve a game variable you regularily update with the player's level. Then you can have each monster event hold several pages, each of which is set to condition: variable XX is greater than this level or that.

Share this post


Link to post
Share on other sites

Nope, not like that. You should use the "conditions" panel on the left. The problem with what you did is that the interpreter will always execute the second page, what your conditional branch does is just prevent the event from doing anything if the variable is not above 71. What the left panel does is ignore the entire page if the conditions are not met, and fall back to the previous one.

Share this post


Link to post
Share on other sites

After each battle, insert a command to retrieve the player's level in variable XX ("manage variables" command) in order to ensure that it's always up-to-date. Then set each monster event's conditions panel to "variable XX is YY or higher".

Share this post


Link to post
Share on other sites

You should put the command that retrieves the actor's level right after the battle processing command, before anything else, and on all pages too.

Share this post


Link to post
Share on other sites

Thank you so much! It worked this time!

Just one last thing. All the ghost sprites changes to a slime sprite after the battle ended. Is there a way to make them change before the map reappears?

If its more complicated or impossible to do, never mind. Im already glad that they can change. Im just asking this to make things look better.

Share this post


Link to post
Share on other sites

I don't understand, it looks like you're asking two different things at the same time. Can you clarify a bit?

Share this post


Link to post
Share on other sites

Not without a script. This happens because the computer remembers how the map looked before the battle, and transitions to it before processing the rest of the event.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...