ID:166927
 
Hehe

This is a little tricky to explain.

I have a turnbased battle. I want it so that a player can only move a certain amount from where they begin their turn. I just kinda need a push in the right direction here. I know I'm probably gonna have to use new to make dense items outside their moving range but, how would I change where they appear based upon the players move stat, and then go away and re appear as needed? If..that makes any sense whatsoever.

Any help? I really can't work this out
You could take use a system much like Fallout (as I have done in a few games) and use something like Action Points, whereas at the beginning of each turn for each character they are given x Action Points and actions take certain amounts from them

i.e

Char A has 10 AP
Char A moves south (1 square movement cost 1 AP)
Char A loses 1 AP

Once they have used all thier action points you just disallow movement. It could look something like this ->

mob
Move()
if(!src.move_allowed)
src << "Movement Disallowed."
else if(src.in_battle&&src.action_points>0)
..()
src.action_points-- //Move and take an action point away
else if(src.in_battle&&src.action_points<=0)
src << "Not enough action points" // Or whatever
else
..()


Don't quote me on that though :)

Hope that helps.

- GunRunner
In response to GunRunner
Hey I never thought of that =D Thank you ^_^
In response to JMT
No problemo, hope it works out.

- GunRunner