Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Bernkastel on May 14, 2010, 07:19:28 pm

Title: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: Bernkastel on May 14, 2010, 07:19:28 pm
This may be a stupid question, but I've read through the Blizz-ABS manual, and I can't figure out how to disable the party leader switching..thing.

Is there any way to disable it? :S
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: Subsonic_Noise on May 14, 2010, 07:45:50 pm
Try to set the button assigned for it to "nil" (without the "), that should work.
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: Bernkastel on May 14, 2010, 08:04:22 pm
Quote from: Subsonic_Noise on May 14, 2010, 07:45:50 pm
Try to set the button assigned for it to "nil" (without the "), that should work.


*cough*

What button?
>_______________>
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: Subsonic_Noise on May 14, 2010, 08:07:48 pm
Quote from: Bernkastel on May 14, 2010, 08:04:22 pm
Quote from: Subsonic_Noise on May 14, 2010, 07:45:50 pm
Try to set the button assigned for it to "nil" (without the "), that should work.


*cough*

Bless you.
Quote from: Bernkastel on May 14, 2010, 08:04:22 pm
What button?
>_______________>

Didn't you mean that function where you can switch the party leader by pressing a button? If not, my bad.
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: Bernkastel on May 14, 2010, 08:09:00 pm
Yes, but I don't know what part of the script the 'nil' is supposed to go.

Derp.
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: Subsonic_Noise on May 14, 2010, 08:18:39 pm
Quote from: Bernkastel on May 14, 2010, 08:09:00 pm
Yes, but I don't know what part of the script the 'nil' is supposed to go.

Derp.

Well, there is the configuration in the first script, where you configure... wait, what the hell? The button for the member switching isn't there o.O
I'll have to look for it. *walks off in shame*

Okay, in case you still need the "select" button (I currently have no clue what it is used for, I'm tired) go to the 3nd BlizzABS script, line 2794, this is where the leader switching seems to be defined.

So, change this:
# if battler exists and either dead or select triggered
      if player.battler != nil && ($game_system.select_button &&
          Input.trigger?(Input::Select) || player.battler.dead?)
        # switch to next valid actor
        switch_leader
      end


to this
# if battler exists and either dead or select triggered
         # if player.battler != nil && ($game_system.select_button &&
         #  Input.trigger?(Input::Select) || player.battler.dead?)
         # switch to next valid actor
         # switch_leader
         # end


...I could have just said "comment it out". Meh. You could delete it too, but this way you can always change it back quickly.
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: Bernkastel on May 14, 2010, 11:35:27 pm
Quote from: Subsonic_Noise on May 14, 2010, 08:18:39 pm
Quote from: Bernkastel on May 14, 2010, 08:09:00 pm
Yes, but I don't know what part of the script the 'nil' is supposed to go.

Derp.

Well, there is the configuration in the first script, where you configure... wait, what the hell? The button for the member switching isn't there o.O
I'll have to look for it. *walks off in shame*

Okay, in case you still need the "select" button (I currently have no clue what it is used for, I'm tired) go to the 3nd BlizzABS script, line 2794, this is where the leader switching seems to be defined.

So, change this:
# if battler exists and either dead or select triggered
      if player.battler != nil && ($game_system.select_button &&
          Input.trigger?(Input::Select) || player.battler.dead?)
        # switch to next valid actor
        switch_leader
      end


to this
# if battler exists and either dead or select triggered
         # if player.battler != nil && ($game_system.select_button &&
         #  Input.trigger?(Input::Select) || player.battler.dead?)
         # switch to next valid actor
         # switch_leader
         # end


...I could have just said "comment it out". Meh. You could delete it too, but this way you can always change it back quickly.



I did that and got a syntax error. :\
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: WhiteRose on May 15, 2010, 12:19:36 am
If I recall correctly, the Select button serves no purpose other than to change the party leader. Go ahead and set it to nil. That should solve your problem. :)
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: Bernkastel on May 15, 2010, 03:39:57 am
Quote from: WhiteRose on May 15, 2010, 12:19:36 am
If I recall correctly, the Select button serves no purpose other than to change the party leader. Go ahead and set it to nil. That should solve your problem. :)


I'm sorry for being so uneducated. :x

How do I set it to nil...I already see a nil there, and I don't recognize any other part that could possibly have that. o-o
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: Blizzard on May 15, 2010, 05:21:32 am
Better don't set it to nil but disable the button itself as soon as the game starts. Read the manual for the script call. Just use the search function to find it, search for select_button or switch_button.
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: Subsonic_Noise on May 15, 2010, 06:59:41 am
I should really stop trying to help people at 2 am. :/
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: nathmatt on May 15, 2010, 08:28:37 am
Quote from: Subsonic_Noise on May 14, 2010, 08:18:39 pm

Well, there is the configuration in the first script, where you configure... wait, what the hell? The button for the member switching isn't there o.O
I'll have to look for it. *walks off in shame*

Okay, in case you still need the "select" button (I currently have no clue what it is used for, I'm tired) go to the 3nd BlizzABS script, line 2794, this is where the leader switching seems to be defined.

So, change this:
# if battler exists and either dead or select triggered
      if player.battler != nil && ($game_system.select_button &&
          Input.trigger?(Input::Select) || player.battler.dead?)
        # switch to next valid actor
        switch_leader
      end


to this
         # if battler exists and either dead or select triggered
         # if player.battler != nil && ($game_system.select_button &&
         #  Input.trigger?(Input::Select) || player.battler.dead?)
         # switch to next valid actor
         # switch_leader
         # end

...I could have just said "comment it out". Meh. You could delete it too, but this way you can always change it back quickly.
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: Blizzard on May 15, 2010, 08:53:24 am
Exactly. You can disable it via a script call so you don't have to mess around with the code of Blizz-ABS.
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: Bernkastel on May 15, 2010, 01:04:37 pm
Okay, thank you!

I decided to call the script command, and use this code

$game_system.select_button = nil


And when I want to switch back, I can just use

$game_system.select_button = 1


Quote from: nathmatt on May 15, 2010, 08:28:37 am
Quote from: Subsonic_Noise on May 14, 2010, 08:18:39 pm

Well, there is the configuration in the first script, where you configure... wait, what the hell? The button for the member switching isn't there o.O
I'll have to look for it. *walks off in shame*

Okay, in case you still need the "select" button (I currently have no clue what it is used for, I'm tired) go to the 3nd BlizzABS script, line 2794, this is where the leader switching seems to be defined.

So, change this:
# if battler exists and either dead or select triggered
      if player.battler != nil && ($game_system.select_button &&
          Input.trigger?(Input::Select) || player.battler.dead?)
        # switch to next valid actor
        switch_leader
      end


to this
         # if battler exists and either dead or select triggered
         # if player.battler != nil && ($game_system.select_button &&
         #  Input.trigger?(Input::Select) || player.battler.dead?)
         # switch to next valid actor
         # switch_leader
         # end

...I could have just said "comment it out". Meh. You could delete it too, but this way you can always change it back quickly.




Thank you for putting it in 'Bern is retarded terms'. :) I can be pretty stupid sometimes.
Title: Re: RMXP Blizz-ABS Party Member Switching Disabled?
Post by: Blizzard on May 15, 2010, 02:26:45 pm
Using "true" and "false" would be cleaner, but yeah "1" and "nil" work actually. xD