Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Simple Battle Abortion with a Lose
AphidRuin
post Apr 2 2011, 07:46 AM
Post #1


Level 9
Group Icon

Group: Revolutionary
Posts: 139
Type: Developer
RM Skill: Beginner




Engine: RPG Maker XP

Is it possible to abort a battle, by making it a lose?

Help is appreciated. Thanks smile.gif

This post has been edited by AphidRuin: Apr 2 2011, 07:46 AM


__________________________

Which Final Fantasy Character Are You?
Final Fantasy 7



Current Projects
First game - Shawn's Story]
Second game - TAE (Paused in order to complete Shawn's Story)

[Show/Hide] Cna uyo raed tihs?
Hleeo.Tahnk you for tkanig the tmie to raed tihs.I am bsaing tihs on the frist {oigranl} can you raed tihs?Yaeh olny smoe poelpe can sikm sneentces lkie tehse woituht hvanig to sotp.You rllaey olny hvae to konw the frist and end lttres of the wrod you are tyrnig to raed for yuor mnid to pcik tehm up esaily.Olny 55% of poelpe can raed tihs.I tihnk taht snice you konw waht you are raendig aoubt you can gesus the wrods.If you can raed tihs, palce it in yuor sgitanrue.Dnoe by Senapho.Oops.Sanehpo.


"Creative people don't say themselves as creative because they are creative." -Cheong Cheng Wen a.k.a AphidRuin
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
AphidRuin
post Apr 2 2011, 09:44 PM
Post #2


Level 9
Group Icon

Group: Revolutionary
Posts: 139
Type: Developer
RM Skill: Beginner




Sorry about my poor English. sad.gif
What I mean is that, when you make an event and a Battle Processing command in it, you can check the box 'Continue if Lose' and it will branch you something like this:

Battle Processing : Ghost*2
If win
>
If Lose
>

What I want in my game is that, after holding ground for 10 turns, I want it to abort battle in such way that the even continues with the 'If Lose' commands. If the party win the battle is game over.

But in the default engine itself, if you abort battle in such situation, the whole event repeats, For example:
Text: Blah
Battle Processing:Ghost*2
IF Win
> Game Over
If Lose
> Text: Just kidding

If I go to 'Troops' in the database, and at the battle event I make it:
Turn 10
>Abort Battle

It repeats the event from the start. Meaning Text: Blah and the battle again instead of showing 'Text: Just kidding'

Thanks for your help smile.gif



__________________________

Which Final Fantasy Character Are You?
Final Fantasy 7



Current Projects
First game - Shawn's Story]
Second game - TAE (Paused in order to complete Shawn's Story)

[Show/Hide] Cna uyo raed tihs?
Hleeo.Tahnk you for tkanig the tmie to raed tihs.I am bsaing tihs on the frist {oigranl} can you raed tihs?Yaeh olny smoe poelpe can sikm sneentces lkie tehse woituht hvanig to sotp.You rllaey olny hvae to konw the frist and end lttres of the wrod you are tyrnig to raed for yuor mnid to pcik tehm up esaily.Olny 55% of poelpe can raed tihs.I tihnk taht snice you konw waht you are raendig aoubt you can gesus the wrods.If you can raed tihs, palce it in yuor sgitanrue.Dnoe by Senapho.Oops.Sanehpo.


"Creative people don't say themselves as creative because they are creative." -Cheong Cheng Wen a.k.a AphidRuin
Go to the top of the page
 
+Quote Post
   
brewmeister
post Apr 4 2011, 05:27 AM
Post #3


Paste above Main
Group Icon

Group: Revolutionary
Posts: 408
Type: Scripter
RM Skill: Skilled




QUOTE (AphidRuin @ Apr 3 2011, 01:44 AM) *
Text: Blah
Battle Processing:Ghost*2
IF Win
> Game Over
If Lose
> Text: Just kidding

If I go to 'Troops' in the database, and at the battle event I make it:
Turn 10
>Abort Battle


With that setup, the behavior should be:

If you Win before turn 10: Game_Over
If you Lose before turn 10: "Just Kidding"
If you get to turn 10 & 'abort: Nothing. Back to map.

"Abort Battle" will use the "If Escape" branch if you select "Can Escape" in the Battle Processing event command.


__________________________
Go to the top of the page
 
+Quote Post
   
AphidRuin
post Apr 5 2011, 02:20 AM
Post #4


Level 9
Group Icon

Group: Revolutionary
Posts: 139
Type: Developer
RM Skill: Beginner




QUOTE (brewmeister @ Apr 4 2011, 09:27 PM) *
QUOTE (AphidRuin @ Apr 3 2011, 01:44 AM) *
Text: Blah
Battle Processing:Ghost*2
IF Win
> Game Over
If Lose
> Text: Just kidding

If I go to 'Troops' in the database, and at the battle event I make it:
Turn 10
>Abort Battle


With that setup, the behavior should be:

If you Win before turn 10: Game_Over
If you Lose before turn 10: "Just Kidding"
If you get to turn 10 & 'abort: Nothing. Back to map.

"Abort Battle" will use the "If Escape" branch if you select "Can Escape" in the Battle Processing event command.


I mean that, if you "Abort Battle", it will replay the autorun command from the start again instead of continuing. It is a ground-holding boss battle, thus there must not be "Escape option".


__________________________

Which Final Fantasy Character Are You?
Final Fantasy 7



Current Projects
First game - Shawn's Story]
Second game - TAE (Paused in order to complete Shawn's Story)

[Show/Hide] Cna uyo raed tihs?
Hleeo.Tahnk you for tkanig the tmie to raed tihs.I am bsaing tihs on the frist {oigranl} can you raed tihs?Yaeh olny smoe poelpe can sikm sneentces lkie tehse woituht hvanig to sotp.You rllaey olny hvae to konw the frist and end lttres of the wrod you are tyrnig to raed for yuor mnid to pcik tehm up esaily.Olny 55% of poelpe can raed tihs.I tihnk taht snice you konw waht you are raendig aoubt you can gesus the wrods.If you can raed tihs, palce it in yuor sgitanrue.Dnoe by Senapho.Oops.Sanehpo.


"Creative people don't say themselves as creative because they are creative." -Cheong Cheng Wen a.k.a AphidRuin
Go to the top of the page
 
+Quote Post
   
brewmeister
post Apr 5 2011, 10:39 AM
Post #5


Paste above Main
Group Icon

Group: Revolutionary
Posts: 408
Type: Scripter
RM Skill: Skilled




QUOTE (AphidRuin @ Apr 5 2011, 06:20 AM) *
I mean that, if you "Abort Battle", it will replay the autorun command from the start again instead of continuing. It is a ground-holding boss battle, thus there must not be "Escape option".


That is what "Autorun" is supposed to do. You need to interrupt it if you only want it to run once.

Try this:

Page 1: Autorun
Text: Blah
Battle Processing:Ghost*2
IF Win
> Game Over
If Lose
> Text: Just kidding
> Set Self-Switch B = ON
>
Set Self-Switch A = ON

Page 2: Autorun, Condition: Self-Switch A is ON
> <put your Abort commands here. this page will only run if you abort.>
> Set Self-switch C (or erase event)

Page 3: Autorun, Condition: Self-Switch B is ON
> <Put your "lose" actions here. This page only runs if you lose>
> Set Self-switch C (or erase event)

Page 4: Action Button, Condition: Self-Switch C is ON
> <after all is done, this empty page does nothing>


__________________________
Go to the top of the page
 
+Quote Post
   
AphidRuin
post Apr 7 2011, 05:01 AM
Post #6


Level 9
Group Icon

Group: Revolutionary
Posts: 139
Type: Developer
RM Skill: Beginner




QUOTE (brewmeister @ Apr 6 2011, 02:39 AM) *
QUOTE (AphidRuin @ Apr 5 2011, 06:20 AM) *
I mean that, if you "Abort Battle", it will replay the autorun command from the start again instead of continuing. It is a ground-holding boss battle, thus there must not be "Escape option".


That is what "Autorun" is supposed to do. You need to interrupt it if you only want it to run once.

Try this:

Page 1: Autorun
Text: Blah
Battle Processing:Ghost*2
IF Win
> Game Over
If Lose
> Text: Just kidding
> Set Self-Switch B = ON
>
Set Self-Switch A = ON

Page 2: Autorun, Condition: Self-Switch A is ON
> <put your Abort commands here. this page will only run if you abort.>
> Set Self-switch C (or erase event)

Page 3: Autorun, Condition: Self-Switch B is ON
> <Put your "lose" actions here. This page only runs if you lose>
> Set Self-switch C (or erase event)

Page 4: Action Button, Condition: Self-Switch C is ON
> <after all is done, this empty page does nothing>

Thanks for that. I will try it soon tomorrow. I mean thanks to both Mr. Ale Goth and Mr. brewmeister


__________________________

Which Final Fantasy Character Are You?
Final Fantasy 7



Current Projects
First game - Shawn's Story]
Second game - TAE (Paused in order to complete Shawn's Story)

[Show/Hide] Cna uyo raed tihs?
Hleeo.Tahnk you for tkanig the tmie to raed tihs.I am bsaing tihs on the frist {oigranl} can you raed tihs?Yaeh olny smoe poelpe can sikm sneentces lkie tehse woituht hvanig to sotp.You rllaey olny hvae to konw the frist and end lttres of the wrod you are tyrnig to raed for yuor mnid to pcik tehm up esaily.Olny 55% of poelpe can raed tihs.I tihnk taht snice you konw waht you are raendig aoubt you can gesus the wrods.If you can raed tihs, palce it in yuor sgitanrue.Dnoe by Senapho.Oops.Sanehpo.


"Creative people don't say themselves as creative because they are creative." -Cheong Cheng Wen a.k.a AphidRuin
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: 23rd May 2013 - 09:22 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker