#ifndef SCRIPTS_H #define SCRIPTS_H #include "Script.h" #include extern scriptclass script; void scriptclass::load(std::string t) { //loads script name t into the array position = 0; commands.clear(); running = true; int maxlength = (std::min(int(t.length()),7)); std::string customstring=""; for(int i=0; i=7) cscriptname+=t[i]; } int scriptstart=-1; int scriptend=-1; std::string tstring; for(size_t i=0; i 0) { tstring=tstring[tstring.size()-1]; } else { tstring=""; } if(tstring==":"){ scriptend=i; } } } if(scriptstart>-1){ if(scriptend==-1){ scriptend=customscript.size(); } //Ok, we've got the relavent script segment, we do a pass to assess it, then run it! int customcutscenemode=0; for(int i=scriptstart; i=0 && ti<=50){ for(int ti2=0; ti2=0 && ti<=50){ for(int ti2=0; ti2