Passive Effects
#1
Passive Effects
Version: 5.0


Introduction
This script is one of my favorites. This script allows you to create skills that increase stats, among other things for the version. This version also allows you to define when the effect will fade (turns, time, attacks, skills, hits, battles, etc.), and from the thread I created about this script back in the .net days added more effects (change encounter rate, move speed, enchant weapon, elemental power, etc.), also in this version setup multiple passive effects, and setup a skill that deals damage and gives a passive effect. The uses for this script is endless: create a Zombified State, Halve Damage, Double the Amount of Hp Healed, etc.

This script also allows you to set up and tag the effects to items, states, weapons, and armors.


Screenshots
None Needed


Demo
Download Here
(Includes The Passive Effects Engine)


Instructions
Add All scripts Above main, including SDK if you don't have it
The Method and class Library goes Below Scene_Debug but above custom scripts

In the Script Setup your first concern is this
Code:
module Passive_Setup
  # Time Effect Setup
  #    active -- decreases During other scenes
  #    wait        -- decreases only in Scene_Map and Scene_Battle
  Time_Effect = 'wait'
  # Passive Skills Element ID indentifier
  Element_ID = 17
  # Element Rate Calculation
  # 1: Weakest, 2: Strongest, 3: Average, 4:Multiplitive 5: Geometric Average
  Element_Rate = 4
end

The comments explain themselves but I'll repeat myself:

Set Time_Effect to 'active' if you want the passive effects to decrease during other scenes (Scene_Menu, Scene_Name, Scene_Whatever), set it to wait to make them only decrease in Scene_Map and Scene_Battle, this setting only affects effects with the time setting.

Element_ID is the element id to active a passive skill from the database system tab

Element_Rate effects how the method elements_correct calculates the elemental damage, the default is multiplitive, which is the best setting for this script, you can change this setting if you want
  • Weakest -- Returns the Weakest Rate (Used in Default Scripts) ex (200, 150, 100) rate will be 200
  • Strongest -- Returns the Strongest Rate (Opposite of Weakest) ex (200, -100, 0) rate will be -100
  • Average -- Averages all the Rates ex (200, -100, 0) rate will be 33
  • Multiplitive -- Multiplies all the stats and divides by 100 ^ (size - 1) ex (200, 150, 100, 100) rate will be 300
  • Geometric_Average -- Added this for fun The Geometric Mean of the rates ex (200, 150, 100, 100) rate will be 131
Next you will focus on the data structure of the effects which is explained in full and many examples given in the script, reply if you have trouble understanding

See the script RPG::Skill to setup the passive effect the format for that is
hash[id] = {PASSIVE => [passive_type, faded?]}
passive type is from setup the passive effect to give, faded is optional a string that tells when the effect fades

Note: If no fade effect was given the effect lasts indefinately

To Push an effect without using a skill just do
.passive.push(Game_Passive.new(id))
where is an instance of Game_Battler (ex. $game_party.actors[0], $game_actors[2], $game_troop.enemies[4])
id is the id of the passive effect (defined in setup) to give


FAQ
Note: Permission granted by Trickster to post:
Quote:And if you post what you have now of my stuff then you don't have the latest versions. I'm too lazy/busy to post stuff.
As this is his material, it is deletable upon his request. Due to his current absense, no support is available. Please do not PM or eMail him for support.


Compatibility
Requires SDK
Requires Method and Class Library (included in demo)

Don't know about Compatibility on this one, compatibility issues can range from features not working (giving an error), to the whole script not working.

Should be compatible with an ABS if and only if when a skill is used it calls method skill_effect

The method Game_Battler#elements_correct was unable to be aliased so note this

Will Have to Merge RPG::Skill#extra if using in conjuction with my Skill Effects


Credits and Thanks
Sol_Fury for requesting some of the features


Author's Notes
if you want to know this was my second ever script released (the first was the Steal Script)


Terms and Conditions
Hey, I posted this publicly. You can use it. What do you expect? But if you do use it, I do expect you to spell my name correctly in your game. And yes you can use it in commercial games too.
Reply }


Messages In This Thread
Passive Effects - by Trickster - 03-02-2008, 06:26 AM
Passive Effects - by fgsfds - 12-30-2009, 10:47 PM
Passive Effects - by Trickster - 01-01-2010, 07:17 AM
Passive Effects - by fgsfds - 02-10-2010, 02:41 AM
Passive Effects - by Trickster - 02-10-2010, 06:48 AM
Passive Effects - by fgsfds - 02-10-2010, 05:19 PM
Passive Effects - by Trickster - 02-11-2010, 04:23 AM
Passive Effects - by computerwizoo7 - 02-12-2010, 06:22 AM
Passive Effects - by rm-rf - 02-12-2010, 08:14 PM
Passive Effects - by fgsfds - 02-15-2010, 02:43 AM
Passive Effects - by fgsfds - 02-16-2010, 05:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Passive Skills DVV DerVVulfman 12 24,166 08-03-2011, 03:53 AM
Last Post: DerVVulfman
   Light Effects Near Fantastica 1 11,238 05-28-2010, 03:48 PM
Last Post: sakhawat21
   States Activation System aka State-Based Passive Augments, Version 0.2 Charlie Fleed 7 12,901 03-06-2010, 09:26 PM
Last Post: fgsfds
   Trickster's Bag Of Skill Effects Trickster 5 15,223 02-23-2010, 06:32 AM
Last Post: fgsfds
   Custom Skill Effects Lowell 0 5,048 03-06-2008, 06:16 AM
Last Post: Lowell
   Passive Effects Engine Trickster 0 5,103 03-02-2008, 06:24 AM
Last Post: Trickster



Users browsing this thread: 4 Guest(s)