Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
OverlordMao

Repeating Story

Recommended Posts

This shouldn't be to hard of a request. I just need a script that has it so that once the final boss is beaten, all items (except maybe a few) and all levels the same, while also turning off ALL Self-switches, Variables, and all Switches (excluding a few), and also have the character teleported to where they start the game as if starting a new game (All party members removed except the one(s) you start with).

Shouldn't be to hard, right?

Share this post


Link to post
Share on other sites

I don't think you need a script for this.

 

You could do it with events. For example, if you wanted all the switches set to 0, you go to "Control Switches" and check "Batch" and you could turn off all your switches with one even command.

 

Same with variables, but you cannot turn them off of course. But you can set them all to 0 in one go. With a script, its no easier.

 

Self switches however, I think you need to use scripting. Unfortunately I cannot script, but perhaps the variable "$game_self_switches" will help a scripter figure it out.

Share this post


Link to post
Share on other sites
I tried to find a script to do this. But couldn't find a stable one. I think the best way to do it is without scripting (aka with a common event).

 

If I use a common event, will it turn off the self-switches of ALL events? (Final boss on map 98, common event is called, Will Self switch A be turned off if the event, with self switch A, on is in map 7?)

Share this post


Link to post
Share on other sites

Well, I bet there's a way to turn off self switches. I don't think it'd be that complex not to fit in the common event in a Call Script command.

 

EDIT: After some googling...

 

key = [map_id, event_id, switch]
$game_self_switches[key] = boolean
$game_map.need_refresh = true

 

This way, you could make a loop that turns all self_switches for all maps and all events.

Share this post


Link to post
Share on other sites
key = [map_id, event_id, switch]
$game_self_switches[key] = boolean
$game_map.need_refresh = true

 

This way, you could make a loop that turns all self_switches for all maps and all events.

 

Thx for the help.

 

Edit: Didn't think about this before. What do I put in for [map_id, event_id, switch] and boolean. I put in random stuff for [map_id, event_id, switch], and it said something about boolean, so thats really why I'm asking about it.

Share this post


Link to post
Share on other sites

map_id = the ID of the Map in which the Self Switch is

event_id = the ID of the event

switch = A,B,C, or D

boolean = true (for ON) or false (for OFF)

 

That's it.

 

Also, I'm not sure, but a line as simple as this:

$game_switches = Game_Switches.new

Might just set all self switches in the game to OFF. Although I'm not sure, I'm no scripter. You may want to try that and tell me if it worked.

 

A real scripter might tell us if this is the right way to go.

Share this post


Link to post
Share on other sites
Also, I'm not sure, but a line as simple as this:

$game_switches = Game_Switches.new

Might just set all self switches in the game to OFF. Although I'm not sure, I'm no scripter. You may want to try that and tell me if it worked.

 

Nope, tried and it didn't work. Maybe I should work on the demo first, and once I can get it on the site, I can get some help with it. Thats just a suggestion.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...