Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[VX] Change Clothing Ver 2.0 (UPDATED June 9, 2008)

Change Clothing
Version: 2.0
Author: YoungBlaze
Date: June 9, 2008

Version History


  • Version 1.0
    Version 2.0 - Easyer To Keep Track Common Events


Planned Future Versions



  • Version 3.0 - Party Can Also Change Clothing


Description


Change Of Equipment Makes Sprite Change


Features



  • Change Of Sprite's Looks


Screenshots
Version 1.0
Version 2.0
N/A
Instructions



Put The Script Below Above Main.
Go To DataBase And Click On Armors Create 3 Armors One For Helmet, Body Amror, Sheild And Go To Wepons And Make On For Wepons Name All Of These "(None)"
Make It That You Start Off With All Characters Haveing "(None)" On All There Equiptment.


Script


Code:
class Scene_Equip < Scene_Base

#--------------------------------------------------------------------------

# * Update Status Window !OVERRIDE! 

#--------------------------------------------------------------------------

def update_status_window

if @equip_window.active

@status_window.set_new_parameters(nil, nil, nil, nil)

elsif @item_window.active

return if @item_window.item.nil?

temp_actor = @actor.clone

temp_actor.change_equip(@equip_window.index, @item_window.item, true)

new_atk = temp_actor.atk

new_def = temp_actor.def

new_spi = temp_actor.spi

new_agi = temp_actor.agi

@status_window.set_new_parameters(new_atk, new_def, new_spi, new_agi)

end

@status_window.update

end

#--------------------------------------------------------------------------

# * Update Item Selection !OVERRIDE!

#--------------------------------------------------------------------------

def update_item_selection

if Input.trigger?(Input::B)

Sound.play_cancel

@equip_window.active = true

@item_window.active = false

@item_window.index = -1

elsif Input.trigger?(Input::C)

return if @item_window.item.nil?

Sound.play_equip

@actor.change_equip(@equip_window.index, @item_window.item)

@equip_window.active = true

@item_window.active = false

@item_window.index = -1

@equip_window.refresh

for item_window in @item_windows

item_window.refresh

end

end

end

end


Credit



YoungBlaze

khmp For Makeing Me The "Must Be Equiped" Script




Thanks
ME



Support



If You Have Any Problems Or Need Any Help Just Post It Here And Ill Do My Best To Help



Known Compatibility Issues


None




Demo




Version 1.0
Download


Version 2.0
Download




Restrictions



Only Thing Is That You Credit Me If Used Thx :D
 

tuti05

Member

i tried this before and got it working myself, did you have to make each equipment conditional branch in a different event? thats the only way it worked for me, i tried with all the branches in one event and it was all buggy.
 
To me this seems like with all of the different sprites you'd need (note: I haven't tried demo yet; correct me if I'm wrong), it would take up a lot of space, expecially in a long game with a lot of equipment.
 
van helblaze":3dp7unji said:
To me this seems like with all of the different sprites you'd need (note: I haven't tried demo yet; correct me if I'm wrong), it would take up a lot of space, expecially in a long game with a lot of equipment.
It Migth Take Up Some Space But Its Worth It In The Long Run Because You Wont Have To Look At The Same Boring Spirte All The Time


tuti05":3dp7unji said:
:shock: Thank You I Fogot To Add That That Is What I Used To Make The Sprites
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top