H
halkun
Guest
Ok, now that we have at count about four implementations of fieldscript floating about. I think we need a unified human readable way the laguage is suppoed to go.
I'm all for an #include directive to allow alasing of variables. I don't want them declared in script, I would like to command sequence as close to the bytecode found in the file.
I also like curly brackets.
Borrowing from Lasyan, Should varibles be something like this?
Code: [Select]
This means bank 3, address 32, that can of course be aliased in an #include where we can have something like <mapjump> that defines the mapjump files.
Code: [Select]
is that workable?
In my script dumper, I include an "alias" command for repeating scripts, though it would seem that the script slot location is important. If the script is in slot 3 or above it seems to be on "on touch" or something.
Also scritp 0 has two states, I define that as an init script and a base script.
Here's a dump from what I have from my program.
Code: [Select]
In the end would like the addresses to be labels that can be refrenced with the JMP* commands.
Comments are '#' ... What are your thoughts....
I'm all for an #include directive to allow alasing of variables. I don't want them declared in script, I would like to command sequence as close to the bytecode found in the file.
I also like curly brackets.
Borrowing from Lasyan, Should varibles be something like this?
Code: [Select]
Code:
if (<03>[32] == 19){pc(0)}
Code: [Select]
Code:
if ($gold == 2872){...}
In my script dumper, I include an "alias" command for repeating scripts, though it would seem that the script slot location is important. If the script is in slot 3 or above it seems to be on "on touch" or something.
Also scritp 0 has two states, I define that as an init script and a base script.
Here's a dump from what I have from my program.
Code: [Select]
Code:
#################### Entity 0 (dic) #################### ENTITY(0) = dic dic (script 0){ INIT:1ba: prtyp(0)1bc: ret BASE:1bd: ret} dic (script 1){1be: ret} alias dic (script 1 to 31) #################### Entity 1 (cloud) #################### ENTITY(1) = cloud cloud (script 0){ INIT:1bf: char(0)1c1: pc(0)1c3: ret BASE:1c4: xyzi(0,0,0,0,0,0,0,0,1,0)1cf: ret} cloud (script 1){1d0: ret} alias cloud (script 1 to 31)
Comments are '#' ... What are your thoughts....