hey all, i have another question for the more experienced. in my game i have an item named shovel, now how could i make it to where if im outside(obviously) and there's grass in front of my character, i can use the shovel and kind of break away the map, sort of like the game minecraft in a way, to where the map can be dynamically changed based on where i dig, like i could dig a trench around my house to keep the black knight at bay or something.
i have heard of people using regions for similar things i guess, and i also had an idea to activate a common event whenever you use the shovel item to set 2 variables, x and y of the space the player is facing, and checking that tile's region, but then if i dig a hole, wont the region still be the same, allowing me to dig the same hole again? and also, if could do the same thing but check that locations x,y terrain, but im not sure how that works really, can you use it to check if something is dirt or grass or am i mistaken in thinking that?
I did a script for someone a while ago so they could change their world map just by walking over it, with a certain switch turned on. You could probably do something like that and only let it happen if you have the shovel in inventory AND the tile on the map has a certain tile ID (or series of tile IDs).
I don't think you could do it without resorting to scripts, and unless you saved the map in your save file, the moment you leave then come back, it would be back to the way it originally was.
But you don't want events all over the place, do you?
Other things to consider ... what if you dig two tiles next to each other - do you end up with two holes, side by side? Or do they join to form a larger hole? If you dig 5 tiles in a row, do you get 5 holes, or do you get a trench? Would a "hole" autotile be more suitable?
And what should happen when you leave the map and return? Should the holes still be there?
This is definitely script territory - you can't accomplish this with events and common events.
I wish I could spend some time working on this, but I'm going away for a few days soon and have a lot to get through before I leave.
I hope an amazing scripter reads this and jumps at the challenge. If nobody has by the time I get back, and I have the time, I might look into it 🙂
sweetness, i appreciate the enthusiasm and am grateful.
in the meantime, since im no good at scripting yet, i will try to set up a system of events, page 1 will be blank,
page 2 will have the hole, and when you use the shovel the common event for the shovel will just take your coordinates and based on your direction set the location for the hole event and switch its' self switch on. this will not make the trench i was hoping for but until i find a way to achieve that it will just have to do. i am not any good at scripting but have found that if i really really want to i can figure out how to do a LOT with just eventing. Have a great trip shaz, and thanks again for the help!
i will post my progress/issues on here and if anything comes of it, that would be fantastic, otherwise i might see if i can find someone who knows a lot more about scripting than i do to figure it out..
peace for now
edit: just thought of it, but it might be an important side note. most of my maps have a black border and i was thinking i could just place my events on the border and name them 'hole 1', 'hole 2', etc and when the shovel moves one of them it will flip a switch, which is ok for me as i have used the database breaker and have 10,000 of them.
when the switch is flipped i will have to have a butt-ton of conditional branches
if switch 'hole 1' is on then set event location 'hole 1' to variable x,y
else if switch 'hole 2 is on then set event location 'hole 2' to variable x,y
else if switch 'hole 3' is on then set event location 'hole 3' to variable x,y
else same but for switch 'hole 4, and so on and so forth
then you can go to the hole if you have a 'dirt bucket' and fill it back in, which would just turn off the self-switch for that event, making it blank again.
this wont make it trench-like but it will allow me to make holes that will stay if im not mistaken.
Yes, if you use switches (or probably more appropriately, self-switches), your holes will stay if you leave and return to the area.