Sir R. M8gic1an
2009-09-10 01:13:10
Script Wise Structure:
[INDENT]/MSI/
[INDENT]Setup.scar
Globals.scar
Colors.scar
Debug.scar
Walking.scar
Skills.scar
Mainloop.scar
RunMe.scar[/INDENT]
/MSI/Skills/
[INDENT]All functions related to a certain skill are to be put in here[/INDENT]
All those in /Skills/ will be included in Setup.scar[/INDENT]
Setup.scar
Include SRL.
Include Debug.scar , Walking.scar , /skils/ folder, SkillX.scar .
All constants that are used in more than one file should be placed here.
Should have a SetupMSI procedure inside.
Debug.scar
Will receive information from variables and constants already included in Setup.scar ;
Will use a custom type to store as much information as possible about each player without affecting script management.
Progress Report and Player Report will be done here.
A Simple proggie and player report could be done with SRL's reports.scar, and a full detail proggie could be saved to file.
procedure MSIDebug should also be in here.
Walking.scar
All walks will be simple.
Bank - > Place, Place - > Bank, no Place - > Place.
Constants will be used for Cities and for places (inside the cities)
Any object interacting (opening doors, etc) and walking off the Main Map (dungeon walk, inside essence mine, etc) will be handled in the seperate skill files.
Recentering funcs/procs should be in here as well.
Should also be able to detect location where it currently is.
If lost should be able to go to closest location.
SkillX.scar
Skill's mainloops.
eg. Procedure Loop_Mine(UntilLevel, Time: integer);
Mainloop.scar
Include Setup.scar .
This is where all the AI choosing of what to do will be.
RunMe.scar
Include Mainloop.scar .
Will be the file where you press play and then watch in amazement.
SRLPlayerForm
(at least to start with) will be used for the script, so the user does not have to figure out where the hell to go.
—
Ok, these are the things I had on my mind. PMs will soon enough let us know what City and skills we'll be doing, but we can already start planning the core out. Any ideas / additions to this?