ok, thanks KSNiloc
here's what I was talking about:
#done!=0
#While(done!=0)
{
#Get(a$)
#If(a$=="UP")
{
#Push("N","[insert handle of the first character here]")
#Push("N","[second character]")
#Push("N","[third character]") ***etc, for however many characters you want to move***
}
***
#If(a$=="DOWN")
{
#Push("S","[handle1]")
#Push("S","[handle2]")
#Push("S",blahblahblah...)
}
#If(a$=="LEFT")
{
#Push("W",blahblahblah...)
#Push("W",blahblahblah...)
#Push("W",blahblahblah...)
}
#If(a$=="RIGHT")
{
#Push("E",blah)
#Push("E",blah)
#Push("E",blah)
}
}
You get the idea. (when the arrow keys are pressed, it returns "UP" "DOWN" "LEFT" or "RIGHT," corresponding to the arrow pressed)
I think the #Push command automatically detects solid tiles, so you shouldn't have to worry about that
Now, if the other things following are not characters but items, you'd have to use #PushItem(itemnum!,direction$)
You'd also have to put all the other commands the player could be entering in that loop as well (f'rinstance, calling the menu or a shop), which should be fairly easy using the #Get command, and I think you'd have to do changing from board to board manually, and also random battle generation
I don't know if the default battle system can be run with a loop, but if it can then random battle generation could be done like this:
***at the end of the loop***
***you'd need the probability of a battle for that board in some variable...
***I'm not familiar with the way the default systems work in TK, so I don't know if
***that variable is readily availabe or if you'll have to set it manually when
***each board is entered
***Here I'm assuming that the battle probability is x out of 100
#Rand(100,num!) ***or whatever the generate random number command actually is***
#If(num!=<battleprobability!){#[whatever the heck the start battle command is]}
Now, I usually don't manage to think of the easiest ways to do things, so if someone sees some problems with this, go ahead and fix them