Development Forum |
|
|
the1whoscreams
|
3/28/2018 | |
So, I recently started working on my plant again, the one with the sticky seeds. Right now, I'm working on the functionality of the seeds that stick to the creature. They cling for a while, then fall off, and that's how they spread. The problem is when the creature is resting or something, and the seed drops while sitting on a solid room boundary. Its location becomes invalid, and it throws an error. I've been trying to use TMVT to see if it's in a safe location, and I'm even making it MVSF to a safe location, but both of those things are failing, and the seeds are still throwing errors. What should I do? |
Peppery One
Papriko
|
3/29/2018 | 1 |
If I recall correctly from my agent making days, TMVT and MVSF use the current physical properties as criterium wether or not a position is safe, i.e. if you are an insubstantial spectre that passes through walls, any position is "safe" to go to.
Maybe you could try out if the many position commands work on creatures. POSX and POSY are the X and Y coordinates of the agent's center respectively, but there is also POST, POSB, POSL and POSR for the top, bottom, left and right corners of an agent. They work pretty well for traditional agents, no idea how well they handle norns.
I guess one attempt you could make would be to teleport to a norn's POSX POST, so it is centered-ish and also at eye-height.
Just keep in mind that regardless what coordinates you use on the target, the teleported agent will try to go there with the top left corner.
Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis... |
|