Passive Effects V5.0

Ok, first look at the skill Five Finger Discount is skill id 99 goto the setup look in this hash since it is a skill

  Skill_Effects = {81 => [1, 'death'], 82 => [12,'attacks:3,skills:3'],
    83 => [13,'turns:3'], 84 => [14,'rand_turn:20'], 85 => [15, 'turns:3'],
    86 => [16, 'turns:5'], 87 => [17, 'turns:5'], 88 => [18, 'turns:5'],
    89 => [19, 'turns:5'], 90 => [20, 'time:30'], 91 => [21, 'time:30'],
    92 => [23, 'battles:3'], 93 => [22, 'battles:3'],
    94 => [24, 'turns:10,death'], 95 => [25, 'turns:10,death'],
    96 => [26, 'attacks:3'], 97 => [27, 'attacks:3'], 98 => [29],
    99 => [40, 'time:60']
  }
Expand to see the code.


and there you will find the passive effect it is using and the fade effect used in this case [40, 'time:60']

Sorry I am in a hurry

Edit and Dilute weakens the power of used items they will only restore 1 hp
Still wondering if this works with your Support Abilities (I edited too many of the default scripts so I started anew). If not, can you merge them? What I mean is

- You have all your skills in the database, passive or not
- You mark which are passive
- Then your Support Abilities lets them equip the ability which gives them that passive ability.

In this way, every Support Ability just unlocks a skill (or a set of skills) and the passive script handles the rest. Or am I just working too hard and can I get all of these effects with just Support Abilities?
Yes they should work together, you reminded me of something I should do

*goes to make a post in Support Abilities*
Now, I am curious: could you also set it up so that simply by virtue of knowing the skill the effect is applied (in that MMORPG sense of passive effects)?

I'm sure it wouldn't be too hard right?
Hi Trickster

I hope you dont mind, but I found a little problem.

With the Multiplicative Element_Rate:
Multiplies all the stats and divides by 100 ^ (size - 1) ex (-100, -100) rate will be 100

Suddently resistances are becoming a weak point ^^
With 'Advanced Targetting', I got 'Invalid Scope' error. Would you check it?
Trickster, what happen if i use your skill effects with this script here? I'm using both, but none of the passive habilities is working and i'm pretty sure that i'm not doing anything wrong (i understood very well your instructions). What's funny is that the gaem still runs but the passive effects doesn't work. Do i have to change it's order? Or something like that?
[QUOTE=arachus;193172]Trickster, what happen if i use your skill effects with this script here? I'm using both, but none of the passive habilities is working and i'm pretty sure that i'm not doing anything wrong (i understood very well your instructions). What's funny is that the gaem still runs but the passive effects doesn't work. Do i have to change it's order? Or something like that?[/QUOTE]

Skill Effects should be above this since it overwrites method skill_effect in Game_Battler
I tried to do it with your 2 demos, putting the skill effects above, but the passive effects still doesn't work. As i said, i only used the scripts in your demos. No errors ocurred, but the passive effects simply doesn't work. I tested it with your sprint passive effect. Do i have to do something different or something like that, trickster?
Hey Trick, got another bug for ya, been reported on page 2 but just wanted to bring it to your attention in case you over looked it. The passive effect script is messing with the movement speed of events and players, you can not change there speed via set move route. Just caught that one myself.
@arachus - Figure it out yet otherwise I will make a demo with both scripts in
@Neonyo - I'll look into it
Is this already compatible with Skill Effects script? I'm getting this error when I open the menu screen:

Script: 'Passive Effects' line 541: NoMethodError ocurred.
undefined method 'effect' for nil:NilClass

Line 541 is:

    return @passive.effect(n, 'maxhp')
Expand to see the code.
*bump*
Hey Trickster. I'd love to use this script, but right now I can't because something seems to be conflicting with item usage.

