- Apr 22, 2012
- Reaction score
- First Language
- Primarily Uses
I was actually working on something like this.Been working a lot on the, ah.. 'infrastructure' of the game while waiting for 0.8, setting up tables in google sheets that help autogenerate items and such with varied stats (to copy/paste into the game's text/database files). But I come back to check on things fairly regularly, and skimming through gave me a thought. Is it possible to make characters exert a sort of 'exclusion zone' around them that prevents movement, like an obstacle that does not block LoS? I don't think this is currently doable to be honest, given that I remember a while back that there wasn't a[t least a reasonably approachable] method of implementing 'large' units (2x2, 3x3, etc.), but as this would be based on a regular 1x1 unit simply with the surrounding tiles impassable, I thought it might be worth a shot to ask. I wouldn't be sure where to begin with trying it out though- maybe auras could be used somehow?
It's still in-progress but it works like this:
I have the state
In order to do this, I take the 8 surrounding cells of the cell that is being tested in the isCellReachable function
and have the BattleManager pull any entities in them, and checks
IF there is an entity, is that entity possessing the [RESTRICT MOVE] state
If yes, then return false -> This cell is affected.
I'll post a video when its done.