Wardrobe Script (From Code Off Challenge #1)

Venka

Veteran
Veteran
Joined
Jun 20, 2012
Messages
945
Reaction score
365
First Language
English
Primarily Uses
OK.. so finally got around to trying to fix up the issues this entry had. I think I've fixed all the bugs that were found there and applied the suggestions so now there's hardly any frame rate lost.

This script lets you change any actor's appearance, just like you're using the character generator. You can set up what you'd like to change in a scene.. like a barber shop would handle only changes to hair and maybe apply some spray tan to change the skin tone. You can choose if you can set your characters' appearances to whatever files are available or if they have to find items that allow you to select them first. I had plans of making the characters' appearances auto updating when you find gear and equip it, but I haven't had the chance to implement that yet.

Demo link: https://www.dropbox.com/s/oosz4ok72ve973d/Venka%20Wardrobe.exe?dl=0

screen shots:

Hair.png

Outfit.png

WardrobeShot.png
edit: Updated demo. Fixed a crash when you had an actor with no notetag information. Now you'll get a bald swim suit wearing sprite if there are no notetags :)
 
Last edited by a moderator:

Bastrophian

The Pixel Heartist!
Veteran
Joined
Oct 26, 2013
Messages
3,830
Reaction score
2,070
First Language
English
Primarily Uses
Other
Hello, this looks interesting! :) . I was actually looking for something like this a while back. What are the terms of use, just wondering.
 
Last edited by a moderator:

Venka

Veteran
Veteran
Joined
Jun 20, 2012
Messages
945
Reaction score
365
First Language
English
Primarily Uses
Oh..I always forget that stuff. I'm OK with commercial use and all that. A link to finished or demo ready would be nice just to see the work put to use, but that's not a requirement. The background image in the demo isn't free to use as I downloaded it off a wiki site.

Oh and just credit me for the script wherever your project does credits.
 

Bastrophian

The Pixel Heartist!
Veteran
Joined
Oct 26, 2013
Messages
3,830
Reaction score
2,070
First Language
English
Primarily Uses
Other
Oh..I always forget that stuff. I'm OK with commercial use and all that. A link to finished or demo ready would be nice just to see the work put to use, but that's not a requirement. The background image in the demo isn't free to use as I downloaded it off a wiki site.

Oh and just credit me for the script wherever your project does credits.
Will do! :D
 

Venka

Veteran
Veteran
Joined
Jun 20, 2012
Messages
945
Reaction score
365
First Language
English
Primarily Uses
Updated the download link.

You could create a party with no one in it and it'd crash the game.. this is now fixed :) Also having no followers in the party (weather it was checked as an option or not) would crash the game. This is now fixed as well :)
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
I just noticed this nice script here!


The bugs are fixed, amazing! *-*


A small suggestion:


Could we show somewhere the name of the currently viewed item?


It is really confusing sometimes, when the selected item is barely visible or not visible at all because of some other items equipped, and we have no way to check what is the selected item other than the visuals.


And an indicator how many items we have altogether and a display of where are we in the list of available items. You know, "1/12" on the first item, then pressing right twice would make it "3/12" and pressing left from there once makes it "2/12", and so on.


It still halves my FPS, by the way. :p
 

Venka

Veteran
Veteran
Joined
Jun 20, 2012
Messages
945
Reaction score
365
First Language
English
Primarily Uses
I tried with the FPS =P

I'm having a really hard time wanting to work on this script. It has a lot that can be done with it.. Like at some point I would want to give the option of auto changing the actor's appearance when they change a piece of equipment and a way to turn off the custom images for a given actor.. for when folks want to use a non humanoid character (like a pet companion).

But I can definitely put in the name of the image used some place. I'll make some time to do it in the next couple of days.
 

Venka

Veteran
Veteran
Joined
Jun 20, 2012
Messages
945
Reaction score
365
First Language
English
Primarily Uses
ok updated the demo with a new window that will show the file's name. You can turn this window on or off to your choosing ;)

screenshot:

 

Yugane

Villager
Member
Joined
Feb 16, 2013
Messages
6
Reaction score
0
First Language
Indonesian
Primarily Uses
Hey, thank you for posting this helpful script!

A little question-- I want to make it so if a player chose a correct combination of clothing, they would get buffs or stat boost. Will it be possible to do that with this script and how?

Thank you in advance!
 

Venka

Veteran
Veteran
Joined
Jun 20, 2012
Messages
945
Reaction score
365
First Language
English
Primarily Uses
It's not possible with my script by itself.

If you check the code off challenge this is from here.. scroll down to Dekita's entry and his does stats and face changes per change.

Of there was a script that checks your equipment so you could do things (here). You could probably set up a system that way. It will auto flip switches if a piece of gear is equipped so you could check if switches x,y,z are on and apply a state.
 

Yugane

Villager
Member
Joined
Feb 16, 2013
Messages
6
Reaction score
0
First Language
Indonesian
Primarily Uses
Thanks. I'll try that.
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,203
First Language
Binary
Primarily Uses
RMMZ
@Venka - Stat modifications are easy as hell to add into anything... 

Here is an example... (note:  I cant view your wardrobe script atm cause not on my comp and cant download on this one...)

Anyway...

What I would do is simply create some kind of 'outfit' hash that checks is user is wearing X&Y&Z and then applies some kind of stat enhancement if true... something like...

module Venka_Outfit_Stats Outfit_Hash = {} Outfit_Hash[:outfit_A] = { items: ["Image_Name_A","Image_Name_C","Image_Name_C" ], # // :stats = [mhp,mmp,atk,def,mat,mdf,agi,luk] stats: [100,0,0,10,0,10,0,0], } def self.has_any_outfit?(actor) Outfit_Hash.each do |key, value| next unless key && value value[:items].each do |itemimagename| # // perform some kinda check to see if # // actor is wearing item 'itemimagename' # // im assuming your script already has such a method... # // if not, easy enough to make really... return false unless actor.has_wardrobe_item?(itemimagename) end return value[:stats] end return false end def self.outfit_stat_gain(actor,param_id) outfit_stat = has_any_outfit?(actor) return 0 unless outfit_stat return outfit_stat[param_id] endendclass Game_Actor alias :param_stat_alias :params def params(param_id) param_stat_alias(param_id) + Venka_Outfit_Stats.outfit_stat_gain(self,param_id) endendLiterally... All you should have to do to make that code function is change the line 

  return false unless actor.has_wardrobe_item?(itemimagename)to an actual method your script has to check the name of an image layer and it should function. :D

Edit: 

You could also just return the key rather than the value[:stats] array, then you can add the key into some variable that can be used for other crap, dunno, might be useful for something :p

The example :outift_A simply adds 100 hp, and then 10 each of def and mdf. 

I love stats...
 
Last edited by a moderator:

BOM0001

Warper
Member
Joined
Feb 26, 2015
Messages
1
Reaction score
0
First Language
English
Primarily Uses
So, I imported the script to the game and everything seems to be working fine, until I started the game. In the game, I cannot see any of the options, i.e. the accessory and bear and clothes etc, and if I try moving around, an error pops up with a noMethodError, saying that there is no defined method called 'size' any idea, and how I can fix this?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,019
Members
137,564
Latest member
McFinnaPants
Top