Help with Change Party Order script
#1
So... I'm getting all the scripting out of the way before starting over with a project and this one has been bothering me.

I'm using a script to switch the party order (you press a key outside of battle and the second party member becomes the first, the first becomes the last, etc.) but I'd like to make a very basic edition to the script to disable its use if a switch is on.

For cutscenes, for instance, players can still fuck around and switch party members so you end up with an NPC adressing a secondary character as if they were the protagonist. With said secondary character standing right next to it.

I've attached the script in question as a txt. I have no scripting skills aside from Pascal, so I'd largely appreciate some help.



.txt   Change party order.txt (Size: 667 bytes / Downloads: 3)
"No, that's the fourth one. The one where you shoot your head to summon demons is the third one."
- Me, trying to explain Persona 3 without sounding like a madman.
Reply }
#2
Uh... yeah, it's been like two weeks and no reply. Is there a way to bump this? Because I have no idea how to do that.
"No, that's the fourth one. The one where you shoot your head to summon demons is the third one."
- Me, trying to explain Persona 3 without sounding like a madman.
Reply }
#3
posting in your own thread to move it to the top of the list is called a bump. Which is what you just did o:

Code:
class Scene_Map
  alias modern_algebra_change_leader_modification update
  def update
    modern_algebra_change_leader_modification
    if Input.trigger? (Input::Letters["Q"]) && $game_switches[36] == true
      # Remove the Lead Actor
      old_lead = $game_party.actors.shift
      # Add the old leader back into the party
      $game_party.add_actor (old_lead.id)
    end
    if Input.trigger? (Input::Letters["W"]) && $game_switches[36] == true
      # Remove the last actor in the party
      new_lead = $game_party.actors.pop
      # Insert him as the lead actor
      $game_party.actors.unshift (new_lead)
      # Refresh $game_player to reflect new leader
      $game_player.refresh
    end
  end
end

It's just that simple.
Reply }
#4
Wow, that WAS simple. Great, thanks.
"No, that's the fourth one. The one where you shoot your head to summon demons is the third one."
- Me, trying to explain Persona 3 without sounding like a madman.
Reply }
#5
Wait. No. It's not working.
"No, that's the fourth one. The one where you shoot your head to summon demons is the third one."
- Me, trying to explain Persona 3 without sounding like a madman.
Reply }
#6
Whoops. Change the = to ==. I also edited my original post.
Reply }
#7
can i ask why you would want to do this with a script? what makes that less work?
Reply }
#8
How would you do this without a script? Because I cannot imagine any way to write this using events unless you've hard coded the party characters or use a bazillion case statements.
Reply }
#9
There you go, thanks! Even if the switch was off, every time you pressed either key the switch turned itself on, so there was no way to turn it off and disable the function.

As for doing it without a script... why? Why go crazy with common events and conditionals when there's a very simple script that does it for you?
"No, that's the fourth one. The one where you shoot your head to summon demons is the third one."
- Me, trying to explain Persona 3 without sounding like a madman.
Reply }
#10
(05-04-2014, 10:17 PM)MechanicalPen Wrote: How would you do this without a script? Because I cannot imagine any way to write this using events unless you've hard coded the party characters or use a bazillion case statements.
like this. it worked with a character select map like this. the default party members were ghosts who had to inhabit mortal bodies to escape a dungeon. the gimmick is up to you though
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Plugin or Script help with Item menu, SKill menu, and Equip menu JayRay 2 64 11-20-2024, 03:09 AM
Last Post: JayRay
   Script compatibility help Lord Vectra 3 4,605 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Change event graphic? Bennerdeben 2 5,068 11-15-2020, 10:13 AM
Last Post: Bennerdeben
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 15,854 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 16,170 04-28-2020, 04:06 PM
Last Post: Whisper
   Skill Cooldown script Fenriswolf 11 16,449 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Help iwth script (RGSS Player crash) Whisper 3 8,534 06-17-2017, 05:03 PM
Last Post: Whisper
   Help modifying a script Keeroh 7 10,221 06-11-2017, 04:43 PM
Last Post: DerVVulfman
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 9,859 05-31-2017, 05:10 AM
Last Post: Zachariad
   Actor names in Quest Script jreagan406 5 8,641 03-07-2017, 08:06 AM
Last Post: JayRay



Users browsing this thread: 3 Guest(s)