Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Help please question about RPG XP (Solved)

xctive

Member

Ok so i have no idea if this has been asked and answered but I was wondering if it is possible to only incounter battles or troops on certain tiles or say an area instead of the entire map. I would really help it if was.
 

Anski

Sponsor

I believe you could do this with events.

Edit: Unless you're meaning to get them on a certain area on a whole, like a desert or such. If that's what you're meaning than I have no clue. :down:
 

Anski

Sponsor

2nsclti.jpg
 

xctive

Member

ill use the pokemon example to help explain what im trying to achive i want to only have battle in say tall grass does that make since its hard to explain :sad:
 
Instead of using random encounters:
On the areas you want to have enemies make events on the ground like this:

Set the trigger to player touch

<>Variable (encounter) = Random
<>If Variable (encounter) = X
@Force battle (enemy)
<>end
<>Variable (encounter) = 0

And events like that all over the place
*note this might lag like hell - not making any promises

Hope this helps - Good Luck :thumb:
 

xctive

Member

ok i figured out a way i think ill do it. Im going to disable and enable the encounter process on touch and put them at the entrances of areas i want i think it will work will see...
 
Hey, you lucky person, you, you're using XP! That makes this much easier, because of those wonders of programming called Terrain Tags.

Here's a way to have your enemies change depending on what kind of tile you stand on.

First, go to the Tilesets section of the Database.

Pick out some tiles that ought to have different enemies than usual.

Go to Terrain Tags-- it's there on the right.

Now change the Terrain Tags to a number other than '0', such as '1', for any tiles that you wish to have different enemies on them.

Next, you're going to make a slightly-more-complex Troop for the map that uses that tileset.

Bring all the enemies that you might possibly encounter onto the troop. (Actually, that would be pretty crowded, so I usually make three or four different troops for that map, but you get the idea.)

Set every single opponent to 'Appear Halfway.'

Then make a battle event on Turn 0 that checks the player's Terrain Tag, and brings in only the enemies that would appear on that kind of Terrain.

In case that's not clear, here's a screenshot, from my current project:

TerrainEnemies.png


When the player is on the road, they have a terrain tag of 1, and so if they meet this group, they meet the spiders. If they aren't, then they'll meet the ogre.

See? Simple enough.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top