I'm trying to make a feature in my game where the player can use a 'furniture' item in their inventory and it will drop the furniture 1 tile in front of them on the map, so I'm trying to use YanFly's Event Spawner for this.
For now, I'm doin this:
check terrain tag (i made all ground tags 1 and wall tags 2)
assign player x to var 65
assign player y to var 66
then run a script call:
It should spawn event 1 from map 1 at variables 65 (for x) and 66 (for y) ...but nothing happens. Help?
Actually while I'm asking, is there a way to check if the player can make 1 step forward and return a true or false? Or 1 and 0, just something I can use a conditional check for? Because I think that would be easier to use for 'ground furniture' spawning than a terrain tag.
EDIT: reading more into this plugin's help file, how does
even work? If I spawn Event 1 four times are the event ID's going to be 1001-1004 or all 1001? Figuring out how to make this plugin spawn something and then 'grab' the spawned event's new id is a headache lol
For now, I'm doin this:
check terrain tag (i made all ground tags 1 and wall tags 2)
assign player x to var 65
assign player y to var 66
then run a script call:
Code:
Yanfly.SpawnEventAt(1, 1, $gameVariables.value(65), $gameVariables.value(66), true)
It should spawn event 1 from map 1 at variables 65 (for x) and 66 (for y) ...but nothing happens. Help?
Actually while I'm asking, is there a way to check if the player can make 1 step forward and return a true or false? Or 1 and 0, just something I can use a conditional check for? Because I think that would be easier to use for 'ground furniture' spawning than a terrain tag.
EDIT: reading more into this plugin's help file, how does
Code:
Yanfly.DespawnEvent(EventID)
even work? If I spawn Event 1 four times are the event ID's going to be 1001-1004 or all 1001? Figuring out how to make this plugin spawn something and then 'grab' the spawned event's new id is a headache lol