Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: Blizzard on March 07, 2009, 09:54:55 am

Title: [XP] Easy Overdrive System
Post by: Blizzard on March 07, 2009, 09:54:55 am
Easy Overdrive System
Authors: Blizzard
Version: 2.3
Type: Limit Break / Overdrive System
Key Term: Custom Skill System

Introduction

This script allows the use of the Overdrive skills.

This work is licensed under BSD License 2.0:
QuoteCopyright (c) Boris "Blizzard" Mikić
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1.  Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimer.

2.  Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.

3.  Neither the name of the copyright holder nor the names of its contributors
    may be used to endorse or promote products derived from this software
    without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

You may use this script for both non-commercial and commercial products without limitations as long as you fulfill the conditions presented by the above license. The "complete" way to give credit is to include the license somewhere in your product (e.g. in the credits screen), but a "simple" way is also acceptable. The "simple" way to give credit is as follows:
QuoteEasy Overdrive System licensed under BSD License 2.0, Copyright (c) Boris "Blizzard" Mikić

Alternatively, if your font doesn't support diacritic characters, you may use this variant:
QuoteEasy Overdrive System licensed under BSD License 2.0, Copyright (c) Boris "Blizzard" Mikic

In general other similar variants are allowed as long as it is clear who the creator is (e.g. "Easy Overdrive System created by Blizzard" is acceptable). But if possible, prefer to use one of the two variants listed above.

If you fail to give credit and/or claim that this work was created by you, this may result in legal action and/or payment of damages even though this work is free of charge to use normally.


Features

v2.01b
v2.1b
v2.2
v2.21
v2.3


Screenshots

Please note: A "Centered battlers" and a "shaded text" add-on were applied in the demo to make it look better.

