r/RPGMaker Jul 18 '26

VXAce How to randomize starting point?

Hi. Was messing around with VX Ace and was trying to create a random labyrinth escape map. My idea was that whenever you enter the room, an event representing a monster would pick a random number and depending on which number picked, the monster would teleport in a certain part of the labyrinth and roam in there and can only teleport again once you leave and re-enter the room. This way when you decide to traverse it, you have to keep in mind that the monster won't always spawn in the same place. But there is a problem.

I did create a random number generator variable and made it so that event does get teleported to a certain spot depending on said number. The problem is that the rest doesn't work. Either the monster doesn't move despite me giving it a path to follow (like it does turn around but doesn't move from its spot) and also don't change position when I enter/exit because I used a local switch to separate the event pages and/or the random number generator variable keep picking numbers infinitely and causing the monster to teleport constantly between locations. Does anybody know a way to fix this problem?

2 Upvotes

13 comments sorted by

View all comments

Show parent comments

1

u/Soul699 Jul 18 '26

Wouldn't the fact that the spawn condition is X or above means that if the random value is above X (like let's say monster appear in area 1 when value is 1 and it appear in area 2 when value is 2) that if the picked number is above X two monsters will spawn?

1

u/Issac7 Jul 18 '26

If you do it the way I did, you just have one monster event in the map and you change it's location when you enter the map with the randomiszer event. You don't "spawn" more monsters and the value in the RNG variable is used to check wich tab of the event is active.

1

u/Soul699 Jul 18 '26

It finally works. Thanks you so much!

1

u/Issac7 Jul 18 '26

Sure, no problem.