Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Help with simple switch problem
MeatBall
post Dec 20 2012, 11:25 PM
Post #1



Group Icon

Group: Member
Posts: 3
Type: None
RM Skill: Beginner




Hey guys, I ran into a small problem with my game. I'll try my best to describe what I intend it to do. I have an npc that challenges the hero to a fight and if the hero wins, we get an award. However, if we lose, we can have the option to try again. My winning scenario works perfectly fine but my losing scenario seems to have some problem. I made it such that when I lost, I would have a switch "lost" turned on. Afterwards my party will be completely healed and the event ends by setting another switch "try again" to on. If you try to talk to the npc again(result from "try again switch turned on), he would say something along the lines of "not giving up eh?" and the fight will commence again. However this time when you lose, I set the switch "lose" back to on and its suppose to heal my party again but that does not happen. Instead my party is left with 0 hp and if I talk to the npc again he would again say "not giving up eh?". I guess what I am trying to do is create a loop for the lose scenario such that my party gets healed and can opt to try again. But for some reason after losing and trying to change the "lose" switch on again, it doesn't run that page of events. I hope my description is too confusing and someone can help me out here. Thanks!

P.S all my switches are set to "auto start" except for "try again".

Go to the top of the page
 
+Quote Post
   
Resource Dragon
post Dec 20 2012, 11:27 PM
Post #2


Dragon has RAWR. So... RAWR.
Group Icon

Group: Local Mod
Posts: 984
Type: Developer
RM Skill: Masterful
Rev Points: 95




From what you wrote, you never turn the switch off before you turn it on again.


__________________________
click me ->Signup for Digital Hijinks!<- click me
Go to the top of the page
 
+Quote Post
   
MeatBall
post Dec 21 2012, 12:20 AM
Post #3



Group Icon

Group: Member
Posts: 3
Type: None
RM Skill: Beginner




Hey Resource, thanks for the quick reply. I did turn the "lose" switch off before turning the "try again" switch on and it still wouldn't run the event again.
Go to the top of the page
 
+Quote Post
   
MissCoriel
post Dec 21 2012, 08:19 AM
Post #4


Level 3
Group Icon

Group: Member
Posts: 42
Type: Musician
RM Skill: Skilled




Try this.. Use the "Lose switch" only to mark the change of dialoge
If you win activate a win switch that turns off the lose switch.
have 3 pages for the challenger
the first page will have no conditions and will be the first meeting
Page 2 will have the condition of Lose switch
Page 3 will have the condition of win switch

Page each battle encounter needs in it's Victory Handler the proper commands to turn on the Win switch and turn off the lose switch.


__________________________
Go to the top of the page
 
+Quote Post
   
MeatBall
post Dec 21 2012, 10:19 AM
Post #5



Group Icon

Group: Member
Posts: 3
Type: None
RM Skill: Beginner




Thanks for the suggestion MissCoriel! It is working as intended now. laugh.gif
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 06:48 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker