Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: The Niche on March 08, 2011, 03:45:41 am

Title: [XP] Need some script calls
Post by: The Niche on March 08, 2011, 03:45:41 am
Ok, I'm working on an evented menu system and I need the following script calls:



That's all for now, but I will definitely need more.
Title: Re: [XP] Need some script calls
Post by: ForeverZer0 on March 08, 2011, 12:12:48 pm
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)
Title: Re: [XP] Need some script calls
Post by: The Niche on March 08, 2011, 01:35:23 pm
Thank you!
Title: Re: [XP] Need some script calls
Post by: G_G on March 08, 2011, 06:17:36 pm
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
Title: Re: [XP] Need some script calls
Post by: ForeverZer0 on March 08, 2011, 06:47:37 pm
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.
Title: Re: [XP] Need some script calls
Post by: G_G on March 08, 2011, 07:00:12 pm
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.
Title: Re: [XP] Need some script calls
Post by: Ryex on March 08, 2011, 07:13:05 pm
the script call for that is
Scene_Save.save(FILE_NAME)

that last call you want depends on weather or not your using BABS
Title: Re: [XP] Need some script calls
Post by: The Niche on March 09, 2011, 07:29:11 am
Thanks Ryex, but one problem. When I said...oh wait. It doesn't actually matter. Ryex, I love you.
Title: Re: [XP] Need some script calls
Post by: G_G on March 09, 2011, 08:55:19 am
I don't get any credit for this D:
Title: Re: [XP] Need some script calls
Post by: The Niche on March 09, 2011, 04:45:20 pm
*Facepalm*

I meant you. I'm really not with it today.