Step Count during Magery Cast
Heya everyone. Ive got a big problem, wich it seems that only a few know how to do it, so im asking for them to help. Ive changed the magery system so the player could walk when casting a spell. What happens is, i want a limit of steps. I Mean, if he walks too much, the spell fizzle.
What i really needed is to know how can i count steps, if is there a better way then gettin XY and doing some creepy math, and how can i make the spell circle involved into this. For EX. A spell in 5th circle could be casted walking 12 tiles, and a spell from 6 about 10 tiles. I dont nessesary need a finished script, if someone could just gimme the way i should go i think i would be fine. Ive already looked at stealth script for some information but couldn´t get anything.
Thanx for the attention. []´s
Ventania
Heya everyone. Ive got a big problem, wich it seems that only a few know how to do it, so im asking for them to help. Ive changed the magery system so the player could walk when casting a spell. What happens is, i want a limit of steps. I Mean, if he walks too much, the spell fizzle.
What i really needed is to know how can i count steps, if is there a better way then gettin XY and doing some creepy math, and how can i make the spell circle involved into this. For EX. A spell in 5th circle could be casted walking 12 tiles, and a spell from 6 about 10 tiles. I dont nessesary need a finished script, if someone could just gimme the way i should go i think i would be fine. Ive already looked at stealth script for some information but couldn´t get anything.
Thanx for the attention. []´s
Ventania