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.
[VXA] Need a Preemptive Strike script

0 Members and 1 Guest are viewing this topic.

*
Rep: +0/-0Level 49
RMRK Junior
So the title says it. In RPG Maker 2k3 you had the ability to have a battle start with a preemptive strike. VX and VX Ace do not have this ability. So what I want is the ability to have a battle start with a preemptive strike based on a condition, In this case the baddies are roaming on the map and if I walk into them a normal battle starts, what I want to happen is when I press A on them it starts the fight with either the enemy taking 20% damage or skipping one turn. Either of those would be fine. I would prefer the turn skip option but whatever. I have looked for a way to do this and couldn't find one :(

Thanks
    ~Ansem

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Well, pre-emptive strikes and surprise attacks are still possible in VX and VXA; they are just random - if the party's agility is greater than the enemy's then there is a 5% chance and 3% otherwise.

I take it that you want the ability to specify that there should be a pre-emptive strike prior to a battle processing event. I can do that.


EDIT::

Alright, I wrote the script, and have posted it here: http://rmrk.net/index.php/topic,47440.msg539128.html#msg539128

Please let me know if you are happy with it.
« Last Edit: December 29, 2012, 06:46:21 PM by modern algebra »

*
Rep: +0/-0Level 49
RMRK Junior
Thanks Modern Algebra! This is exactly what I wanted and it works brilliantly. Again thank you so much!