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.
(VX) Skill that buffs stat for 1 turn, (pac engine)

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 66
RMRK Junior
So, I have an idea for a skill "Shield" that acts like the defense action, but can target either just the user, or a friendly ally, but buff the users Defense (or other applicable stat/stats) by a specified amount for the duration of 1 turn of battle.

I am using the Pac Engine, and it has some useful capabilities, including these under PAC Item, Skill, Equip Addons:
Code: [Select]
# <target temp param: +x>
# <target temp param: -x>
# Placed in an item's or skill's notebox, these give a temporary boost or fall
# to the specified parameter of the target of the skill or item until the end
# of the battle. Replace param with maxhp, maxmp, atk, def, spi agi, hit, eva,
# cri and odds (and dex or res if you have the scripts). To make several
# effects, use multiple tags.
#
# <user temp param: +x>
# <user temp param: -x>
# These do the same as <target temp param>, only for the user of the skill.
# Enter them the same as target temp param tags.
#
# <clear temp stats: user>
# <clear temp stats: target>
# Will clear the temporary boosts and falls of either the user or target,
# respectively.
#

What I can't figure out is how to make it end at the end of turn!

Now my idea so far is to use either <target temp param: +x> or <user temp param: +x> (depending on the nature of the skill) in the skill note box to buff the skill of the user, and to set the Speed to +100 to make it high priority with a message saying "{User} uses magic to defend!"  But I'm stumped with how to get it to deactivate at the end of the round.

My first thought was to have the skill call a common event that would make another skill be used that would play at the end of the round that targets the same target and has <user temp param: -x>, <user temp param: -x>, or <clear temp stats: user>/ <clear temp stats: target>.  The problem is if I have the call common event use the skill, it happens before the buff skill happens.  I can't figure out how to have the skill that cancels the buff be the LAST ACTION of the round.  Should be easy, just can't figure it out.

EDIT:  Just realized states can make this easier, as I can make a state last 1 round, but states only buff skills by %, not add/subtract an integer.  any ideas?
« Last Edit: June 05, 2012, 07:56:24 PM by evildrspock »
My Soundcloud:

RMRK Forum - Musical "Works in Progress"
I'm a Musician (Sonar X1, Piano, Guitar, game music inspired), and a visual artist/animator (Adobe Photoshop/After FX).
My musical inspirations include Sigur Ros, Pat Metheny, Andy McKee, Tool, Yokko Kanno, Yasunori Mitsuda, etc, to name a variety.
My favorite RPG series is Breath of Fire.
I love RPG's, & enjoy dabbling with RPG Maker, & am considering projects to start someday.