Passive Effects V5.0

This script melts my brain 0_o

I like what it does tho, ill implement it later :P
[QUOTE=XP Learner;168194]I also have a couple of more ideas inspired by playing certain RPG Games.

How about Anti Status Skills. Basically prevents certain bad status from occuring for example an Anti-Poison which completely prevents Poison.

Or a Poison Resist basically decreses the chance to be hit by the poison abnormal status. by 10% up to a total of 50% [/QUOTE]

Ok, Added I forgot to implement that one in 3.0

Quote:
Also how about level up bonus skill

Basically for example Bonus STR which allows extra +1 STR when the character levels up.

Also how about monster slayer type passive skills. which allows the user to do more damage, or reduce the damage from a certain type of monster.


Well that would be a bit harder to implement but we will see
have some suggestions (i hope they are on the version,if not, i hope on the next :P)

Skill Maestry - Gives a rate% bonus dmg to the skillid Skill (syntax: skillid:ratedmg).

Weapon Maestry - Gives a rate% or amount to a certain weapon type damage (for this, the weapon type must be especified with attributes, e.x: for Axe Maestry, all axe-type weapons must have an attribute that specify that weapons are axes. syntax: attrid:amount (for rate bonus, a '%' muts be added in the end))

thats all i can think for now.
Can I report an error message?

I seem to get the following after I've added the scripts in. I copy/pasted them in order above main in my own game, But I get the following error.

Script: 'Passive String' line 23: NoMethodError occurred.
undefined method 'each_pair' for ["maxhp","+amount"]:Array

Any help would be greatly appreciated, Thank you.
That means that you don't have th each pair method for the Array class which means that you don't have the Method and Class Library which will give you that method
Well I've done some work with this and choose a few of the ideas given and came up with more of my own this isn't the final V4.0 just a beta version of it from here until I remove this from a beta state I may add a few more to it but here is what I did

Cleaned up code by ALOT there are many changes in some parts of the script

Added Effects
---------------
Exp Gained in Battle
Gold Gained in Battle
Critical Hit
Skill Sp Modifier
Attack Damage
Skill Damage
Item Damage

Inflict (like enchant but with a state)
Removal (like enchant but it removes a state)
State_resist
State_power

Shop_Buy
Shop_Sell

Additional Tags were added
--------------------------
Actor, Class, Enemy, Troop, Battleback, Map

I'm going to bed now I've been working on stuff all night I would like for someone to test this new stuff out (sorry that I didn't setup any of the new stuff but it's just like the other 32 examples in the demo nothing new) and tell me if it works, but if not it's okay

EDIT: I broke the skill system I WISHED SOMEONE WOULD HAVE SAID SOMETHING walks off annoyed
will reupload a working demo with more examples later
Ok Let me try this again

Well I've done some work with this and choose a few of the ideas given and came up with more of my own this isn't the final V4.0 just a beta version of it from here until I remove this from a beta state I may add a few more to it but here is what I did (And because of the bugs last time that made the demo unplayable I added alot more to it the ones in Bold are new)

Cleaned up code by ALOT there are many changes in some parts of the script

Added Effects
---------------
Exp Gained in Battle
Gold Gained in Battle
Critical Hit
Skill Sp Modifier
Attack Damage
Skill Damage
Item Damage
Attack Defense
Skill Defense
Item Defense
Attack Healing
Skill Healing
Item Healing
Attack Healer
Skill Healer
Item Healer
Healer
Defense

Inflict (like enchant but with a state)
Removal (like enchant but it removes a state)
State_Resist
State_power

Shop_Buy
Shop_Sell

Additional Tags were added
--------------------------
Actor, Class, Enemy, Troop, Battleback, Map

I've also added a few examples but not an example for each of them Enjoy (and yes the demo works this time)
I really like this script Trickster and i have sugestion (not the effect) several way skill will active like :

- Delayed Effect : Effect will active few turn/frame after cast into a character
- After effect : After Passive skill wear off, inflicted one effect for few turn/frame to user.
- Limited use : One passive skill can cast one times into a character until effect is wear off.

I hope this can be implented
Quote:
- Limited use : One passive skill can cast one times into a character until effect is wear off.


Already implemented

   code:(str)
     a String two effects with the same code can't be added (advanced)
Expand to see the code.


If you give an effect a code then that implies that you can't use it on yourself twice

Could you explain the other two, I don't understand what you mean
My English not that good so im sorry if i cant explain well.

- Delayed Effect : After skill is casted, the effect not active right away, but after few turn/frame the effect will active.

- After effect : After Passive skill effect wear off, a state like poison,stun will be inflicted to user of the skill.
Ahh, okay I will look into it when I get back to work on this


