Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: Switches Inverted?
- Original author: Orangepaw
- Original date: April 20, 2016
- Source thread: https://forums.rpgmakerweb.com/threads/switches-inverted.60659/
- Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker MV Support
Summary
, #2) :When Yes Comment: This fight is for the character Libiona. Dedicated to Stephanie. Battle Processing: Liboria
Archived First Post
Hey Community!
I am trying to design an event where an NPC fights you and then joins you if you win. However, the switches are acting strange. I will show code and explain below.
As seen above in the comments in the code, event page 1 has the Switch set to OFF, as my brain understands it, I want that switch to be set to ON after she is defeated so the event no longer appears on the map. However, when I switch it to ON the action press button of event page one doesn't trigger anything. Event page two is set to parallel.
Feel free to help me clean this up --- I am brand new at this. Some pictures are attached.
Thank you in advance.
Please feel free to ask any questions!
- Paw
Protected download
Protected download
Protected download
Protected download
Protected download
I am trying to design an event where an NPC fights you and then joins you if you win. However, the switches are acting strange. I will show code and explain below.
Code:
Comment: Event Page 1
If: Nana In Team = OFF
:Else
Text: None, Dim, Bottom
:Here Lies Liboria Catalano
:Born: 1935 Died: 2014
:Mother, Leader and Radical Grandma
Control Switches: #0001 Nana Activated = ON
Set Event Location : This Event, (32,4)
Control Self Switch: A = ON
:End
Code:
Comment: Event Page 2
If Nana Activated is ON
Set Movement Route: This Event(Wait)
Opacity: 0
Opacity: 10
Opacity: 20
Opacity: 30
Opacity: 40
Opacity: 50
Opacity: 60
Opacity: 70
Opacity: 80
Opacity: 90
Opacity: 100
Opacity: 110
Opacity: 120
Opacity: 130
Opacity: 140
Text:NanaFrown(0), Dim, Bottom
:Liboria: I was known as Liboria. Will you release me from the chains of Death?
Show Choices: Yes, No(Dim, Right, #1, #2)
:When Yes
Comment: This fight is for the character Libiona. Dedicated to Stephanie.
Battle Processing: Liboria
:If Win
Control Switches: #0002 Nana In Team = OFF
Text:NanaFrown(0), Dim, Bottom
:Liboria: Thank you for honoring my Life. In turn, I will honor yours.
Set Movement Route: This Event(Wait)
Opacity: 140
Opacity: 130
Opacity: 120
Opacity: 110
Opacity: 100
Opacity: 90
Opacity: 80
Opacity: 70
Opacity: 60
Opacity: 50
Opacity: 40
Opacity: 30
Opacity: 20
Opacity: 10
Opacity: 0
Set Movement Route: This Event(Wait)
:Through ON
Control Switches: #0001 Nana Activated = OFF
Exit Event Processing
Control Self Switch : A = OFF
Erase Event
:If Lose
Game Over
:End
:When No
Text:NanaFrown(0), Dim, Bottom
:Liboria:...
Set Movement Route: This Event(Wait)
Opacity: 140
Opacity: 130
Opacity: 120
Opacity: 110
Opacity: 100
Opacity: 90
Opacity: 80
Opacity: 70
Opacity: 60
Opacity: 50
Opacity: 40
Opacity: 30
Opacity: 20
Opacity: 10
Opacity: 0
Set Event Location: This Event, (33,5)
Set Movement Route: This Event(Wait)
:Through ON
Control Switches: :#0001 Nana Activated = OFF
Exit Event Processing
Control Self Switch: A = OFF
Erase Event
Set Movement Route: This Event(Wait)
:Through ON
:End
As seen above in the comments in the code, event page 1 has the Switch set to OFF, as my brain understands it, I want that switch to be set to ON after she is defeated so the event no longer appears on the map. However, when I switch it to ON the action press button of event page one doesn't trigger anything. Event page two is set to parallel.
Feel free to help me clean this up --- I am brand new at this. Some pictures are attached.
Thank you in advance.
Please feel free to ask any questions!
- Paw
Protected download
Protected download
Protected download
Protected download
Protected download
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...




