Changing Region ID

Kaza

Villager
Member
Joined
Jan 12, 2016
Messages
22
Reaction score
2
First Language
English
I was making a little custom way to place items in the world and was using regions to do so.  Everything seems to work perfectly so far, except I don't want players to be able to place items on top of each other.  I figured the best way to do this was to change the region id, but I can't find any command that does this.  I found the command    "change_region_id(x, y, new_ID)"    for VX but that doesn't seem to work in MV.  Am I missing something or will I need to find a different way to do this?
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
There is no such command in either VX or Ace.  If you found that command, it would have been in a script that someone wrote.  Likewise, if you want to do it in MV, you will need a plugin.


How do you allow the player to place the item?  Do you create an event and they can actually see the item?  If so, you can use $gameMap.eventsXy().size > 0 which will tell you if there's an event on that location.
 

Kaza

Villager
Member
Joined
Jan 12, 2016
Messages
22
Reaction score
2
First Language
English
That will work.  Thanks!  Won't be able to say make a table event and put an item on it, but I suppose that's not necessary.  If you do think of a way though, I'll take it!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
I'm sure there are event spawning scripts/plugins around.
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,440
First Language
French
Primarily Uses
RMMV

Kaza

Villager
Member
Joined
Jan 12, 2016
Messages
22
Reaction score
2
First Language
English
That plugin doesn't really do anything for me unless I'm missing something. This places events in certain locations, which I've already done.  I just wanted to use regions to restrict where things could go.  I was using no region as anything can be placed, region 1 as nothing can be placed, and region 2 only certain items can be placed, but this region would only be in locations that already have certain placed items.  I was intending on changing regions as soon as specific items were placed, but I think I found a workaround to do exactly what I wanted, just not as clean and simple as I was hoping.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top