| Blockland Forums > General Discussion |
| I'm making a CityRPG mod that doesn't use Iban's core scripts. |
| (1/6) > >> |
| Axolotl2:
This is intended to be like /Ty's CityRPG while being sort of more realistic. --- Code: ---//----------PROJECT: AxoCity //----------AUTHOR: Axolotl (BL_ID 32440) //----------SCRIPT: Saver loading and generic functionality //Saver loop, generation, etc. function AxoCity_CreateRPDB() { warn("... Attempting to create and initialize AxoCity Saver"); if (isObject(AxoCity_RPDB)) return; new ScriptObject(AxoCity_RPDB) { class = Saver; folder = "config/server/AxoCity/saves/"; file = "config/server/AxoCity/listID.dat"; defFile = "config/server/AxoCity/default.dat"; saveExt = "sav"; }; AxoCity_RPDB.addValue("Job", "Civilian"); AxoCity_RPDB.addValue("Money", 100); AxoCity_RPDB.addValue("Ore", 0); AxoCity_RPDB.addValue("Lumber", 0); AxoCity_RPDB.addValue("Fish", 0); AxoCity_RPDB.addValue("Education", 0); AxoCity_RPDB.addValue("JailTime", 0); AxoCity_RPDB.addValue("Demerits", 0); AxoCity_RPDB.addBool("CrimRecord", false); AxoCity_RPDB.saveDefs(); AxoCity_RPDB.load(); AxoCity_RPDB.loadKeyList(); AxoCity_RPDB.nonPlayerData = AxoCity_RPDB.makeOnline(888888); //888888 will never be used so who cares, because I don't feel like making a SaverRow. } --- End code --- It'll probably be throwaway but it's worth trying. I've had my fair share of people yelling at me about Sassy and RPCore, so I am just going to use RPCore's Saver. |
| Greek2me:
Are you writing this from scratch? |
| Axolotl2:
--- Quote from: Greek2me on December 16, 2012, 04:24:47 PM ---Are you writing this from scratch? --- End quote --- It'll implement only some elements from Iban's CityRPG, like Hellen (I found an eval() on it, so I'll try to work around that) and the taser. One of the reasons I am not using Sassy is that I don't want Ephialtes to hate me even more for running Iban's CityRPG on his hosting service. One of the reasons I am not using RPCore is because it is buggy and McTwist abandoned the project. |
| Alt:
--- Quote from: Title ---I'm making a CityRPG mod that doesn't use Iban's core scripts. --- End quote --- We have like 3 or 4 but almost none of them got publicly released. |
| Axolotl2:
--- Quote from: Alt on December 16, 2012, 04:29:04 PM ---We have like 3 or 4 but almost none of them got publicly released. --- End quote --- Knowing my personality, I'll probably not complete this. It's worth the try. |
| Navigation |
| Message Index |
| Next page |