(http://img515.imageshack.us/img515/22/snap588.th.png) (http://img515.imageshack.us/img515/22/snap588.png) (http://img515.imageshack.us/img515/1128/snap589.th.png) (http://img515.imageshack.us/img515/1128/snap589.png) (http://img515.imageshack.us/img515/1043/snap590.th.png) (http://img515.imageshack.us/img515/1043/snap590.png)

Demo

Easy Overdrive System (https://downloads.chaos-project.com/scripts/Easy Overdrive System.zip)

Script

Just make a new script above main and paste this code into it.
Script Download (https://downloads.chaos-project.com/scripts/Easy Overdrive System.txt)

Instructions

Inside the script in the first comment.

Compatibility

99% compatible with SDK 1.x. 90% compatible with SDK 2.x. WILL corrupt your old savegames. Can cause incompatibilty issues with following scripts and/or systems:
Not compatible with:

Credits and Thanks


Author's Notes

If you find any bugs, please report them here:
http://forum.chaos-project.com

That's it! Enjoy! =D
Title: Re: [XP] Easy Overdrive System
Post by: G_G on March 07, 2009, 09:59:30 am
game_guy says "Woot first reply!  8) Anyways awesome scripts would this by chacne be compatible with blizz abs?"
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 07, 2009, 10:09:42 am
Quote from: Blizzard on March 07, 2009, 09:54:55 am
Features


  • ...
  • compatible with Blizz-ABS
  • ...



Title: Re: [XP] Easy Overdrive System
Post by: Sally on March 07, 2009, 10:52:38 am
doeas this automatically add the bar to the blizz abs hud?

and. very nice script, is there a way to manually modify OD value?
Title: Re: [XP] Easy Overdrive System
Post by: Juan on March 07, 2009, 12:01:31 pm
Read the spoiler below if you want to know how to change the od value in game. And it does add it the od value to the hud. 
Spoiler: ShowHide
#   If you want to change the value of the OD % ingame use the "Call script"
#   event command and use this syntax:
#
#     $game_actors[X].overdrive = Y
#
#   X - ID of the hero in the database
#   Y - new value of the OD
#
#   You can also use another syntax:
#
#     $game_party.actors[X].overdrive = Y
#
#   X - position of the hero in the party
#   Y - new value of the OD
#
#   Note that X starts from 0 and NOT 1. The ammount is shown as 100,0%, this
#   is 1000 OD. i.e. 59,1% would be 591 OD.
Title: Re: [XP] Easy Overdrive System
Post by: Fantasist on March 07, 2009, 02:21:29 pm
Heheh, this was probably a 5 minute job for you. I really wanna see how you implement it Bliz. *downloads*
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 08, 2009, 06:27:21 am
It took an hour the other day to make. The added compatibility with RTAB, Blizz-ABS and the proper instructions took another 3 hours. What irony that the compatibility actually took longer than the script itself... The system works pretty much the same way SRS does.

@Susys: For god's sake, read the instructions. And if it's compatible with Blizz-ABS, it obviously should add the bar to the HUD. -_- Why are you making it always so hard on me?
Title: Re: [XP] Easy Overdrive System
Post by: Viviatus on March 08, 2009, 01:08:36 pm
Mhm... somehow I can't get it to work with the RTAB. It always gives odd error messages... all in that "if BlizzCFG::RTAB_ACTIVE" part of the script... I guess I'm doing something wrong there...
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 08, 2009, 01:14:08 pm
Did you turn RTAB_ACTIVE on? xD
Title: Re: [XP] Easy Overdrive System
Post by: Viviatus on March 08, 2009, 01:15:50 pm
Well, of course... Otherwise I wouldn't post here :-P
I do everything I can before I ask for help or anything...
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 08, 2009, 01:17:03 pm
What's the error message anyway? xD
Title: Re: [XP] Easy Overdrive System
Post by: Viviatus on March 08, 2009, 01:22:29 pm
line 380 NoMethodError, undefined method 'draw_battler_name'

See? odd!
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 08, 2009, 01:42:27 pm
Found it, fixed it.
Title: Re: [XP] Easy Overdrive System
Post by: Viviatus on March 08, 2009, 01:44:47 pm
That... was fast!
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 08, 2009, 01:46:58 pm
Yeah, it should have been draw_actor_name, that's why. xD
Title: Re: [XP] Easy Overdrive System
Post by: Calintz on March 09, 2009, 06:07:13 pm
This is beautiful, and I'm really glad that you decided to make this...
** Blizzard, do you think maybe you could comment the code if you ever have another update for this system??
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 11, 2009, 08:29:13 am
If I have the time. CRLS is commented and it works on the same principles.
Title: Re: [XP] Easy Overdrive System
Post by: Calintz on March 11, 2009, 02:48:26 pm
Okay then, for reference I should look to the Limit Break System in CRSL, right??
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 12, 2009, 03:22:00 am
SRS is actually more similar to EOS.
Title: Re: [XP] Easy Overdrive System
Post by: Calintz on March 14, 2009, 01:45:52 am
How come the swap command feature is available even when the character is empty of OD!?
**How do I set the amount of OD that is required to use the skill?

Can I make it so the swap is only available if the character has 100% OD??
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 14, 2009, 06:59:22 am
The OD required is the SP cost in percentage just like in SRS. I actually mentioned that in the instructions. :P
And you can access the menu anytime. In order to make it only accessible when you have 100% OD, you need to do following edits.

1. Line 436 should be:
if BlizzCFG::OVERDRIVE_USERS.include?(@actor.id)

Change it to:
if BlizzCFG::OVERDRIVE_USERS.include?(@actor.id) && @actor.overdrive == 1000


2. Line 676 should be:
if BlizzCFG::OVERDRIVE_USERS.include?(battler.id)

Change it to:
if BlizzCFG::OVERDRIVE_USERS.include?(battler.id) && battler.overdrive == 1000
Title: Re: [XP] Easy Overdrive System
Post by: Calintz on March 14, 2009, 10:24:04 am
Quote from: Blizzard on March 14, 2009, 06:59:22 am
The OD required is the SP cost in percentage just like in SRS. I actually mentioned that in the instructions. :P
And you can access the menu anytime. In order to make it only accessible when you have 100% OD, you need to do following edits.

1. Line 436 should be:
if BlizzCFG::OVERDRIVE_USERS.include?(@actor.id)

Change it to:
if BlizzCFG::OVERDRIVE_USERS.include?(@actor.id) && @actor.overdrive == 1000


2. Line 676 should be:
if BlizzCFG::OVERDRIVE_USERS.include?(battler.id)

Change it to:
if BlizzCFG::OVERDRIVE_USERS.include?(battler.id) && battler.overdrive == 1000






**I apologize for being incompetent. Those are tiny edits that I could have realized had I actually been 'trying,' instead of running a quick scan. Thank you very much Blizzard. Everything is finally compatible, and works great!!

**As for the skill%.. .. ..umm...sorry :^_^': Lmao.
**Thank you again!! Everything works fantastic.

**Power Up**
Title: Re: [XP] Easy Overdrive System
Post by: Viviatus on April 04, 2009, 02:14:40 pm
It still doesn't have the flowing/flashing bars! :O
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on April 05, 2009, 07:08:23 am
Sorry, I don't have time. Life is killing me.

... oh, the irony. :roll:
Title: Re: [XP] Easy Overdrive System
Post by: Delyemerald2 on April 09, 2009, 05:24:32 pm
I can't find the parameter to change the max OD%... To many 1000's XD
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on April 10, 2009, 04:17:48 am
There is none. Max is 100%, duh.
Title: Re: [XP] Easy Overdrive System
Post by: Hellfire Dragon on April 10, 2009, 05:43:47 am
hey blizz when I try to change the color of the OD bar it won't work, with the blizz abs anyway :P
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on April 10, 2009, 06:22:55 am
Hud#draw_overdrive. You should change it in that method.

self.bitmap.gradient_bar_hud(@od_x+32, @od_y+3, 114, rate, 'hud_red_bar')


I don't know from memory what the other bars are except for "hud_green_bar", "hud_blue_bar" and "hud_white_bar".
Title: Re: [XP] Easy Overdrive System
Post by: Hellfire Dragon on July 25, 2009, 10:13:05 am
The HP consume skill in Tons doesn't with overdrives :P Fix? Or did I do something wrong?
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on July 26, 2009, 08:23:36 am
Not, it really doesn't work. I'll update it somewhere later today.

EDIT: Update to v2.1b.
Title: Re: [XP] Easy Overdrive System
Post by: Holyrapid on December 03, 2009, 12:12:12 pm
Hey, can i make so that i can buy ODs from G_Gs skill shop? If yes, with what script call? The regular
$game_actors[ID].learn_overdrive(CD)
or with something else... Please help
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on December 03, 2009, 03:01:17 pm
Yes, instead of actor.learn_skill you would need to use actor.learn_overdrive in his script.
Title: Re: [XP] Easy Overdrive System
Post by: Holyrapid on December 04, 2009, 05:17:37 am
Ok, well, great. Great, indeed. This makes things a bit more intresting.
Title: Re: [XP] Easy Overdrive System
Post by: Holyrapid on December 06, 2009, 05:23:01 am
Umm, another question. I want to do the same as Calintz, but the code has changed, so i don´t know which lines to edit. I mean, i want to make the slider (or whatever it´s called) pop up when i have full OD. Now, like i said, the lines don´t match anymore, and i don´t know which ones to change...
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on December 06, 2009, 05:36:10 am
Doesn't matter, they are still the same lines (not numbers, I mean the code). Just press CTRL + F and use the search function to find them, then edit them.
Title: Re: [XP] Easy Overdrive System
Post by: Orici on December 14, 2009, 06:54:58 pm
would it be possbile to change the OD bar possition? It's because i'm using a custom battle window (see this picture)
Spoiler: ShowHide

(http://img402.imageshack.us/img402/4809/dibujoot.jpg)
Title: Re: [XP] Easy Overdrive System
Post by: Trainer Zydragon on December 14, 2009, 08:55:45 pm
Hey awesome script, I've been looking for a script like this for a LONG time now, and so far they've all been duds.

Just one problem... Im using SephirothSpawn's custom HP/SP bars, and this script seems to destroy the bars themselves, making them invisible. It doesn't return an error or anything, and the game rns as normal, but obviously its a hinderance with no HP/SP/Overdrive guages. The ATB guage still shows however.
Is there any way around this or will I need to use a different guage script? (I hope to evade the second)

Cheers :D

EDIT:
The full list of scripts im using (all completely compatible surprisingly)
Spoiler: ShowHide
Makeamidget & Khatharr steal script
RTAB (cogwheel) edited for no zoom
Animated Battlers with RTAB patch
Cogwheels spell timers and spell synth scripts
Vash's Death Switch script
Custom skill window script (by Marked I think)
SephirothSpawn's custom guage script
Dargor's Party Changer scripts
Dubealex's Ring Menu script
Mr. Mo's Animate This! script
Title: Re: [XP] Easy Overdrive System
Post by: Jackolas on December 15, 2009, 02:35:15 am
Quotewould it be possbile to change the OD bar possition? It's because i'm using a custom battle window (see this picture)

that is an easy edit. will see if I have some time to do that 1 for yah today
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on December 15, 2009, 03:53:24 am
Quote from: Zydragon on December 14, 2009, 08:55:45 pm
Hey awesome script, I've been looking for a script like this for a LONG time now, and so far they've all been duds.

Just one problem... Im using SephirothSpawn's custom HP/SP bars, and this script seems to destroy the bars themselves, making them invisible. It doesn't return an error or anything, and the game rns as normal, but obviously its a hinderance with no HP/SP/Overdrive guages. The ATB guage still shows however.
Is there any way around this or will I need to use a different guage script? (I hope to evade the second)

Cheers :D

EDIT:
The full list of scripts im using (all completely compatible surprisingly)
Spoiler: ShowHide
Makeamidget & Khatharr steal script
RTAB (cogwheel) edited for no zoom
Animated Battlers with RTAB patch
Cogwheels spell timers and spell synth scripts
Vash's Death Switch script
Custom skill window script (by Marked I think)
SephirothSpawn's custom guage script
Dargor's Party Changer scripts
Dubealex's Ring Menu script
Mr. Mo's Animate This! script



Seph coding style was always so that mostly only his stuff works with it. Either use his Overdrive script (called Limit Break if I remember right) or use my bars from Tons of Add-ons (except the facts that they look better and lag a lot less, you have the option to use one of seven different styles :P).
Title: Re: [XP] Easy Overdrive System
Post by: Jackolas on December 15, 2009, 04:22:52 am
Quoteor use my bars from Tons of Add-ons (except the facts that they look better and lag a lot less, you have the option to use one of seven different styles Tongue).

showoff
Title: Re: [XP] Easy Overdrive System
Post by: Trainer Zydragon on December 15, 2009, 06:25:20 am
Haha cheers for that.

Im not a COMPLETE noob at ruby coding... I did C++ in university, so I get the general jist of things. If I can't find the problem I'll have to do one of those... Probably change the bars since I like your OD version.
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on December 15, 2009, 06:46:12 am
Quote from: Jackolas on December 15, 2009, 04:22:52 am
Quoteor use my bars from Tons of Add-ons (except the facts that they look better and lag a lot less, you have the option to use one of seven different styles Tongue).

showoff


Lol, but it's true. xD
Title: Re: [XP] Easy Overdrive System
Post by: Trainer Zydragon on December 15, 2009, 07:03:28 am
Alright so I've messed with the scripts, taken ones out, to see the compatibility issue here...

Strangely enough if I take out seph's bars (or even put yours in) it spits out an error message:

"Script 'Easy Overdrive System' line 278: NoMethodError occurred.

undefined method 'draw_slant_bar' for
#<Window_DetailsStatus:0x7e48390"

Confused.com  :???:

EDIT:
Ive put in your RTAB script, which shows the bars and seems to work with the Animated Battlers script fine. The only problem is it defeats the point of the spell synth and spell timer scripts, as the bar doesnt show the skills charging, it just kinda stays red... Any workaround?
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on December 15, 2009, 07:36:03 am
I don't refresh the display all the time to reduce lag. :/ I might take a look at it, but I'd need a small demo.
Title: Re: [XP] Easy Overdrive System
Post by: Trainer Zydragon on December 15, 2009, 08:04:08 am
It's alright, if I was to make a edmo out of it, it would be fairly pathetic since I have no graphics yet, just big coloured squares for boundaries.
Ive decided to keep the Overdrive system for another game in the future anyway, since it's a trilogy and I would prefer different battle systems in each.

Still, cheers for the script  :haha:
Title: Re: [XP] Easy Overdrive System
Post by: toutaku on December 22, 2009, 04:45:33 am
so im very new at this. so i apologize in advance.

ive emplimented this script and its awesome. my problem is that i dont know how to make new skills for the overdrive... i know how to make new skills  but i dont understand how to make them specific for overdrive. plz teach me im eager to learn. thanks in advance aswell.
Title: Re: [XP] Easy Overdrive System
Post by: Holyrapid on December 22, 2009, 04:56:41 am
There should be instructions in the beginning of the script in comments, (the one´s in green) so read that.
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on December 22, 2009, 06:29:35 am
And there's a demo project with a demo configuration.
Title: Re: [XP] Easy Overdrive System
Post by: toutaku on December 22, 2009, 02:08:40 pm
ok ill check it out thx. sorry to bother. lol :shy:

sorry to double post but i looked over thedemo and script and cant figure out how to make skill for overdrive and for them to be set with actors and such. plz help and dont be frustrated with me, imagine how i feel  :shy:


Aqua Edit:
Don't double post... even if you say sorry.
Edit your first post instead. The topic will automatically be bumped.
Good day~
Title: Re: [XP] Easy Overdrive System
Post by: Aisu on February 28, 2010, 07:49:12 pm
Okay, so for some reason, when I try and use this script with the 'Tons of Add-ons' script, I get the following error when I try to view the Overdrive window.

Spoiler: ShowHide
(http://img191.imageshack.us/img191/3754/errh.png)


This error only appears when the actor in question has overdrive skills; if it has no Overdrive skills, the window will open just fine. It doesn't seem to care whether or not any of the add-ons are active or not, also.
Title: Re: [XP] Easy Overdrive System
Post by: lynchking on February 28, 2010, 08:10:57 pm
I am using this along with BABS and Action Timers.
But, ive noticed when using an OverDrive Skill, the cooldown will trigger, but as soon as you get enough Overdrive to use the ability, it can be used regardless of weather or not the Timer has actually reached 0.
This is what is happening -->  
Spoiler: ShowHide
*Overdrive reached 30%
*skill used and timer starts
*overdrive is now 0%
*overdrive reaches 30%
*skill used again (with X  seconds left on Cooldown Timer


All Scripts are in correct order. Any ideas? I am teh nubzor, havent even looked at script since around 02-03 and have forgotten near everything there is...  Thanks in advance!  Bump! This is causing me to rip out my teeth from anger.
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 01, 2010, 03:12:50 am
Ask winkio about that in his thread.

Quote from: Aisu on February 28, 2010, 07:49:12 pm
Okay, so for some reason, when I try and use this script with the 'Tons of Add-ons' script, I get the following error when I try to view the Overdrive window.

Spoiler: ShowHide
(http://img191.imageshack.us/img191/3754/errh.png)


This error only appears when the actor in question has overdrive skills; if it has no Overdrive skills, the window will open just fine. It doesn't seem to care whether or not any of the add-ons are active or not, also.


Either you didn't put in your scripts right or they aren't in the right order (http://forum.chaos-project.com/index.php/topic,23.0.html) or you have loaded a saved game even though it says in the script that all old savegames are being corrupted when adding the script.
Title: Re: [XP] Easy Overdrive System
Post by: sirSLR on November 05, 2010, 05:58:53 pm
nice script
but how can i show it witouth having bliz abs hud turned on?
i want it to be visible all the time.
Title: Re: [XP] Easy Overdrive System
Post by: WhiteRose on November 05, 2010, 06:07:43 pm
Quote from: sirSLR on November 05, 2010, 05:58:53 pm
nice script
but how can i show it witouth having bliz abs hud turned on?
i want it to be visible all the time.


What other scripts are you using? Assumedly, you're using Blizz-ABS, in which case it IS visible all the time, unless you disable the HUD all the time, which would be questionable to say the least.
Title: Re: [XP] Easy Overdrive System
Post by: sirSLR on November 05, 2010, 06:48:56 pm
yeah that is true but i want it to be seable when blizz hud is off
cause i'm using mog-xas hud

or is there a way to import some overdrive script in that hud...
Title: Re: [XP] Easy Overdrive System
Post by: ShadowSaber on January 21, 2011, 04:37:14 am
I want to ask, how to make enemies (like boss) immune to overdrive?
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on January 21, 2011, 05:14:01 am
Give Overdrives an element and make your bosses immune to that element.
Title: Re: [XP] Easy Overdrive System
Post by: ShadowSaber on January 21, 2011, 05:37:20 am
Oh, I see...

thanks for your tips, Mr Blizzard  :D
Title: Re: [XP] Easy Overdrive System
Post by: mongoosezxc on February 07, 2011, 06:46:17 pm
So I don't know if this thread is dead yet or not.... :P
but is there a way to have overdrive skills learned upon level up like regular skills? :huh:
...and yes I have read the instructions at the beggining of the script

any help is appreciated,
thanks
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on February 08, 2011, 02:20:44 am
Not directly, but you can with a simple common event. Make the skill be learned as a normal skill. Put inside any script (I suggest you make a script slot below EOS) this piece of code here:

OVERDRIVE_SKILLS = [2, 3, 4]


Inside the array add all skill IDs that are Overdrive skills (in this example, those are 2, 3 and 4). Now make a common event that is a parallel process (don't forget to turn on the switch triggering that event). Add a script call command and insert this piece of code:

(1...$data_actors.size).each {|i|
  os = OVERDRIVE_SKILLS &
    $game_actors[i].skills
  os.each {|s|
    a = $game_actors[i]
    a.forget_skill(s)
    a.learn_overdrive(s)}}
Title: Re: [XP] Easy Overdrive System
Post by: mongoosezxc on February 09, 2011, 07:39:48 pm
so I the first script a seperate script page in the script editor

and then put the second script in an event using the "script" command (third tab of options) at the very beggining of the game?

and what does parralell process even mean? I havn't used it before. Does the event have to activated by a switch at all?

Sorry, but i didn't fully understand ur first response...
Title: Re: [XP] Easy Overdrive System
Post by: Sacred Nym on February 09, 2011, 08:54:50 pm
You got the first part right.

As for the second, not quite. What you have to do is go to the second to last tab of the regular database (called Common Events) and in an empty event slot, add the second script in a call script. Set the trigger to Parallel Process (meaning it'll run in the background), set an activation switch (meaning it'll only run when the switch is turned on) and make sure that switch is turned on at the start of the game.
Title: Re: [XP] Easy Overdrive System
Post by: mongoosezxc on February 10, 2011, 05:59:41 pm
THANKS!
But why not just have the event run without needing a switch? (EDIT: because you literally cannot!) :wacko:

Oh, also, when I paste the first scipt below EOS and above MAIN it wont let me playtest becuz it says syntax error in line 1 of that script... :P
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on February 11, 2011, 02:17:39 am
If this script is giving you syntax errors, you haven't set it up properly.

OVERDRIVE_SKILLS = [2, 3, 4]


You are supposed to separate skill IDs with commas, make sure of that.
Title: Re: [XP] Easy Overdrive System
Post by: mongoosezxc on February 11, 2011, 04:25:57 pm
hmm....yes comma and then a space in between each
also I get syntax errorts wether it is all one line (past the edge I might add) or a new line.
Is there a special inention rule or something?
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on February 11, 2011, 04:36:17 pm
Well, you should end a line with a comma and begin it with the next number. That shouldn't give you a syntax error.

OVERDRIVE_SKILLS = [1, 2,
3,4,
5]


Spaces aren't actually necessary, but you will thank yourself later when you have to edit it.
Title: Re: [XP] Easy Overdrive System
Post by: mongoosezxc on February 11, 2011, 04:45:40 pm
well, I'm at a loss. The script you have there and the one in my editor are identical.
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on February 11, 2011, 04:49:47 pm
And it gives you a syntax error at exactly that line? O_o
Title: Re: [XP] Easy Overdrive System
Post by: mongoosezxc on February 11, 2011, 04:53:14 pm
yup, syntax error for that script (which i called overdrive skills) and in line 1. The problem isnt that my name for the script is the same as the first words IN the script, is it :P :huh:
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on February 11, 2011, 06:13:03 pm
No, there shouldn't be a problem with that.
Upload your scripts.rxdata somewhere and post a link. I can take a quick look at it.
Title: Re: [XP] Easy Overdrive System
Post by: mongoosezxc on February 11, 2011, 06:53:01 pm
are you talking about the file called scripts in the data folder of my game folder?
And thank you SO much for all your help...sorry for any incovenience, but man I want this to work!

Just realized that actual Overdrive script doesnt work either, quits out game when battle is initiated:


Script 'Overdrive' line 252: NoMethodError occurred.
   
undefined method `/' for nil:NilClass


thats the error message
it might be interesting to note that i could NEVER get ANY script to work with RMXP permanantly...even a simple caterpillar script messed up over time  :P i dont get it :???:
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on February 11, 2011, 08:09:35 pm
Eh...
Quote from: Blizzard on March 07, 2009, 09:54:55 am
Compatibility

99% compatible with SDK 1.x. 90% compatible with SDK 2.x. WILL corrupt your old savegames. Can cause incompatibilty issues with following scripts and/or systems:
Title: Re: [XP] Easy Overdrive System
Post by: mongoosezxc on February 11, 2011, 10:39:49 pm
i still dont know how to send you the scripts...but that probably wont help anyway

any other script similar to your overdrive one u may suggest?
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on February 12, 2011, 06:11:52 am
Go to www.sendspace.com, upload the file and post a link.
Title: Re: [XP] Easy Overdrive System
Post by: mongoosezxc on February 12, 2011, 12:31:05 pm
here it is

http://www.sendspace.com/file/an7kob
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on February 12, 2011, 01:03:02 pm
But these are just the default scripts.
Title: Re: [XP] Easy Overdrive System
Post by: mongoosezxc on February 12, 2011, 02:11:20 pm
ya im sorry i forgot i deleted the two add ons becuz i wanted to playtest a dungeon :roll:

here it is with the scripts:

http://www.sendspace.com/file/vol66c

sry about that :^_^':
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on February 12, 2011, 02:29:31 pm
No, the file still looks like the default file. Did you save the project before you uploaded the file?
Title: Re: [XP] Easy Overdrive System
Post by: mongoosezxc on February 12, 2011, 06:03:45 pm
hope this one works

http://www.sendspace.com/file/ioqhbj
Title: Re: [XP] Easy Overdrive System
Post by: tanzen on March 01, 2011, 01:15:24 pm
hi, well first i like your system easy  to config :D but i'v a lil' problem xD
for my game i did a job-change system ( not a script just with many many hero + class) and my problem is that when i config the hero with the overdrive bar, ( yup they got it) but only the first hero of my party gain acces to the overdrive option while a fight.


the part where i did my change:



OVERDRIVE_RATE = 1000
  DRAW_OVERDRIVE = true
  DRAW_OVERDRIVE_BAR = true
  OVERDRIVE_ENABLED = [13, 14, 15, 16, 18, 19,20 ,21, 23, 24, 25, 26, 28, 29, 30, 31,
   33, 34, 35, 36, 38, 39, 40, 41, 43, 44, 45, 46, 48, 49, 50, 51, 53, 54, 55, 56,
   58, 59, 60, 61, 63, 64, 65, 66, 68, 69, 70, 71, 73, 74, 75, 76, 78, 79, 80, 81,
   83, 84, 85, 86, 88, 89, 90, 91, 93, 94, 95, 96]
  OVERDRIVE_USERS = [13]#, 14, 15, 16, 18, 19,20 ,21, 23, 24, 25, 26, 28, 29, 30, 31,
#33, 34, 35, 36, 38, 39, 40, 41, 43, 44, 45, 46, 48, 49, 50, 51, 53, 54, 55, 56,
#58, 59, 60, 61, 63, 64, 65, 66, 68, 69, 70, 71, 73, 74, 75, 76, 78, 79, 80, 81,
#83, 84, 85, 86, 88, 89, 90, 91, 93, 94, 95, 96]
  OVERDRIVE_NAME = 'OD'
  OVERDRIVE_COMMAND_NAME = 'Overdrive'
  OVERDRIVE_COLOR = Color.new(0, 128, 255)
  RTAB_ACTIVE = false


if i did something wrong if the script isn't done for too many  hero, i dunno cuz i haven't any syntax error message when i launch

(i'm maybe chaotic when i try to explain my prob, sry for that ^^')
Title: Re: [XP] Easy Overdrive System
Post by: Holyrapid on March 01, 2011, 01:38:32 pm
remove the hashes (#) because they mark comments and comments are not taken into consideration when running any script. As the name says, they are just comments and have no effect on the script.
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 02, 2011, 05:03:55 pm
DesPKP is right. I accidentally left the # in the config after testing something probably. I have reuploaded the script and demo with a normal config so people don't have the same problem in future.
Title: Re: [XP] Easy Overdrive System
Post by: Sake42 on March 16, 2011, 12:46:13 pm
Great script, but every time I want to add an OD it keeps saying " SynthaxError occurred while running Script" Can you help me?


     
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 16, 2011, 12:56:59 pm
Post the script call you tried.
Title: Re: [XP] Easy Overdrive System
Post by: Sake42 on March 16, 2011, 12:59:34 pm
"  $game_actors[ID].learn_overdrive(CD) "
Title: Re: [XP] Easy Overdrive System
Post by: ForeverZer0 on March 16, 2011, 01:16:43 pm
What values are you using for ID and CD?
Are they defined correctly?
Title: Re: [XP] Easy Overdrive System
Post by: Sake42 on March 16, 2011, 01:26:57 pm
Well, please excuse me, I'm a total noob, Ijust used my Charakters name and the name of the skill   :^_^':
Title: Re: [XP] Easy Overdrive System
Post by: WhiteRose on March 16, 2011, 01:34:54 pm
Quote from: Sake42 on March 16, 2011, 01:26:57 pm
Well, please excuse me, I'm a total noob, Ijust used my Charakters name and the name of the skill   :^_^':


You shouldn't use their names, but their ID numbers. Look to the left of the name in the list in the database; the number there is what you need to use for the character and skill IDs.
Title: Re: [XP] Easy Overdrive System
Post by: Sake42 on March 16, 2011, 01:41:01 pm
Nah, still doesn't work. :(
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 16, 2011, 02:16:35 pm
Did you try something like this or not?

$game_actors[1].learn_overdrive(5)


How else is the script supposed to know which actor should learn which skill as overdrive skill?
Title: Re: [XP] Easy Overdrive System
Post by: Sake42 on March 17, 2011, 09:55:04 am
As I said before, I'm a total noob at this. Thanks for your help.

EDIT: Oh yeah, it works now.

EDIT: Damn, this is really going to freak me out :<_<: Now it says I can use it with 200% OD. But it only goes to 100%!
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on March 17, 2011, 10:46:04 am
Please don't double/triple post, edit your post instead.

The SP Cost of the skill defines how many % are required. If a skill needs 200%, then you have set the SP cost to 200.
Title: Re: [XP] Easy Overdrive System
Post by: Sake42 on March 17, 2011, 10:50:32 am
Well, thanks, I'll remember that. :haha:
Title: Re: [XP] Easy Overdrive System
Post by: Siffers on January 31, 2012, 07:33:18 am
Sorry for posting here, but I wasn't sure where to go for help.

I'm using Tons of Addons and wanted to add an Overdrive System, but when I try to use an Overdrive I get this error

Spoiler: ShowHide
 (http://i269.photobucket.com/albums/jj42/Neko_Wolfie/Error.jpg)


I have no idea how to do any kind of scripting, so I'm at a loss of what to do >.<
Title: Re: [XP] Easy Overdrive System
Post by: Kitsune-Paws on February 02, 2013, 12:41:18 pm
Is there any way to change the script so that the overdrive are actor specific?
Title: Re: [XP] Easy Overdrive System
Post by: Blizzard on February 02, 2013, 01:55:33 pm
Yes, simply configure the array OVERDRIVE_USERS. It seems that I added this in the script, but I forgot to add its meaning in the instructions.