Any item that does anything other than heal seems to crash the game. This happens even in the demo. If you have the woman give you a Perfume, then playtest and drink the Perfume (do you drink perfume? I don't know, but whatever...) the game crashes. You get the following crash message:

Undefined method 'passive' for nil:NilClass

which relates to this line in the code:

# Damage Flag
damage_hp = battler.passive.effect(n, 'damage')

Or is it simply that ALL items must be processed through the Passive Skills script, even if they aren't marked with the passive element?
hey i have the same error as Zafrod.
but it appears when I attack an enemy.
I use Mr. Mo's ABS I hope it is compatible...
Pls help^^
Can this script make the passive skills never end? not all of them just a few
[QUOTE=Reaper*;247216]Can this script make the passive skills never end? not all of them just a few[/QUOTE]

Yes, you can specify which effect will never end. it's in the script :p
Ok thanks
Updated to Version 5.0

Code is cleaner (now uses Passive Effects Engine as a base)
Script split up into five parts
Main script, State Effects addon, Equip Effects Addon, Battler Effects Addon, Area Effects Addon
Two new fade effects (Passive Effects Engine) items and item
[QUOTE=Unrivaledneo;198600]Hey Trick, got another bug for ya, been reported on page 2 but just wanted to bring it to your attention in case you over looked it. The passive effect script is messing with the movement speed of events and players, you can not change there speed via set move route. Just caught that one myself.[/QUOTE]
I had the same problem. Deleting part 5 is a temporary fix, but life without spring shoes? Is it even worth it?
Hmm I'll work on a fix for this.
i think we make a list of possible effekts with this.
i need:
-Zombie/Undead (light-heal damage and dark-heal not)
-Element Reflector (you can send the spell to the enemy)

question: is this script compatible with bag of skill effects?
or can someone include this effects?
for Zombie undead status you can probably do something like

"healing:*-1"
"elem_resist:=100,elem_resist:=-100"

something along those lines would do

as for Element Reflector you can't do that

they should in theory if you placed Passive Effects below Skill Effects if you have a problem send me a demo with both of them and explain the problem with them
Long time no see you Trickster (hope you're fine). Last time i saw this script was in it's 2.0 version, i guess. Now that i have this new version (and believe me, it's
incredible the compatibility work that you guys did) i'm having the following "problem": the first time i putted this new version in my project, the damage caused in battle wasn't showing. Ok, i changed the order of the passive skills to be only below SDK, MEthod and Library and the new RSC(new for me, of course). Since i'm using Dervv's animated battlers, i thought maybe something is his cbs was making this problem. In fact, i guess it did, because this problem disappeared. But now all my skills damage aren't visible. Do you know what could be causing it?
Hey Trick, I once again have a question for you.

Would it be possible to set up a passive effect whereby a regular attack would call a common event, depending on which effect you had?

I don't think it would be that difficult to code, but I have 0 knowledge of the syntax of ruby like I said before.

I've tried experimeting with this idea in the past but I had quite a number of bugs, but I think your passive effects script is the key to getting this right.

Thanks in advance.
arachus;272274 wrote:
Long time no see you Trickster (hope you're fine). Last time i saw this script was in it's 2.0 version, i guess. Now that i have this new version (and believe me, it's
incredible the compatibility work that you guys did) i'm having the following "problem": the first time i putted this new version in my project, the damage caused in battle wasn't showing. Ok, i changed the order of the passive skills to be only below SDK, MEthod and Library and the new RSC(new for me, of course). Since i'm using Dervv's animated battlers, i thought maybe something is his cbs was making this problem. In fact, i guess it did, because this problem disappeared. But now all my skills damage aren't visible. Do you know what could be causing it?


I don't know maybe try sending a demo?

Zopharr;272581 wrote:
Hey Trick, I once again have a question for you.

Would it be possible to set up a passive effect whereby a regular attack would call a common event, depending on which effect you had?

I don't think it would be that difficult to code, but I have 0 knowledge of the syntax of ruby like I said before.

I've tried experimeting with this idea in the past but I had quite a number of bugs, but I think your passive effects script is the key to getting this right.

Thanks in advance.


umm making a script call a common event is the easy way out, just what is it that you want to happen when a regular attack is done and I will try to code that in
Do i send it directly to you, Trickster? Or do i post it here? I guess only scripts.rxdata would be necessary, right? Or all files? I've never send any file here in rmxp.org.
Well I'm going to be coding several common events for different skills (I don't really know what they all will be yet, heh.)

For an example: Create a spell that inflicts a certain state on the caster. Whenever this caster attacks, the script would read something similiar to the passive effects thing, and having this passive effect would result in the call to the common event.

Doing this though, would require that each specific state have its own common event. I'll give an example:

-Caster casts a spell that inflicts a state that Ill call Healing Proc for now. Casting it on himself, each time he attacks (Would be nice if it would work for regular attacks OR physical skills, but I'm not asking for the cure for cancer here), it calls a common event. The common event would then have a chance heal each party member for a certain amount, based on the variables I set for the skill.

Also, I'm trying to figure out a way for skills to do a two in one effect. Deal damage to an enemy AND heal the caster/party for a small amount or something.



Also, if you don't mind me asking, one more thing: Is there a way to just write a small line of scripting to affect the target of a common event? Currently, the system is terrible at letting you select a target. For example, I created a skill that when used, deals no damage itself (We'll call it Electric Shock, for now) but calls a common event. The common event loops 20 times, playing a 2 frame animation and dealing a small amount of damage each time, giving the illusion of being shocked (In 2 seconds [ignoring lag] 20 damage numbers would fly up on the target). The sytem works great.. but I can't set the damage to be inflicted on the last target! The deal damage function requires you to select the target index, and doesn't have a "last target" option.

You think there is anything that can be done about this?

Thanks, once again, for your time.
@Zopharr
As for this specific "eletric shock" Zopharr, you could try using Seph's Multi attack. I'm actually using it and it's perfect for this kind of spell. Ah, it works even for heal spells.
[QUOTE=arachus;272893]@Zopharr
As for this specific "eletric shock" Zopharr, you could try using Seph's Multi attack. I'm actually using it and it's perfect for this kind of spell. Ah, it works even for heal spells.[/QUOTE]

Ahh, alright, thanks. I'll check it out.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=9411