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.
[RESOLVED] Always Escape

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 82
Hey there, all... quick question here.

I'm trying to set up a script or do an edit which enables the party to always escape, 100% chance, unless the "Escape Allowed" script is set to off, of course.

Had no luck so far... anybody can help out?

Thanks,
« Last Edit: October 13, 2009, 03:32:48 AM by MarkDarkness »

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Randomizer - GIAW 11Gold - GIAW 11 (Hard)Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Programming)2012 Best RPG Maker User (Mapping)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Kindest Member2011 Best Veteran2010 Most Deserving Of A Promotion2010 Best RPG Maker User (Technical)
Is it that you want the party to always escape 100% regardless of agility just anytime you select the escape button, or only able to escape 100% after some sort of set conditions, like a switch being on or a skill being used?
« Last Edit: October 09, 2009, 04:52:16 PM by Zylos »




**
Rep:
Level 82
100% escape chance, unconditionally.

Ideally I'd like a variable to control it in percentages, removing the involvement of AGI, but since I didn't find any way to do that, 100% chance will do just fine.

**
Rep:
Level 83
That should be quite short, I'll write ut for you, when I get home from work.
Also with the Percentage of successfull escape shouldn't be a problem.  ;D
[...]And they feared him.
He understands that cruelty arises from opportunity![...]

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Randomizer - GIAW 11Gold - GIAW 11 (Hard)Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Programming)2012 Best RPG Maker User (Mapping)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Kindest Member2011 Best Veteran2010 Most Deserving Of A Promotion2010 Best RPG Maker User (Technical)
Having it always be 100% chance is pretty easy, it's just one line at Scene_Battle 2, line 113. Change it to "success = rand(100) < 50 * 3", and voila, they will always escape if they're allowed to.

OR

If you want it to be percent chance, change that line to "success = rand(100) < $game_variables[5]" with the variable 5 being replaced by the ID of what variable you want to use. It'll select a random number from 0-100, and if that number is lower than your percent variable, you can escape. I hope that's what you meant, anyway.




**
Rep:
Level 82
Thanks a whole lot, guys! :) That really helped.