Is there a way to alter the properties of "Defend"?

Status
Not open for further replies.

Azrik

Villager
Member
Joined
Jun 19, 2015
Messages
28
Reaction score
1
First Language
English
Primarily Uses
I'm trying to find out if there is a way to add or change the properties of the "defend" command. For instance changing how much damage it mitigates or adding some type of healing effect to it.
 
Last edited by a moderator:

orochii

Abomination of life, or life itself.
Veteran
Joined
Apr 29, 2012
Messages
678
Reaction score
421
First Language
Spanish
There is a way, though it can be troublesome.

For each character, you need a battle event. This event will have the "Hero X uses the Defend battle command". And that's it. After that, you can manually raise that character's HP, and you can try giving it an altered state too, and make that state double its defense (give it recovery after 0 turns 100%, although I think this part will not work properly...).
 

Azrik

Villager
Member
Joined
Jun 19, 2015
Messages
28
Reaction score
1
First Language
English
Primarily Uses
Ok, So I need to set a battle event. Thanks I'll try that.
 

Azrik

Villager
Member
Joined
Jun 19, 2015
Messages
28
Reaction score
1
First Language
English
Primarily Uses
I don't suppose there's a way to set a common event for this rather than setting it for every single troop is there? Also is there a way to set it to increase health by a % rather than a set number?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,512
Reaction score
12,002
First Language
English
Primarily Uses
RMVXA
Azrik, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

If you want to add something, simply edit your post.
 

Azrik

Villager
Member
Joined
Jun 19, 2015
Messages
28
Reaction score
1
First Language
English
Primarily Uses
Sorry bout that. I'll keep that in mind.
 

orochii

Abomination of life, or life itself.
Veteran
Joined
Apr 29, 2012
Messages
678
Reaction score
421
First Language
Spanish
Even if its a common event, it would not work. The most important part is the trigger, which is "when X character used Defend command". That's why this can get very troublesome. Although you just need to do all character's events, then copy-paste them to Every Single Enemy formation. Tedious, but it's plain old copy paste, no need to change anything.

As for the percentual recovery, you can calculate it by using variable operations (set variable to hero's max HP, multiply it by your desired percentage, then divide it by 100). Then use that result as value for recovery.
 

Azrik

Villager
Member
Joined
Jun 19, 2015
Messages
28
Reaction score
1
First Language
English
Primarily Uses

MirageV

Veteran
Veteran
Joined
Apr 5, 2012
Messages
47
Reaction score
43
First Language
English
Primarily Uses
You can always check on 'Mighty Guard' in the character database tab. It will divide damage by 3 instead of 2 if I recall correctly. But otherwise, you will need to use events to create additional defend features such as healing HP or MP, or anything else. Just make sure you turn on Mighty Guard for all the characters you want to have it.
 
Last edited by a moderator:

Azrik

Villager
Member
Joined
Jun 19, 2015
Messages
28
Reaction score
1
First Language
English
Primarily Uses
I tried adding a state to heal the player for 5% of their health and for the effect to expire after 1 turn. However the effect never seems to expire. How can I fix this?
 

MirageV

Veteran
Veteran
Joined
Apr 5, 2012
Messages
47
Reaction score
43
First Language
English
Primarily Uses
I wouldn't use a state for that. It's rather clunky as you've experienced. Instead of doing that, try this.

In the battle event, when a character defends, run a variable operation of this equation: Max HP * Percentage / 100 = Result

So if Max HP is 124, multiplying that by 5 and then dividing it by 100 will get you 6.2, rounded down to 6. That's 5% of 124. 

In RPG Maker 2003, you would simply take a variable and store the defending character's Max HP. Then you'd multiply that same variable by 5, and then you'd divide it by 100. And then with the result, you run the Change HP command and increase the character's HP by the value of the variable. There you go. That's your five percent without messing with states.

Hope that helps.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
6,114
Reaction score
5,841
First Language
English
Primarily Uses
RMVXA
EDIT: Nevermind, sorry!
 
Last edited by a moderator:

MirageV

Veteran
Veteran
Joined
Apr 5, 2012
Messages
47
Reaction score
43
First Language
English
Primarily Uses
RPG Maker 2003 does not handle guard with a skill.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
6,114
Reaction score
5,841
First Language
English
Primarily Uses
RMVXA
RPG Maker 2003 does not handle guard with a skill.
Sorry, saw this at the top of the "Help" section and forgot that the Ace subforum is no longer at the top of the list!  Thanks for the catch.
 

Azrik

Villager
Member
Joined
Jun 19, 2015
Messages
28
Reaction score
1
First Language
English
Primarily Uses
Ok, nvm I figured out how to get it to work with a state. I just had to set the chance of recovery to 100%. Thanks for the replies though.
 
Last edited by a moderator:
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Introducing the premium bagel
I have a micro economics midterm tomorrow. I'm not worried.
Should be a...small exam :kaojoy:
While was working on one of the monsters that will appear in my horor game I may have made harold a Lovecraftian monster. (I used his head to keep things aligned.)
Finally got my website fixed and the security sorted so it's been a productive day. Can I go to sleep now? I mean... I don't need to work right?
It's always a good idea to refresh yourself on what your plugins do. I'm working on a map with opening walls, and I was about to tear my hair out over how much image editing and hand-constructing of autotiles I'd have to do, when I looked again and saw @Shaz 's Tile Changer could copy areas from another map.

Forum statistics

Threads
115,924
Messages
1,094,084
Members
151,182
Latest member
ricansuave
Top