The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Dawn of Dark on June 18, 2014, 11:12:26 AM

Title: Modication to NeonBlack's Terrain Tags Script
Post by: Dawn of Dark on June 18, 2014, 11:12:26 AM
NeonBlack's Terrain Tags Script Modifications
6/18/2014



Summary
I'm using NeonBlack's Terrain Tags (http://forums.rpgmakerweb.com/index.php?/topic/7051-terrain-tags/) Script in tandem with Victor's Pixel Movement (http://victorscripts.wordpress.com/rpg-maker-vx-ace/utility-scripts/pixel-movement/) script and they are working together without any problem.

With NeonBlack's Terrain Tags script, you can use region tags to do things such as covering the player with a wall tile and block your movement completely and several other things (refer to the link above if you need more info). Anyway, I mostly use his cover and block tags to be able to go under walls and ceilings tiles. I used to use the bridge tags in the project, too, but since I implemented Victor's Pixel Movement script, I stop using those tags because of incompatibility issues and I've found other way of making a bridge anyway (if you're interested (http://forums.rpgmakerweb.com/index.php?/topic/3253-how-do-i-make-bridges/)).

Features Desired

Mockups
Some picture to show my point:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fs9.postimg.org%2F4chyza6ej%2FUntitled.jpg&hash=6115980123e1af8ef5fcc45fa97ee104d5572d5e) (http://postimg.org/image/4chyza6ej/)
As you can see, thanks to Victor's script, my character can pixel-move but that lead to weird moments when the characters had their top of their sprite shown when they are supposed to be covered.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fs30.postimg.org%2Fz68g3x6rh%2FUntitled1.jpg&hash=1da28b56b9c1e85fbf47571919c7ae49c711fbf6) (http://postimg.org/image/z68g3x6rh/)

The default settings are: the tag for COVER tiles is 18 and BLOCK tiles is 19. Whenever you put the region tag 18 on a tile, they will be passable and cover you. Same goes for tag 19, only that it blocks you completely instead.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fs18.postimg.org%2Foe2ss9snp%2FUntitled2.jpg&hash=acad60ffd41ef4ffcd8f380022efe173ec1648d4) (http://postimg.org/image/oe2ss9snp/)

So if you change the BLOCK tag to 18, whenever you put tag 18 on a tile, it will cover and block you at the same time.

That's what I'm trying to achieve here. I want to preserve the original tags, while adding a new one that will both cover and block the player at the same time.

Final Notes
 The Terrain Tag script is rather simple, while Victor's Pixel Movement script is more complex, but I don't think you will need to change anything to Victor's script, since both is working fine together, just keep it in mind. I have added both scripts below, for convenience and also because Victor's script links are not working. I also added a experiment project below which contains the script regarding this request (don't concern your self with other things in the project). If you need more info of the scripts itself, please refer to the links above.