If you want a value from the circle pad you need to use
Stick 'player(when there is multiple people, out x,y
X and Y are the return values but be warned, it returns the values as a small number so you would have to do something like this:
@loop
Stick out x,y
'Funtion' oldx+x*-10,oldy+y*-10
Goto @loop
That's how it works for sprites
I haven't done it with more then a few variables but it goes somewhat like so:
Save"txt:' name '", variables to save
You can load it the same way except the variables to save is replaced with where you want to load the data
If your still wondering,
Def 'name' x,y,string$
' for example
Locate x,y
Print string$
End' don't forget this part
' to call the function you must fill a peramiters
'Name' 3,0,"hello"
If you want a battle to happen on contact you could do this:
Spset 1,sp 'sets enemy sprite
Spcol 1,true 'sets a hit box
If sphitsp(0,1,1)>0 then
' put the battle here
Endif