Ok, I'm working on an evented menu system and I need the following script calls:
- I want a script call to write a save file to whichever file I choose.
- I want a script call to force the use of an item.
- I want a script call to set a variable to the number of a certain item that there is in the inventory
That's all for now, but I will definitely need more.
I'm at work at the second, so I will need to look at RMXP's scripts to get the exact calls for all of them, but the last one:
$game_variables[VAR_ID] = $game_party.item_number(ITEM_ID)
Thank you!
Try this for the saving. Call with Scene_Save.save("file name.rxdata")
class Scene_Save
def self.save(file_name)
save_obj = self.new
file = File.open(file_name, "wb")
save_obj.write_save_data(file)
file.close
end
end
I don't know if that will work without creating an instance of Scene_Save. You would need to create a static method that does the same thing, but that defeats the purpose of an evented menu.
It works I tested. It uses a static method. def self.save. Then what it does is create an instance of itself and calls all methods from that.
the script call for that is
Scene_Save.save(FILE_NAME)
that last call you want depends on weather or not your using BABS
Thanks Ryex, but one problem. When I said...oh wait. It doesn't actually matter. Ryex, I love you.
I don't get any credit for this D:
*Facepalm*
I meant you. I'm really not with it today.