Battle Help Auto Actor

Inuyasha36c

Villager
Member
Joined
Jul 19, 2016
Messages
26
Reaction score
8
First Language
English
Primarily Uses
RMMV
Hello everyone I'm in a bind and need help. I am trying to have a mini boss fight with one character being controlled by a human
and the other will be repeating the same command which is guard for the whole fight well until the human controlled is low on HP then battle ends. making the other character guard on their turn for the whole fight is what I'm stuck on? Please Help!
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
Go to Database.
Go to Enemies.
Change Maximum, add one.
Go to that new enemy.
Choose graphic.
Action Patterns: Guard Always.


Go to Database Troops.
Add that NEW Enemy.
Troops has Eventing inside, thus you can check each turn HP to end a battle.
 

Inuyasha36c

Villager
Member
Joined
Jul 19, 2016
Messages
26
Reaction score
8
First Language
English
Primarily Uses
RMMV
Go to Database.
Go to Enemies.
Change Maximum, add one.
Go to that new enemy.
Choose graphic.
Action Patterns: Guard Always.


Go to Database Troops.
Add that NEW Enemy.
Troops has Eventing inside, thus you can check each turn HP to end a battle.
I tried and I get all of the characters fighting images on the screen by the way I'm using SV Actors. so my first actor is controlled by a human but the second actor is going to be auto guarding. sorry I was not clear.
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
Oh! This is really different. So you want party members to auto guard. That's a different issue and I am not so familiar with the SVB yet.
 

Inuyasha36c

Villager
Member
Joined
Jul 19, 2016
Messages
26
Reaction score
8
First Language
English
Primarily Uses
RMMV
Oh! This is really different. So you want party members to auto guard. That's a different issue and I am not so familiar with the SVB yet.
Yes that's right my party member will auto guard. well thank you anyway I really appreciate it!
 

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
710
Reaction score
228
First Language
English
Primarily Uses
First you need this plugin and this plugin

Copy your gaurd state. In this new state make it where the person can't move.
Then in the notetag box put this in the state:
<Custom Turn End Effect>
var crisis = x;
if(user.hpRate() < crisis * 0.01){
user.removeState(y);
}
</Custom Turn End Effect>

Replace x with the percentage of max hp you want for this to be active. Ie when hp is less than 25% max health.
And y is the id of this new gaurd state.
The code says if the inflected hp rate ie the percent of hp, they have in comparision with crisis times 0.01, and the hp rate is less than crisis, then it's true and do what's in the conditional branch which is remove the state from the user.

If you want it where it's a set hp amount like at 75 Hp it get's removed in thge parenthesis use this code instead:
user.hp < crisis


Now in the troop command, use add state event command(the one that's in event tab 1 under actor) and add that new gaurd state to the player that's auto guarding.
And make it so this happens in Turn 0.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,242
Members
137,609
Latest member
shododdydoddy
Top