CHANGING A VARIABLE DEPENDING ON CURRENT POSITION'S TILE TYPE...
Posts
Pages:
1
Hello,
I was wondering if there was any way to script something to change a certain variable depending on which type of tile the character is standing on. For example, if standing on the 17th tile which is dirt, change the value to 1, and if the hero is standing on tile 18th which is a lighter colored dirt (higher in terrain), change that value to 2 instead.
The point is to integrate a very basic platforming element in the game. My plan is to have a variable that indicates what is the height of the current position's tile, so that when the hero jumps (during which hero's height variable goes up then down) his height will stop at that of the tile's.
I would only need help with the first part. I suppose it would be simple, but I don't have much knowledge in the scripting, only with the general RPG maker functions. Can anybody please help me with this??
I was wondering if there was any way to script something to change a certain variable depending on which type of tile the character is standing on. For example, if standing on the 17th tile which is dirt, change the value to 1, and if the hero is standing on tile 18th which is a lighter colored dirt (higher in terrain), change that value to 2 instead.
The point is to integrate a very basic platforming element in the game. My plan is to have a variable that indicates what is the height of the current position's tile, so that when the hero jumps (during which hero's height variable goes up then down) his height will stop at that of the tile's.
I would only need help with the first part. I suppose it would be simple, but I don't have much knowledge in the scripting, only with the general RPG maker functions. Can anybody please help me with this??
Back in 2k3 this could easily be done with events, and they say that RMVXACE is much better when it comes to events so... Just make forks to check wich tile is the player is standing, then change the respective variable. I can't help at all when it comes to scripts, though, I'm a total newbie...
Yes. There is, and it doesn't need any script.
In 2k3, you set the current location, Store Terrain ID of hero x, y to a variable.
Make a condition that TerrainID is whatever number.
I even made a geomancy skill that changes what you can use based on whether you're standing on snow or desert.
In 2k3, you set the current location, Store Terrain ID of hero x, y to a variable.
Make a condition that TerrainID is whatever number.
I even made a geomancy skill that changes what you can use based on whether you're standing on snow or desert.
Oops. I should have mentioned this is for RPG Maker VX. Am I screwed, because Terrain ID doesn't seem to be in the list in Control Variables?
Should still have it. XP certainly did. Look for something along the lines of Store Terrain or something.
Pages:
1
















