RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
is there a way to get a characters death to trigger abort battle?

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 87
Hello i am trying to figure something out in rmxp. I'm using gubids tactical battle system and i know how to set it so if one actor dies its a failure.  But i want it to resuslt in failure if someone else dies.  Not if they both die ine the battle or what i mean is they wouldnt both have to die to trigger it..  But either of them could trigger it.  i don't really know what i'm doing and would appreciate help. i thought maybe there was  a way for the death of a character to trigger abort battle but i dont know how to set that up.
« Last Edit: May 24, 2011, 08:33:03 AM by bum199 »

*
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Best IRC Quote2014 Zero to Hero2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
1. Set a variable to each of the characters' HP through the control variables command.
2. Set a conditional branch in your battles to check if any of the variables are equal to 0.
3. Inside the conditionals make the command to exit the battle. Make sure the event is parallel process running whenever a battle is happening. An easy way to do this is have a parallel process common event running with a switch trigger that you activate whenever a battle is happening, and turn off when it ends.
it's like a metaphor or something i don't know

**
Rep: +0/-0Level 87
sorry for my noobishness but  how would i do that?

*
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Best IRC Quote2014 Zero to Hero2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
Go into the database and open up the common event tab. Make a new one, and make it 'Parallel Process' and set the switch trigger to one that you haven't used yet. In event commands, you'll see the control variable option on the first page. Go into it, and set 1 variable to equal each actor's HP. There is an option for this. This means if you have 4 actors, you'll need 4 variables.
Next, make a conditional branch (also on the first page in event commands) to check if one of the variables is equal to 0. That option is the second one on the first page of the conditional selections. Uncheck the else box, you won't be needing it. Inside the branch, run an 'Abort Battle' or 'Gameover' command as you deem fit. Make a branch for each of the variables.
it's like a metaphor or something i don't know

**
Rep: +0/-0Level 87
i think i understood all that except how to set variables to hp and how to check the variable after that.advice would be appreciated.
« Last Edit: May 24, 2011, 09:41:25 AM by bum199 »

*
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Best IRC Quote2014 Zero to Hero2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
I have attached an example to help you figure it out. This is the control variables window.
it's like a metaphor or something i don't know

**
Rep: +0/-0Level 87
ok when i check if the variables are eqal to 0 do i chck constant or variable? i think i understand now
« Last Edit: May 24, 2011, 09:54:20 AM by bum199 »

*
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Best IRC Quote2014 Zero to Hero2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
it's like a metaphor or something i don't know

**
Rep: +0/-0Level 87
apparently i set the branches up wrong i think.

*
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Best IRC Quote2014 Zero to Hero2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
It should be set up:
Code: [Select]
@>Conditional Branch: Variable [XXXX: Actor HP] == 0
    @>Abort Battle
    @>
 :  Branch End
If you're having trouble setting up the branch itself, there's another attachment.
it's like a metaphor or something i don't know

**
Rep: +0/-0Level 87
is this all supposed to be on one event page? i have it split up in 2 right now

*
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Best IRC Quote2014 Zero to Hero2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
One page, common event, parallel process. You'd have to activate it by turning on the trigger switch though. The reason you need a parallel process is because you want to constantly update all of your HP variables.
it's like a metaphor or something i don't know

**
Rep: +0/-0Level 87
i have no idea what im doing wrong. it still takes both actors deaths. heres a screen of the event maybe that shows what im doing wrong. i can post the common event pic too if you like. never mind i found  a way.

[attachment deleted by admin]
« Last Edit: May 25, 2011, 11:52:25 AM by bum199 »