Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: Blizzard on January 09, 2008, 05:02:38 pm

Title: [XP] Advanced Analyze System
Post by: Blizzard on January 09, 2008, 05:02:38 pm
Advanced Analyze System
Authors: Blizzard
Version: 2.4
Type: Enemy Scan Window and Skill
Key Term: Battle Add-on

Introduction

This script will allow your characters to retrieve information about enemies during battle and show them in a window. It also has built-in compatibility for my "Bestiary" script and allows adding enemies to it only if enemies were analyzed at least once. This script can easily be used for Pokémon typed games.

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:
QuoteAdvanced Analyze 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:
QuoteAdvanced Analyze 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. "Advanced Analyze 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

v1.1b
v1.2b
v1.3b
v2.0b
v2.1b
v2.2b
v2.21b
v2.3b
v2.4


Screenshots

Spoiler: ShowHide
(http://img118.imageshack.us/img118/6379/snap100ou.png)


Demo

Advanced Analyze System (http://"https://downloads.chaos-project.com/scripts/Advanced Analyze System.zip")

Script

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

Instructions

Inside the script in the first comment.

Compatibility

96% compatible with SDK v1.x. 70% compatible with SDK v2.x. May cause incompatibility issues with exotic CBS-es. WILL corrupt your old savegames.

Credits and Thanks


Author's Notes

Do NOT give enemies analyzing skills! You MUST configure the one part if you have scripts that use dummy elements! Do NOT give your enemies MORE than 8 elements/status effects of one resistance type (e.g. 9 or more elements, that are absorbed), because they won't be displayed. Do NOT use this skill on party members.

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

That's it! N-Joy! =D
Title: Re: Advanced Analyze System
Post by: Calintz on January 13, 2008, 12:15:52 am
This si compatible with Chaos Limit and everythin, correct?? ???
Title: Re: Advanced Analyze System
Post by: Nortos on January 13, 2008, 02:31:49 am
yeah it's just a skill so it wouldn't do anything bad unless the person was really bad scripter and we know Blizzard is godly :P
Title: Re: Advanced Analyze System
Post by: Calintz on January 13, 2008, 02:33:24 am
Yes...yes we do know that...
- Then I will probably use this...
Title: Re: Advanced Analyze System
Post by: Nortos on January 13, 2008, 02:42:21 am
yeah I'm using it for my hunter class in my game gonna use different animation though
Title: Re: Advanced Analyze System
Post by: Calintz on January 13, 2008, 03:29:59 am
Nice... ;D
Title: Re: Advanced Analyze System
Post by: Fantasist on January 13, 2008, 04:39:31 am
All of Blizzard's scripts are compatible btw.
Title: Re: Advanced Analyze System
Post by: Nortos on January 13, 2008, 04:41:47 am
with each other yeah and with almost all scripts cept like CRLS with  advanced CBS or battle commands (though I made mine compatable with a cross command window :))
Title: Re: [XP] Advanced Analyze System
Post by: GAX on July 13, 2008, 08:00:50 pm
Necroposting a script, but with a good question.

I have monsters that would be unaffected by specific WEAPON classes.  I have separated weapon classes by creating an element for each weapon (1handed sword, 2handed sword, Katana, etc.), but I figure it might look a little wierd if the Weapon immunity appears as a status immunity.

Any way to get around this or should I just deal with it and refer to them as "Weapon Elements" instead of "Weapon Classes"?
Title: Re: [XP] Advanced Analyze System
Post by: Nortos on July 14, 2008, 02:03:53 am
Can't you just put that element in the dummy element section? and than write that it's immune to that weapon somewhere else?
Or am I missing the problem?
Title: Re: [XP] Advanced Analyze System
Post by: Blizzard on July 14, 2008, 08:38:03 am
It would appear as elemental immunity. Well, you'll have to edit the script a bit if you want them to appear as weapon classes. The best way would be to add those elements as dummies and make an addition that displays the weaknesses for weapon class elements. You'd have to copy paste the code for the elements and change the number of pages.
Title: Re: [XP] Advanced Analyze System
Post by: Exiled_by_choise on January 07, 2009, 11:03:01 pm
I but your Advanced Analyse System and your Beastiary scripts into my game but they don't work together.

The beastiary works by itself but when I but the analysis system with it the skill wont work and i can't see the monster.

Can you help me?? :) :)
Title: Re: [XP] Advanced Analyze System
Post by: Blizzard on January 08, 2009, 05:39:13 am
http://forum.chaos-project.com/index.php?topic=23.0
Title: Re: [XP] Advanced Analyze System
Post by: Exiled_by_choise on January 08, 2009, 07:55:17 pm
Thanx that really helped :) :) :)
Title: Re: [XP] Advanced Analyze System
Post by: clashlucifer on February 05, 2009, 10:56:52 pm
How can use with RTAB  :???:
Title: Re: [XP] Advanced Analyze System
Post by: Starrodkirby86 on February 05, 2009, 11:49:15 pm
Hopefully it works like usual with the RTAB. I do not see any compatibility issues with RTAB, but I have not tested this, so I'm quite unsure. Just configure it like how you usually configure a skill script like this. (Look in the Configuration part of the script and read the instructions :x).
Title: Re: [XP] Advanced Analyze System
Post by: Blizzard on April 08, 2009, 04:09:55 am
v2.21b is up. After about 2 years. xD
Title: Re: [XP] Advanced Analyze System
Post by: Blizzard on July 28, 2009, 03:28:39 pm
*double posts*