Bug Reports anyone?
I've been wanting to test this out since it came out but I've been pretty busy. I'm hoping to take it for a spin and bug testing it.

Quote:
Will Have to Merge RPG::Skill#extra if using in conjuction with my Skill Effects
Is this an easy merge? I plan to use both scripts myself.

(pretty much the only scripts I haven't implemented in my game yet are passive effects, skill effects, and script effects, and I'm hoping all three are compatible together)
I plan to use a good deal of Trickster's scripts myself (between those and his ever helpful advice he's landed a good spot in the credits), so I'm wondering if Passive Effects works well with Equippable Abilities.

IE. Instead of writing in the effect in Abilities.rxdata, can the ability enable a skill that's flagged as passive? And if so, is the skill listed from the skill window when you're in combat? I'd test it out myself but my Scene_Equip and Scene_Professions are running slow (the cursor blinks at the speed of none) and I've been busy trying to figure out how to optimize it.
[QUOTE=nellshini;172826]I plan to use a good deal of Trickster's scripts myself (between those and his ever helpful advice he's landed a good spot in the credits), so I'm wondering if Passive Effects works well with Equippable Abilities.

IE. Instead of writing in the effect in Abilities.rxdata, can the ability enable a skill that's flagged as passive? And if so, is the skill listed from the skill window when you're in combat? I'd test it out myself but my Scene_Equip and Scene_Professions are running slow (the cursor blinks at the speed of none) and I've been busy trying to figure out how to optimize it.[/QUOTE]

Yes I can code that into the abilities script, give me a few hours for the code for it

Quote:
Is this an easy merge? I plan to use both scripts myself.

(pretty much the only scripts I haven't implemented in my game yet are passive effects, skill effects, and script effects, and I'm hoping all three are compatible together)


Well Wait for the New version of the skill effects, I changed the system entirely but wait for the new version
i have new thing for the next version:

(i wotn add the before ones coz they are added)

-Nullify: Nullifies all Passive-effects that badly affect you.

-Battle Cry: all heroes recieve rate% plus dmg to attacvk when unarmed.

-Last Hope: raises MATK and ATK by amuount when last hero with hp below triggerhprate%

-Dancing Sword: attacks with sword will have a rate% chance to leave the enemy confused, dizzy or charmed (can attack That hero).

-Raveger: When hp below rate%, raises your ATK by the half of your MATK. also cuts your MATK by half.

-Researcher's Will: when hp below rat%, raises your MATK by the half of your ATK. also cuts your ATK by half.

-Element Maestry: all heroes who has skill/spells with elementid element, will recieve a rate% dmg (also can be amount)

-Status Shield: when you afflicted by an status, the enemy also recieves the effect, and a Death effect on a deathchance%.

-Psionic Shield: removes all your MATK, adding it to DEF and MDEF (half to DEF, half to MDEF)

-Plasma Overwhelming: when using a thunder-element weapon, double damage.

all i have for now.
[QUOTE=Kazil;173078]
-Nullify: Nullifies all Passive-effects that badly affect you.
[/QUOTE]

Hmm it is possible with the code fade, but that removes them. Heh good idea
another code effect that just disables them.

[QUOTE=Kazil;173078]
-Battle Cry: all heroes recieve rate% plus dmg to attacvk when unarmed.
[/Quote]

just like attack damage, but it effects a weapon

Hmm I'll branch this one out to attack_damage skill_damage item_damage, etc.

[QUOTE=Kazil;173078]
-Last Hope: raises MATK and ATK by amuount when last hero with hp below triggerhprate%
[/quote]

Hmm, passive effects triggered by a condition another good idea :)

[QUOTE=Kazil;173078]
-Dancing Sword: attacks with sword will have a rate% chance to leave the enemy confused, dizzy or charmed (can attack That hero).
[/quote]

Uhh.. you can do that without the use of this script :p if I am understanding you correctly

[QUOTE=Kazil;173078]
-Raveger: When hp below rate%, raises your ATK by the half of your MATK. also cuts your MATK by half.
[/quote]

Well a bit harder to do but I think you can do it with this script currently
You can reference the battler's stats by using @battler.(stat) so you can write a effect that decreases atk by half and adds half the atk to pdef would be this
"atk:*0.5,pdef:[email hidden]"

the reason why I didn't divide atk by 2 is because 1) the script will interpret it as halving pdef and 2) the atk will be cut in half already

If this works then I'm more of a genius than I thought 8-)

btw what's MATK?

[QUOTE=Kazil;173078]
-Researcher's Will: when hp below rat%, raises your MATK by the half of your ATK. also cuts your ATK by half.
[/quote]

See above

[QUOTE=Kazil;173078]
-Element Maestry: all heroes who has skill/spells with elementid element, will recieve a rate% dmg (also can be amount)
[/quote]

