TheOneBlackRider wrote...
Well, regarding the swoop up to battlements, I'd say, that depends on the tilesets you are using. I made a test with the ramp using the rual set with raised terrain. Both tries - from bottom to top or over the top don't work, because the edge of the raised terrain does have a (slim) unwalkable part, which stops the toon. The same is for the city raised terrain. With these sets, you don't get up.
You probably would have to add a special tile variation - completely walkable, block it (with a placeable), when there is no ramp and remove the blocks, when the ramp is spawned.
With having such a special tile, I'd say, something like the earlier mentioned "appearing bridge over a gap" would work, too.
Yes. The way to do this would be to have the tile itself be walkable. Then use tilemagic placeables to create the variable situations.
Example city wall tiles:
- change the WOK so that city wall tiles are all walkable.
- Initialize the city areas with placeable tile magic "Wall State A" at those walls. Wall State A placeables include PWKs that disallow crossing the wall.
- when you need a special aerial ramp, you destroy State A and spawn in "Wall State B". This has an invisible ramp, and no blocking PWK.
- when the player is done flying up over the wall, destroy State B, respawn State A.
Obviously there are many problems with this. Most of the problems relate to the unpredicatbility of players. With that in mind the safest way to use these special effects would be with a cutscene.
----
About the script method of spawning, you use
CreateObject. That function is supplied with a location. The location would be in the middle of a tile. Your X's and Y's need to end in 5.0. So x 45.0 and y 55.0 is dead center of a tile.
Alternatively you can look at
spelljammer's tilemagic scripts which handle this for you. You'll need to adjust his functions to spawn placeables instead of VFX, but thats not hard. I've made the changes for myself. If he's cool with others sharing altered versions of his work, I'll be happy to paste my changes for other's use. But I'm not clear on his feelings about that, and I don't feel like completely rewritting a tilemagic system just so I have the rights to post it.
Modifié par henesua, 13 décembre 2013 - 05:46 .