Update to v2.3b.
Title: Re: [XP] Advanced Analyze System
Post by: LordOfThunder on October 18, 2009, 09:46:31 am
Hi,

at first: Thanks for this precious script.
But I have a little trouble using it.

I want to have different Analyse-Skills which reveal more or less of the enemy, e.g.

Simple Analyse => Shows only BASIC and STATS
Better Analyse => Shows the above, plus EXTSTATS and XTRWEAK

Since now, I tried to set them via Common Event, made them global variables and have put them in an initialize function with a case-structure inside.
Unfortunately, nothing works. I always get some kind of error.

Can You help me please and tell me how to set the variables when calling a skill?

Thanks so far
Lord
Title: Re: [XP] Advanced Analyze System
Post by: Blizzard on October 18, 2009, 10:09:15 am
I did not intend this system to be able to create different analyzing skills.
Title: Re: [XP] Advanced Analyze System
Post by: Starmage on May 25, 2016, 03:40:19 pm
Hello!! first off, I really like this script!! Very nicely made!! Thanks so much for this!! xDD

But I'm having some sort of problem.. umm.. when I start the game, the skill works fine.. but when I use a save file of the project.. and I use the skill in battles.. this error pops up:

(http://i.imgur.com/OqJCK6I.png)

I don't know what I'm doing wrong x(( btw, I'm using Moonpearl scripts along with it! any help would be very appreciated!
Title: Re: [XP] Advanced Analyze System
Post by: KK20 on May 25, 2016, 03:48:05 pm
Quote
Compatibility

96% compatible with SDK v1.x. 70% compatible with SDK v2.x. May cause incompatibility issues with exotic CBS-es. WILL corrupt your old savegames.
Title: Re: [XP] Advanced Analyze System
Post by: Starmage on May 25, 2016, 04:01:06 pm
Ohh!! I just realized CBS stands for "Costume battle system"! xDD I forgot what it was, so sorry for my newbness once again!! And.. that is so sad indeed!! I was even hoping I could use the script for my project! x((

I wonder how I can do a scan skill without these problems though x((
Title: Re: [XP] Advanced Analyze System
Post by: KK20 on May 25, 2016, 04:12:32 pm
You said that it worked when you started a new game, but it failed when you used an old save file, right?
Quote from: KK20 on May 25, 2016, 03:48:05 pm
Quote
Compatibility

96% compatible with SDK v1.x. 70% compatible with SDK v2.x. May cause incompatibility issues with exotic CBS-es. WILL corrupt your old savegames.

Title: Re: [XP] Advanced Analyze System
Post by: Starmage on May 25, 2016, 04:31:51 pm
Yeahh!! Oh my!! But my problem is that, people have already played my project and have save-files already! x(( if they have to keep on restarting everytime I update my game, that would be quite tiresome for them! x((

I'm very sorry for the confusions caused Kk20! but I really do my best to cater to my project's players as much as possible.. x((
Title: Re: [XP] Advanced Analyze System
Post by: KK20 on May 25, 2016, 06:42:41 pm
How about throwing this code at the bottom of the script?

class Scene_Load < Scene_File
  alias load_adv_anal_sys on_decision
  def on_decision(filename)
    load_adv_anal_sys(filename)
    @analyze_mode ||= 0
    @analyzed ||= []
  end
end

inb4 blizz posts xD
Title: Re: [XP] Advanced Analyze System
Post by: Starmage on May 25, 2016, 11:47:11 pm
Thanks so much for this KK20, but the error still pops up! x(( hmm, maybe I did something wrong? I pasted your code at the bottom-most part of Blizzard's Advanced Analyze script right after the "end end end" from Scene_battle within the script.. or do you mean I paste it as another script placed below Advanced analyze script? x((
Title: Re: [XP] Advanced Analyze System
Post by: KK20 on May 26, 2016, 01:00:11 am
Oh wow I was tired.

class Scene_Load < Scene_File
  alias load_adv_anal_sys on_decision
  def on_decision(filename)
    load_adv_anal_sys(filename)
    $game_system.analyze_mode ||= 0
    $game_system.analyzed ||= []
  end
end
Title: Re: [XP] Advanced Analyze System
Post by: Starmage on May 26, 2016, 01:48:47 am
Thanks for your help KK20, but it seems I still get the error even though I used your new code now! Hmm!! I'm very sorry for all the trouble! and thanks once again for all your help! please take your time with this and don't be pressured by my request! I believe that you can find a remedy for this.. as you had for my previous problems Kk20! :)

Honestly, I couldn't find any other scan scripts that are perfect for my game right now except for this! which I really feel would be a big addition for my project! x((
Title: Re: [XP] Advanced Analyze System
Post by: KK20 on May 26, 2016, 02:23:26 am
It's probably script order then. I forgot your script list has a lot of instances where class methods are redefined. In other words, my fix is being ignored because some script below it is overwriting it.

In that case, put the snippet as far down as possible in your scripts list while still being above Main.
Title: Re: [XP] Advanced Analyze System
Post by: Starmage on May 26, 2016, 02:42:58 am
Umm, the problem is.. I've already put the script (Analyze along with your codes) at the most bottom part (above main)..

I did try putting the script vice-versa (above MP's scripts).. though there was no error, the skill didn't do anything (the spell was being cast by the char, all the animations took place.. but it didn't do anything as to reveal the enemies' data)..

So the problems on the orders were:

If at bottom most part or middle parts = The error pops up
If at top most part = there was no error, BUT, when the skill is cast, it does nothing!

OH! and here's my script.rxdata file (the one i'm using now), maybe you can see clearly there what might be the problem:
https://www.mediafire.com/?kvtmvegquhg7hzn

:(
Title: Re: [XP] Advanced Analyze System
Post by: KK20 on May 26, 2016, 03:01:09 am

class Scene_File < Scene_Base
  alias load_adv_anal_sys read_save_data
  def read_save_data(file)
    load_adv_anal_sys(file)
    $game_system.analyze_mode ||= 0
    $game_system.analyzed ||= []
  end
end

I guess aliasing that method actually does make more sense instead. I should change one of my scripts...
Title: Re: [XP] Advanced Analyze System
Post by: Starmage on May 26, 2016, 03:39:00 am
Woww!!!! It worked!! I am no longer encountering the error with the new safe-file!! and the skills worked perfectly fine now!! I knew you could find the remedy KK20!! Thank you so much!! xDD This script will be a very perfect additional feature in my game! and I cannot thank you guys enough! for the script itself and all the help that you've given!! :D

Your codes and patches are not only helpful for me, but also to everyone who may have encountered the same problems as I do! so thank you so much once again! :)