That effect is included in my bag of skill effects, but it just effects that one skill, I'll think of something

[QUOTE=Kazil;173078]
-Status Shield: when you afflicted by an status, the enemy also recieves the effect, and a Death effect on a deathchance%.
[/quote]

Added

[QUOTE=Kazil;173078]
-Psionic Shield: removes all your MATK, adding it to DEF and MDEF (half to DEF, half to MDEF)
[/quote]

See above big explanation but instead of @battler.(stat) use @battler.base_(stat) that way it won't be 0 added to it

[QUOTE=Kazil;173078]
-Plasma Overwhelming: when using a thunder-element weapon, double damage.
[/QUOTE]

Hmm seems like a branch from element_rate, I'll call it enchant_rate. I'll have to a bit of work to only activate that for attacks.


I'll will be redoing the first post that is for older versions of this script
I'm not sure if this was asked yet, but I can't see the text when I'm playing....how can I fix that? It's a cool script though!
Tell me what version of rmxp you are using
I don't know I its added yet..
But want a skill, which only affects u once.
Example:
If you have a skill, which increases ur str by 10. You use the skill on a character, and the next time you try to you use the same skill on the same person, it won't give any effect.
Already been implemented

Use the Code fade effect

   code:(str)
     a String two effects with the same code can't be added (advanced)
Expand to see the code.
Can you give an example on how to do it?
(Sorry, I don't quite get it)
[QUOTE=Trickster;174349]Tell me what version of rmxp you are using[/QUOTE]

the Postility Knights Edition o_O
...

BUY THE LEGAL VERSION. O.o
[QUOTE=Soren;175781]the Postility Knights Edition o_O[/QUOTE]

uh-oh......... *pulls the alarm and suddenly 1000s of soldiers surround him, guns all pointing to his head.*
[QUOTE=Sturmy;175758]Can you give an example on how to do it?
(Sorry, I don't quite get it)[/QUOTE]

What's so hard about it?

Type it in just like you do the other fade effects replacing (str) with anything example

'str:+amount,code:strengthens'
'int:+amount,code:intellect'
Expand to see the code.


something like the above any word will do, if two passive effects have the same code then the older one will be removed

This also implies that if you use the same skill to give the effect twice then the older effect will cancel out and give you a fresh copy of the effect, meaning that you can't use the skill twice and "double up" the effect
[QUOTE=Trickster;175794]
btw what's MATK?[/QUOTE]

to MATK, i refer tp the damage done with skill or attacks, that depends upon INT to get more damage, while more INT, more Magic ATtacK
Well you can't directly modify a stat added by another script with this one, but I guess I'll include it with the next version (Removed BETA status since no bugs have been reported :) )

You can get around this by just using skill_damage: or int: or something

Effects that will be added soon
---------------
regenerate hp
counter
counter magic
increase chances of getting an item added
reflect
hp drain

Conditions
------------
hp_greater:(percentage)
If Hp is >= percentage
hp_less:(percentage)
If Hp is <= percentage
sp_greater:(percentage)
If Sp is >= percentage
sp_less:(percentage)
If Sp is <= percentage
status:(state_id)
If Player has status
weapon:(weapon_id)
If Player has weapon
armor:(armor_id)
If Player has armor
item:(item_id)
If Party has item
reverse
Reserves all conditions
script:(script)
If script evaluates to true

Fade Conditions
---------------
nullify:(str)
a String nullifies all effects with code (advanced)

If you don't see your effect on this list then I will add it another update
WOW, where does your talent end? I have perhaps, an easy question:

Quote:
Trickster;171060]Ok Let me try this again.........

Cleaned up code by ALOT there are many changes in some parts of the script

Added Effects
---------------
Exp Gained in Battle


(I cut out the part of the quote that applies to my question)

Based on your quote, does that mean I could create a skill that when cast would give the player who cast it DOUBLE XP for the battle he casts it in? I would also make one that would give DOUBLE XP to the whole party. I saw this done in "Blades of Heaven" I apologize, I do not know much about scripts yet, so perhaps this is an easy question. If this is possible to do with this script, where in the script would I need to edit and what would I need to put in? Thank you for you help! :#
Yes Skill 100 Quick Experience in the demo doubles the Experienced Gained for one actor, just change the scope of the skill if you want it to affect all actors.

The Skill gives the state 17 - Double Exp which is linked to passive effect number 33 which is
  Effects[33] = 'exp:*2'
Expand to see the code.


You can find this stuff in the setup script.
:o WOW, that's really easy, thank you. I also like the "five finger discount" that's original! Which script is the "five finger discount" in and what line is that on? I wanted to change the time so that it is less than 60 seconds but I couldn't figure out where it was. thank you!!!

BTW, what does dilute do? does it make your attack and skills weaker?

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