[XP] Creation System

Started by Blizzard, May 09, 2008, 12:24:45 pm

Previous topic - Next topic

Blizzard

May 09, 2008, 12:24:45 pm Last Edit: October 07, 2021, 10:25:11 am by Blizzard
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

  • create weapons, armors and items from scratch within the game
  • fully operational scenes for creation
  • special skills, normal attributes and material used determine the quality and attributes of created weapons, armors and items
v1.0b
  • added option for armors that allows changing the armor type
  • fixed crash bug that appeared when trying to set an Auto-State, but there is none available and the material menu wasn't entered yet
  • fixed crash bug with "set_stats"
  • now beta
v1.3b
  • fixed bug where created armors couldn't be equipped
  • fixed bug where attribute limit wouldn't apply
  • now it is possible to use armors and weapons as materials as well
  • improved coding
v1.31b
  • fixed bug where it wasn't possible to switch to the target animation selection window
v1.4b
  • fixed bug when trying to change the item hit rate
  • fixed bug where several item attributes wouldn't be limited
v1.5b
  • fixed bugs regarding level limitations and attribute appliance
v1.6
  • added new license
  • added usage and crediting instructions


Screenshots

Spoiler: ShowHide

Spoiler: ShowHide

Spoiler: ShowHide

Spoiler: ShowHide



Demo

Creation System

Script

Just make a new script above main and paste this code into it.
Script Download

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:
  • weapon/armor level systems
  • ordinary crafting systems
  • custom targeting systems
  • exotic equipment systems

Credits and Thanks

  • Boris "Blizzard" Mikić

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
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

diablosbud

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.

shdwlink1993

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
Stuff I've made:




"Never think you're perfect or else you'll stop improving yourself."

"Some people say the glass is half full... some half empty... I just wanna know who's been drinking my beer."

diablosbud

Someone should make a skill version of this that would be soooo, sweet!

Blizzard

May 12, 2008, 02:55:51 am #4 Last Edit: May 12, 2008, 02:58:31 am by Blizzard
@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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Caro Ru Lushe

Spoiler: ShowHide


All i all, I love it, Easier for me to no worry about making 100x of weapons for each characters =p

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Zeriab

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

Punn

Jahjah, dont drop the bomb please.. :(

Anyways this is a good script. I'll play with it later :P

Blizzard

May 24, 2008, 08:16:52 am #9 Last Edit: May 26, 2008, 02:33:50 am by Blizzard
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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Punn

I'll play with it later...  :-X

Fantasist

You always amaze me Bliz :o Heck, I wish I could check this out right now. Heck, I will someday. Good job man :thumbsup:
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




Ace

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?

Starrodkirby86

July 18, 2008, 10:46:56 am #13 Last Edit: July 18, 2008, 11:08:33 am by Starrodkirby86
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...

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




Ace

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.

Starrodkirby86

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.

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Ace

July 19, 2008, 09:44:31 pm #17 Last Edit: July 19, 2008, 10:12:53 pm by Ace
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.

Starrodkirby86

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)

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




Punn

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..

Blizzard

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?
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Starrodkirby86

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:

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




Xuroth

July 26, 2008, 03:29:42 am #22 Last Edit: July 26, 2008, 03:49:32 am by Xuroth
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}

diablosbud

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.

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

cstb

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...
Chronos: Failed project due to loss of data.
Maybe I could try again...


Which Final Fantasy Character Are You?
Final Fantasy 7

Blizzard

March 29, 2009, 11:16:10 am #26 Last Edit: March 29, 2009, 11:20:25 am by Blizzard
Crap, you're right. Lemme fix it.

EDIT: v1.31b is up.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

cstb

YAY!cant wait to get this back into my game!
Chronos: Failed project due to loss of data.
Maybe I could try again...


Which Final Fantasy Character Are You?
Final Fantasy 7

Blizzard

The fix was as simple as adding a "!" at the right position. xD
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

