What's the easiest way to randomly set positions of regions during runtime?
I'm sure I can emulate regions by
1- Randomly generating {x1-x1+30,y1-y1-30} squares at room load
2- Be sure it's mostly into walkable areas
3 - Then checking if the Player x,y position in Repeatly_execute (or Rep_ex_always) is walking in those position.
But I'm lazy by nature, any insight on an easiest way to do the same effect?
Tx
Dan
What's the endgame here? More info.
I wanna create RPG-Style random encounters. All I want is that the position of regions resets and get randomized everytime the player get in the room.
Because I don't want the monsters to always wait near the same spots.
When the player Walks unto region it launches a function (Namely : START_COMBAT();)
You could use invisible characters that walk around the room randomly and start battles if the player collides with them.
YEAH! Makes sense.
Thanx a lot Khris!
The character control module will prove quite useful for this and various npc's issues :D
I did this by simply using a timer on regions that random encounters are possible. When player enters a region timer is started with a random timeout and when timer has finished combat starts.