Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: Blizzard on May 09, 2008, 12:24:45 pm

Title: [XP] Creation System
Post by: Blizzard on May 09, 2008, 12:24:45 pm
Creation System
Authors: Blizzard
Version: 1.6
Type: In-game Weapon/Armor/Item Creation System
Key Term: Misc System

Introduction

This script allows you to create completely original Weapons, Armors and Items during the game. It is easy to set up, easy to use and has a very large number of possiblities.

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:
QuoteCreation 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:
QuoteCreation 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. "Creation System created by Blizzard" is acceptable). But if possible, prefer to use one of the two variants listed above.


Features

v1.0b
v1.3b
v1.31b
v1.4b
v1.5b
v1.6


Screenshots

Spoiler: ShowHide
(http://img211.imageshack.us/img211/2941/snap558mf2.th.png) (http://img211.imageshack.us/img211/2941/snap558mf2.png)

Spoiler: ShowHide
(http://img211.imageshack.us/img211/3686/snap559ac1.th.png) (http://img211.imageshack.us/img211/3686/snap559ac1.png)

Spoiler: ShowHide
(http://img211.imageshack.us/img211/9504/snap561nq7.th.png) (http://img211.imageshack.us/img211/9504/snap561nq7.png)

Spoiler: ShowHide
(http://img211.imageshack.us/img211/5450/snap372qk2.th.png) (http://img211.imageshack.us/img211/5450/snap372qk2.png)



Demo

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

Script

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

Instructions

Inside the script in the first comment.

Compatibility

90% compatible with SDK 1.x. 80% compatible with SDK 2.x. WILL corrupt your old savegames. Can cause incompatibilty issues with following scripts:

Credits and Thanks


Author's Notes

Please read the instructions, they contain important information.

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

That's it! N-Joy! =D
Title: Re: [XP] Creation System
Post by: diablosbud on May 11, 2008, 12:09:50 am
Hey this is the coolest script I have ever seen! Good job Blizzard this is sick. I was toying around with the demo testing this script and I caught an error. It happens on the item creation when I go to extras/variance and hit back (ESC). Here is the error: "Script ' (*) Creation System' line 2202: NoMethodError occurred.

undefined method 'set stats' for #<RPG::Item:0x3396358>". I hope you can fix this and I definitaly am using this in my game as special rewards and such for hard quests.
Title: Re: [XP] Creation System
Post by: shdwlink1993 on May 11, 2008, 12:52:12 am
HOLY ****, THIS IS INCREDIBLE! :o :o :o :o :o

I- This thing lets you make a completely new item!!! This is amazing! I get lightheaded just thinking about it! It's an item generator! How sweet is this? Awesome! :D
Title: Re: [XP] Creation System
Post by: diablosbud on May 11, 2008, 09:41:41 am
Someone should make a skill version of this that would be soooo, sweet!
Title: Re: [XP] Creation System
Post by: Blizzard on May 12, 2008, 02:55:51 am
@diablosbud: I know, Zeriab already reported that. I also forgot to add that you can define the armor type under "Extras" in the armor screen. I might put a skill plugin up somewhere later or actually integrate it into this script. Now you can all go and copy Morrowind and Oblivion with their creation systems. :3

@shdwlink1993: I know. :P I took a day off last weekend (the one 7 days ago) to finally finish this script. It took a day and it was only the last 20%, maybe 30% of the script. This script took a lot of time to make. No wonder it has more than 2000 lines of code, that's almost as much as my CMS.
Title: Re: [XP] Creation System
Post by: Caro Ru Lushe on May 12, 2008, 03:25:06 am
Spoiler: ShowHide
(http://img161.imageshack.us/img161/369/34t543grow6.png) (http://imageshack.us)


All i all, I love it, Easier for me to no worry about making 100x of weapons for each characters =p
Title: Re: [XP] Creation System
Post by: Blizzard on May 12, 2008, 03:51:13 am
As I already said, Zeriab reported that bug to me. I didn't fix it before I put up this version because I didn't add the armor type selection as well, but wanted to put it up ASAP.
Title: Re: [XP] Creation System
Post by: Zeriab on May 23, 2008, 05:11:23 am
What's this?
You ask for bug reports and when you get them you complain?
Instead you should fix them and be nice :x

That being said thanks for sharing this nice system <3
Title: Re: [XP] Creation System
Post by: Punn on May 23, 2008, 07:31:30 am
Jahjah, dont drop the bomb please.. :(

Anyways this is a good script. I'll play with it later :P
Title: Re: [XP] Creation System
Post by: Blizzard on May 24, 2008, 08:16:52 am
No, no, no! I'm not complaining, I'm just asking for patience until I have time to fix this. :)

EDIT: Ok, I was writing yesterday a part of my diploma thesis and at one moment I needed a serious break. So I took off half an hour to relax with RMXP scripts and fixed the bugs in this one. xD I updated it to 1.0b. It should work fine now.
Title: Re: [XP] Creation System
Post by: Punn on May 26, 2008, 06:56:14 am
I'll play with it later...  :-X
Title: Re: [XP] Creation System
Post by: Fantasist on June 15, 2008, 02:38:35 am
You always amaze me Bliz :o Heck, I wish I could check this out right now. Heck, I will someday. Good job man :thumbsup:
Title: Re: [XP] Creation System
Post by: Ace on July 18, 2008, 10:27:21 am
What am I doing wrong? For some reason, when I make weapons, they end up with 0 attack. What stat of the crafting items influences the attack stat of the weapon made?

Or did I not do something correctly with the script's database?
Title: Re: [XP] Creation System
Post by: Starrodkirby86 on July 18, 2008, 10:46:56 am
None of the ingredients within the demo have an attack modifier. By what I mean attack modifier I mean a Physical Attack. You would need an item that modifies the P.ATK or P.DEF in order to have something added on. I don't know specifically how to edit that in items, as the only area I can find P.ATK would be within weapons...This is the dumbest solution ever, forgive me.

EDIT: Now I'm wondering here. I tried every parameter and stat for items, and now you would have to go for weapons if it were to work (In other words, I can't find anything that influences Attack OR P.DEF). I would use my forged weapons if only they had attack (I enabled Recursive Use, FYI). Now I'm curious, can you enable weapons and armors to be forged back into something stronger? I only see items in the script. I'm sure it can be added, just that you would need to tread through very dark alleys...
Title: Re: [XP] Creation System
Post by: Ace on July 18, 2008, 11:09:18 am
Hmm... I can't find out how to use weapons for creation materials.

I used the script in my little game, and made my own ingredients.
Title: Re: [XP] Creation System
Post by: Starrodkirby86 on July 18, 2008, 11:16:10 am
Quote from: Ace on July 18, 2008, 11:09:18 am
Hmm... I can't find out how to use weapons for creation materials.
Likewise.

I would assume the following code would find from which array to use:
  def self.cs_materials(item)
    return item.quality if RECURSIVE_USE && item.id >= 1000
    id = item.id
    factor = case id

But simply replacing item with "weapon" or "weapons" is failure. There probably are more database array configuration codes than just this one. Either that, or I'm using the wrong term.
Title: Re: [XP] Creation System
Post by: Blizzard on July 19, 2008, 11:07:46 am
I actually haven't enabled weapons and armors to be used as materials. O_o Are you sure that nothing can affect ATK and PDEF? If yes, I'll fix that soon, maybe even today.
Title: Re: [XP] Creation System
Post by: Ace on July 19, 2008, 09:44:31 pm
I haven't checked with the PDEF, for I have not tried making armor. I was just tinkering around with the weapon creation. I'll try it out now, but due to me having to uninstall Ubuntu , a Linux build, and format my second HDD, It may take a while for my 256 RAM comp to process firefox, RMXP, and fdisk.

tldr: Comp r slo.

EDIT: Nope. Set all item stats to 100, and all that was affected was the cost.
Title: Re: [XP] Creation System
Post by: Starrodkirby86 on July 20, 2008, 10:13:25 pm
Blizz's creation system is derived from very simple factors. Basically, whatever stats that can be used will be used for the final weapon. So if you use an item that increases the strength parameter for example, then your masterpiece will have that strength up. So 5 Strength Seeds would be 25 Strength towards your weapon. Unfortunately, strength does not determine the overall strength of your weapon so it ends up as a failure anyway. Items that heal or whatnot do nothing. The only affect is the cost raises. Items that are used as elements and whatnot will be the element/effect for the weapon unless it is conflicted or the item in the script is not considered an elemental changer.

Just stating the obvious, thanks Blizz. :)

(When I say weapon I also mean armor/item)
Title: Re: [XP] Creation System
Post by: Punn on July 21, 2008, 07:16:22 am
I like this, but I hate how ANY item can be used and ANY weapon, or item can be made, I thought you can add something like giving a weapon or equipment an element, or upgrading the equipment..

Meh.. this is nice either way, this gave me an idea for a game that will never be released..
Title: Re: [XP] Creation System
Post by: Blizzard on July 21, 2008, 08:01:41 am
It's true, this system requires a lot of fine tuning for real use. I've put up v1.3b.

@SRK & Ace: You do realize that the level of the creation skill needs to be high enough (ATTR_LVL_LIMIT) so attribute changes (like STR) apply on created objects?
Title: Re: [XP] Creation System
Post by: Starrodkirby86 on July 25, 2008, 12:38:45 pm
Quote from: Blizzard on July 21, 2008, 08:01:41 am
You do realize that the level of the creation skill needs to be high enough (ATTR_LVL_LIMIT) so attribute changes (like STR) apply on created objects?
If you're saying that you need to be a high enough level to use the item (Enough Creation Skill EXP/Level), then I already realize that, yes. I set myself to max every time I started that demo up. Oh well, now there's v. 1.3b  :up:
Title: Re: [XP] Creation System
Post by: Xuroth on July 26, 2008, 03:29:42 am
version 1.3b gave me two syntax errors. one on 1490 and on 1498

if you get these errors, a fix is this:


        1490     elsif @type == 0 && item.is_a?(RPG::Weapon)
         1491        @object.atk = item.atk if @object.atk < item.atk
         1492     elsif @type == 1 && item.is_a?(RPG::Armor)
         1493        @object.pdef = item.pdef if @object.pdef < item.pdef
         1494        @object.mdef = item.mdef if @object.mdef < item.mdef
         1495     end
         1496  end


change the elsif in
 1490     elsif @type == 0 && item.is_a?(RPG::Weapon) 
to if, and remove the end on line 1496 but if you do not have these same lines on these numbers (depends on script link or script from demo) then on line 1924 there should be a command called end. delete it. (the longer fix is for the demo, the second one for if you used the script link.)

DONT MODIFY THESE LINES IF USING A DIFFERENT VERSION THAN 1.3b!!! Also, if you do NOT get these errors, then do NOT modify.

[EDIT]: Blizz updated the script. It works now... my bad...

My Rant: ShowHide
 I spent FOREVER reading through the code, and it didnt make any logical sense in those areas... I wasted so much time, because while I mentioned the error in another post, Blizz, the god he is, caught the error in no time flat, fixed it, and re uploaded it... poor me... {cries +4 Tears of Self-Pity}
Title: Re: [XP] Creation System
Post by: diablosbud on July 29, 2008, 08:22:05 pm
Could you make this system support class creation?! This would be sick, instead of always using a pre-made class, you could make your own, selecting the skills that they can use, and spending a certain ammount of stat points, starting at certain default points made by the creator! It would be like in Oblivion, or CoD4. You name your class, spending a certain ammount of stat points, and then selecting every skill your class learns, each skill has a certain level learned at, so the game cannot be cheap, and easy. Could you please make this it would be awsome! Also a skill making system would be cool too, using items and things to make magic effects, and upgrade power, accuracy, and stuff.
Title: Re: [XP] Creation System
Post by: Blizzard on July 31, 2008, 06:44:26 pm
This would require time. I most probably won't add any extra features to this script. I was thinking of a skill creation plugin, but I changed my mind.
Title: Re: [XP] Creation System
Post by: cstb on March 29, 2009, 10:46:12 am
so Im not sure how to use this completely. how do i switch to make target animations?i press left and right but it never works...
Title: Re: [XP] Creation System
Post by: Blizzard on March 29, 2009, 11:16:10 am
Crap, you're right. Lemme fix it.

EDIT: v1.31b is up.
Title: Re: [XP] Creation System
Post by: cstb on March 29, 2009, 11:21:20 am
YAY!cant wait to get this back into my game!
Title: Re: [XP] Creation System
Post by: Blizzard on March 29, 2009, 11:24:16 am
The fix was as simple as adding a "!" at the right position. xD
Title: Re: [XP] Creation System
Post by: cstb on March 29, 2009, 11:27:43 am
i think you forgot to post the script up...the script says the wrong version and i still cant switch:(
Title: Re: [XP] Creation System
Post by: Blizzard on March 29, 2009, 11:35:34 am
Oops, sorry! I put it in the wrong folder on the server. I moved the file, now everything is fine.
Title: Re: [XP] Creation System
Post by: cstb on March 29, 2009, 11:42:28 am
...its still not working  :o
Title: Re: [XP] Creation System
Post by: Blizzard on March 29, 2009, 11:44:38 am
This line in v1.31b says that it does: "@anima_windows.each {|obj| obj.active = !obj.active}"
Title: Re: [XP] Creation System
Post by: cstb on March 29, 2009, 11:46:02 am
Phrase Not Found -_-
Title: Re: [XP] Creation System
Post by: Blizzard on March 29, 2009, 11:47:32 am
Oh, you mean that you can't access the script. After you open the script window, you should press F5 to refresh it. Your browser is probably showing you the cached version. If it doesn't work, try restarting the browser.
Title: Re: [XP] Creation System
Post by: cstb on March 29, 2009, 11:49:08 am
aha!thanks blizz.Never thought of that for anything yet!who knows what the F5 button could do for me...
Title: Re: [XP] Creation System
Post by: cstb on April 20, 2009, 08:46:26 pm
WARNING!Another bug   :<_<:. This time when you change item hit rate it gives an error.I don't have a copy of my game with the error so i cant give you any thing specific.
Title: Re: [XP] Creation System
Post by: Blizzard on April 21, 2009, 03:39:58 am
I'll look into it.

EDIT: Fixed.
Title: Re: [XP] Creation System
Post by: cstb on May 07, 2009, 06:24:18 am
I thought some awesome games on CP would have a creation system. I guess mine will be the first.
(1/??? Scripts
1/500 Maps
0/50 Special Unique...Things...)
Title: Re: [XP] Creation System
Post by: Mightylink on May 07, 2009, 09:13:26 am
I was thinking of using it but it looks more like a dev tool then a crafting system.
Title: Re: [XP] Creation System
Post by: cstb on May 07, 2009, 09:22:08 am
Its actually alot of fun to use this system to make your weapons!Try looking up the Taneki Battle System for XP and use it with this!Btw i dont know how to spell the REAL name of it.Its some word of another language lol.And blizz a good idea for this to make it more compatable with the battle system i use is to remove USER animation.
I would not like to go into a game and find that the user animation does not work in it.
Title: Re: [XP] Creation System
Post by: Blizzard on May 07, 2009, 10:18:32 am
You would need to edit the script then so that you can't set up the user animation. :P

@MightyLink: Ever played Morrowind or Oblivion? This system is as powerful.
Title: Re: [XP] Creation System
Post by: Mightylink on May 08, 2009, 12:32:37 am
We'll I guess I'll give it a shot, I might fall in love with it, but I gata be honest with you, the default name and description "Item <001>" is a real turn off... Maby you could have in the config the option for default names like "Sword" or "My Sword" or have a list for random name generation.

The item description is a hard one, perhaps you can get it to catch the first material used to make the sword and the description can say by default "A sword made out of (item)." But of course keep these 2 fields editable so the player can still write there own names and descriptions.
Title: Re: [XP] Creation System
Post by: Blizzard on May 08, 2009, 03:20:56 am
Meh. There are too many ways to do this. The most convenient way for all is "Item <001>". And if somebody doesn't like it, just find the part in the script that defines this and change it.
Title: Re: [XP] Creation System
Post by: Mightylink on May 08, 2009, 03:25:54 am
I guess that works, I can just put My Weapon or something, alright, I will try it, thanks :)
Title: Re: [XP] Creation System
Post by: Blizzard on May 08, 2009, 04:10:25 am
Press CTRL+SHIFT+F and type
"Item <

and you should find it quickly.
Title: Re: [XP] Creation System
Post by: cstb on June 01, 2009, 10:45:53 am
Another Bug.PWR Level Limit turned off only effects weapons! My armor only will take one item increasing PDEF!Well at least I made over 150 items so far XD
Title: Re: [XP] Creation System
Post by: Blizzard on June 01, 2009, 11:18:24 am
I'll fix it.

EDIT: Done.
Title: Re: [XP] Creation System
Post by: cstb on June 01, 2009, 02:55:15 pm
:D You get the fix pretty fast!Its like you already know its there and wait for me to ask lol.
And thanks!
Title: Re: [XP] Creation System
Post by: Calintz on June 01, 2009, 04:35:45 pm
Looks oh so cool, Lol.
I will test her sometime tonight.
Title: Re: [XP] Creation System
Post by: Blizzard on June 01, 2009, 05:54:18 pm
HER?! O_O

@cstb: Yeah, it's a small bug and I know what I need to do to fix it so I do it. In my other scripts it takes time. i.e. to prepare a Blizz-ABS version for release I need at least 30 minutes just to update all the documentation. :/
Title: Re: [XP] Creation System
Post by: Hellfire Dragon on August 25, 2009, 03:59:59 pm
Hey Blizzy, anyway I can set all icons available instead of doing it one by by one?
Title: Re: [XP] Creation System
Post by: Blizzard on August 26, 2009, 03:21:24 am
Use this script call:

Dir.foreach('Graphics/Icons') {|name|
 if name != '.' && name != '..'
   filename = "#{source}/#{name}"
   if FileTest.file?(filename)
     name = name.sub('.png') {''}.sub('.bmp') {''}.sub('.jpg') {''}
     $game_system.unlock_icon(name)
   end
  end}


This should do it.
Title: Re: [XP] Creation System
Post by: Hellfire Dragon on August 26, 2009, 06:54:37 am
QuoteSyntax Error occured while running script.


:(
Title: Re: [XP] Creation System
Post by: Blizzard on August 26, 2009, 07:33:46 am
It probably just split it in the wrong lines. Post how it looks like in the window (how it separates the lines).
Title: Re: [XP] Creation System
Post by: Hellfire Dragon on August 26, 2009, 01:48:23 pm
Here ya go,
Spoiler: ShowHide
(http://img165.imageshack.us/img165/3079/scrd.png)
Title: Re: [XP] Creation System
Post by: Blizzard on August 27, 2009, 03:15:37 am
Make it look exactly like this:

Dir.foreach('Graphics/Icons') {|name|
 if name != '.' && name != '..'
   filename = "#{source}/#{name}"
   if FileTest.file?(filename)
     name = name.sub('.png') {''}.
sub('.bmp') {''}.sub('.jpg') {''}
     $game_system.unlock_icon(name)
   end
 end}

Title: Re: [XP] Creation System
Post by: Hellfire Dragon on August 27, 2009, 03:24:00 pm
I set it up exactly like that got this,
Quote
NameError occurred while running script.

undefined local variable or method 'source' for #<Interpreter:0x3e66e78>

:uhm:
Title: Re: [XP] Creation System
Post by: Blizzard on August 28, 2009, 03:25:26 am
Dir.foreach('Graphics/Icons') {|name|
  if name != '.' && name != '..'
    filename = "Graphics/' +
      'Icons/#{name}"
    if FileTest.file?(filename)
      name = name.sub('.png') {''}.
sub('.bmp') {''}.sub('.jpg') {''}
      $game_system.unlock_icon(name)
    end
  end}

Title: Re: [XP] Creation System
Post by: Hellfire Dragon on September 02, 2009, 03:02:05 pm
Okay no error pop up, but the icons aren't there in the creation scene 0_o
Title: Re: [XP] Creation System
Post by: Blizzard on September 03, 2009, 04:22:36 am
Dir.foreach('Graphics/Icons') {|name|
  if name != '.' && name != '..'
    filename = "Graphics/' +
      'Icons/#{name}"
    if FileTest.file?(filename)
      n = name[0, name.size - 4]
      $game_system.unlock_icon(n)
    end
  end}


Try this.
Title: Re: [XP] Creation System
Post by: Hellfire Dragon on September 03, 2009, 01:54:03 pm
Still not showing anything. Maybe something to do with another script? Though all I'm using the is Blizz ABS, G_G's skill shop, ATES, the Z-HUD and the creation system, all in the right order :P oh and the Save File System
Title: Re: [XP] Creation System
Post by: Blizzard on September 03, 2009, 03:59:28 pm
Ok, now I'm going to test this.

EDIT: Here you go. Just keep in mind that it doesn't work on RTP icons. They MUST be in the game's Graphics/Icons folder.

Dir.foreach('Graphics/Icons') {|name|
  if name != '.' && name != '..'
    filename = "Graphics/" +
      "Icons/#{name}"
    if FileTest.file?(filename)
      n = name[0, name.size - 4]
      $game_system.unlock_icon(n)
    end
  end}
Title: Re: [XP] Creation System
Post by: Hellfire Dragon on September 03, 2009, 04:09:42 pm
:D works
ty Blizzy :)
Title: Re: [XP] Creation System
Post by: Blizzard on September 03, 2009, 04:11:49 pm
I tried it with CP's Icons folder. The vast amount of icons on one screen looks awesome. xD
Title: Re: [XP] Creation System
Post by: Hellfire Dragon on September 03, 2009, 04:14:09 pm
Cool 8)

How do Auto-States work btw? I didn't see anything about them in the instructions :???:
Title: Re: [XP] Creation System
Post by: Blizzard on September 03, 2009, 05:20:19 pm
If I remember right, it's part of the plus states subsystem. If you have two materials with state plus, you can select which of them will be the auto-state in the new armor.