cstb

i think you forgot to post the script up...the script says the wrong version and i still cant switch:(
Chronos: Failed project due to loss of data.
Maybe I could try again...


Which Final Fantasy Character Are You?
Final Fantasy 7

Blizzard

Oops, sorry! I put it in the wrong folder on the server. I moved the file, now everything is fine.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

cstb

...its still not working  :o
Chronos: Failed project due to loss of data.
Maybe I could try again...


Which Final Fantasy Character Are You?
Final Fantasy 7

Blizzard

This line in v1.31b says that it does: "@anima_windows.each {|obj| obj.active = !obj.active}"
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

cstb

Chronos: Failed project due to loss of data.
Maybe I could try again...


Which Final Fantasy Character Are You?
Final Fantasy 7

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

cstb

aha!thanks blizz.Never thought of that for anything yet!who knows what the F5 button could do for me...
Chronos: Failed project due to loss of data.
Maybe I could try again...


Which Final Fantasy Character Are You?
Final Fantasy 7

cstb

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.
Chronos: Failed project due to loss of data.
Maybe I could try again...


Which Final Fantasy Character Are You?
Final Fantasy 7

Blizzard

April 21, 2009, 03:39:58 am #37 Last Edit: May 06, 2009, 01:31:14 pm by Blizzard
I'll look into it.

EDIT: Fixed.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

cstb

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...)
Chronos: Failed project due to loss of data.
Maybe I could try again...


Which Final Fantasy Character Are You?
Final Fantasy 7

Mightylink

I was thinking of using it but it looks more like a dev tool then a crafting system.

cstb

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.
Chronos: Failed project due to loss of data.
Maybe I could try again...


Which Final Fantasy Character Are You?
Final Fantasy 7

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Mightylink

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.

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Mightylink

I guess that works, I can just put My Weapon or something, alright, I will try it, thanks :)

Blizzard

Press CTRL+SHIFT+F and type
"Item <

and you should find it quickly.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

cstb

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
Chronos: Failed project due to loss of data.
Maybe I could try again...


Which Final Fantasy Character Are You?
Final Fantasy 7

Blizzard

June 01, 2009, 11:18:24 am #47 Last Edit: June 01, 2009, 02:18:19 pm by Blizzard
I'll fix it.

EDIT: Done.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

cstb

:D You get the fix pretty fast!Its like you already know its there and wait for me to ask lol.
And thanks!
Chronos: Failed project due to loss of data.
Maybe I could try again...


Which Final Fantasy Character Are You?
Final Fantasy 7

Calintz

Looks oh so cool, Lol.
I will test her sometime tonight.

Blizzard

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. :/
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Hellfire Dragon

Hey Blizzy, anyway I can set all icons available instead of doing it one by by one?

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Hellfire Dragon

QuoteSyntax Error occured while running script.


:(

Blizzard

It probably just split it in the wrong lines. Post how it looks like in the window (how it separates the lines).
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Hellfire Dragon


Blizzard

August 27, 2009, 03:15:37 am #56 Last Edit: August 27, 2009, 03:16:58 am by Blizzard
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}

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Hellfire Dragon

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:

Blizzard

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}

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Hellfire Dragon

Okay no error pop up, but the icons aren't there in the creation scene 0_o

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Hellfire Dragon

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

Blizzard

September 03, 2009, 03:59:28 pm #62 Last Edit: September 03, 2009, 04:06:38 pm by Blizzard
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}
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Hellfire Dragon

September 03, 2009, 04:09:42 pm #63 Last Edit: September 03, 2009, 04:12:38 pm by Hellfire Dragon
:D works
ty Blizzy :)

Blizzard

I tried it with CP's Icons folder. The vast amount of icons on one screen looks awesome. xD
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Hellfire Dragon

Cool 8)

How do Auto-States work btw? I didn't see anything about them in the instructions :???:

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.