Hello,
I would like help to do a skill that is found in WOW:
It's this one:
I've done it two ways but neither one works for me.
Plugins installed: All Yanfly and ICFSoft plugins.
1st way:
My basic attack has for action sequence this:
<target action>
if user.speed == 3 && (user.isStateAffected(344))
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
wait for effect
common event: 301
else user.speed == 2 && (user.isStateAffected(344))
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
common event: 301
wait for effect
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
wait for effect
common event: 301
end
</target action>
The speed determines how many hits the user will give to his target.
State 334 is the Seal of Righteousness.
The common event is the Seal of Righteousness effect which has the following sequence of actions:
<target action>
action effect
</target action>
The problem with this method is that when the player attacks (with two speed) and has state 344 he attacks once, the common event starts and does damage and then the player returns to his original position and then repeats the same attack cycle a second time.
I don't want him to go back to his original position until he does all his attacks and common events but I think that's impossible because of the common event.
My second method is this:
<Post-Damage Eval>
if (user.isStateAffected(344)) {
target.gainHp(-6 - (user.care * 0.43));
}
</Post-Damage Eval>.
<target action>
if user.speed == 3 && (user.isStateAffected(344))
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
wait for effect
else user.speed == 2 && (user.isStateAffected(344))
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
common event: 301
wait for effect
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
wait for effect
end
</target action>
Additional damage is calculated in relation to <Post-Damage Eval>.
The problem is that I have no control over the type of damage, I want the extra damage to be sacred damage and the extra damage to be separate from the basic attack, a pop up for each.
Do you have any idea how I can inflict extra Holy damage when the character has the Seal of Righteousness state and does a basic physical attack while displaying the attack damage and the extra Holy damage separately?
Thanks for your help and sorry for my English.
I would like help to do a skill that is found in WOW:
It's this one:
I've done it two ways but neither one works for me.
Plugins installed: All Yanfly and ICFSoft plugins.
1st way:
My basic attack has for action sequence this:
<target action>
if user.speed == 3 && (user.isStateAffected(344))
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
wait for effect
common event: 301
else user.speed == 2 && (user.isStateAffected(344))
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
common event: 301
wait for effect
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
wait for effect
common event: 301
end
</target action>
The speed determines how many hits the user will give to his target.
State 334 is the Seal of Righteousness.
The common event is the Seal of Righteousness effect which has the following sequence of actions:
<target action>
action effect
</target action>
The problem with this method is that when the player attacks (with two speed) and has state 344 he attacks once, the common event starts and does damage and then the player returns to his original position and then repeats the same attack cycle a second time.
I don't want him to go back to his original position until he does all his attacks and common events but I think that's impossible because of the common event.
My second method is this:
<Post-Damage Eval>
if (user.isStateAffected(344)) {
target.gainHp(-6 - (user.care * 0.43));
}
</Post-Damage Eval>.
<target action>
if user.speed == 3 && (user.isStateAffected(344))
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
wait for effect
else user.speed == 2 && (user.isStateAffected(344))
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
common event: 301
wait for effect
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
wait for effect
end
</target action>
Additional damage is calculated in relation to <Post-Damage Eval>.
The problem is that I have no control over the type of damage, I want the extra damage to be sacred damage and the extra damage to be separate from the basic attack, a pop up for each.
Do you have any idea how I can inflict extra Holy damage when the character has the Seal of Righteousness state and does a basic physical attack while displaying the attack damage and the extra Holy damage separately?
Thanks for your help and sorry for my English.