07-05-2014, 06:58 PM
Hm I need to test it, but Im 100% sure that it wont work becasue the code itself is bugged as I noticed. I tried to modify the script and edit it but it wont work. I only get errors.
Cant you download the demo I put below on the beggining. Can you try to put the script above and check wheither it works.
this is the easies way to configurate it
Counter_Setting['State'][91] = {
{'type' => 4} => {'type' => 0, 'wait' => false},
# Counter any physical attack and target waits until action ends.
#{'type' => 2, 'condition' => 'target.in_danger?'} => {'type' => 2, 'id' => 1, 'cost' => true},
# Counter against magic using potions if the battler hp is in danger
# {'type' => 4, 'condition' => 'damage.numeric? and damage > 1000'} => {'type' => 1, 'id' => 1, 'cost' => true},
# Counter any attack that can deal more than 1000 damage using Cure in him/herself
}
if an enemy or an actor is inflicted with the status with the 91 he will counterattack if hes attacked no matter skill or just simple attack.
this is why I want to make a counterscript via condinational branch because the script doesnt work.
i tried this code:
$game_troop.enemies[1].current_action.target_index == $game_actors[17]
as an condinational branch
But I get undefined method errors of currenct_action
Cant you at least define the method currenct_action and the target_index for me.
I think this would really help me alot and maybe solve my problem
Cant you download the demo I put below on the beggining. Can you try to put the script above and check wheither it works.
this is the easies way to configurate it
Counter_Setting['State'][91] = {
{'type' => 4} => {'type' => 0, 'wait' => false},
# Counter any physical attack and target waits until action ends.
#{'type' => 2, 'condition' => 'target.in_danger?'} => {'type' => 2, 'id' => 1, 'cost' => true},
# Counter against magic using potions if the battler hp is in danger
# {'type' => 4, 'condition' => 'damage.numeric? and damage > 1000'} => {'type' => 1, 'id' => 1, 'cost' => true},
# Counter any attack that can deal more than 1000 damage using Cure in him/herself
}
if an enemy or an actor is inflicted with the status with the 91 he will counterattack if hes attacked no matter skill or just simple attack.
this is why I want to make a counterscript via condinational branch because the script doesnt work.
i tried this code:
$game_troop.enemies[1].current_action.target_index == $game_actors[17]
as an condinational branch
But I get undefined method errors of currenct_action
Cant you at least define the method currenct_action and the target_index for me.
I think this would really help me alot and maybe solve my problem