can i get some help fixing this shared pain effect script?

this is an old script i wanted to use but i wasnt able to find the 1.6 version of effect manager meaning there is some errors when using it that i do not know how to fix by myself if someone could help me that would me amazing since this is a feature that is hard to find
this is an old script i wanted to use but i wasnt able to find the 1.6 version of effect manager meaning there is some errors when using it that i do not know how to fix by myself if someone could help me that would me amazing since this is a feature that is hard to find
Hmmm i think i'm the one who wrote the "share the pain" effect addon long time ago...
i think the Hime updated the Effect manager several times after i made that effect... but reading the new updated code... i see that the general framework should not changed... i did not have ACE installed anymore in my laptop so i cannot sure what the problem you encountered... maybe you can explain it a little bit...

but after quick read of the code... my highest suspicion is the "registering method" for the effect manager change thus might cause little incompatibility...

maybe try modifying this line in the share the pain addon code:
Code:
module Effect
module Share_The_Pain
    Effect_Manager.register_effect(:share_the_pain)
end
end
to
Code:
module Effect
module Share_The_Pain
    Effect_Manager.register_effect(:share_the_pain,2.6)
end
end
basically add the Effect Manager current version number as the second value in register method...

hope this help.
i still get this error for some reason
1619716029576.png

EDIT: ok so i tested it on a new project and it dosent crash but the thing its supposed to do wich is share the damage is not working so i thing there is something else wrong going on
the scripts im using btw
1619717955999.png

EDIT 2: i managed to get it to not crash the game i was probably writing the thing in the notes of the status wrong , the thing is it still wont share the damage i tried all digits from 0.1 to 1 as the script said but nothing happened and only one enemy took damage instead of spreading it to the party and other enemies
Hmmm i think i'm the one who wrote the "share the pain" effect addon long time ago...
i think the Hime updated the Effect manager several times after i made that effect... but reading the new updated code... i see that the general framework should not changed... i did not have ACE installed anymore in my laptop so i cannot sure what the problem you encountered... maybe you can explain it a little bit...

but after quick read of the code... my highest suspicion is the "registering method" for the effect manager change thus might cause little incompatibility...

maybe try modifying this line in the share the pain addon code:
Code:
module Effect
module Share_The_Pain
    Effect_Manager.register_effect(:share_the_pain)
end
end
to
Code:
module Effect
module Share_The_Pain
    Effect_Manager.register_effect(:share_the_pain,2.6)
end
end
basically add the Effect Manager current version number as the second value in register method...

hope this help.
it only contains the latest version of effect manager
hmm try this:


it should work with Hime Effect Manager 2.6
i also modified the effect a little bit so when attacking enemy with share the pain state it not deal extra damage to the attacked enemy...

also make sure you give the share the pain state to ANY BATTLER you want to share the pain...

ex:
you have a boss that share the pain to all party member
you must give share the pain state to the boss AND all party member
basically it will share the pain with all other battler with the same state.

i remember i create it that way so you can make multiple scenario:
example scenario:
1. Boss capture on of the actor... then when you damage the boss you also damage the actor
-> give boss share the pain state... and give ONE actor share the pain state
so only that actor share the pain with the boss

2. Boss create a barrier that reflect all damage to all party member
-> give boss share the pain state... and give ALL party share the pain state
so every party member also share the pain with the boss

3. Actor use skill to all enemies and give share the pain state for X turn
thus a damage to one enemy will deal splash damage to other enemies.
-> give a skill that give share the pain state to all enemies

and so on...

hope this help...

Original thread: https://forums.rpgmakerweb.com/threads/can-i-get-some-help-fixing-this-shared-pain-effect-script.135994/