RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Equipaments on Screen

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 84
Equipment on Screen
By : Rafidelis

About the script:

This script shows their equipment on the screen, you can choose between using and not using an image of substance.
The 3 types available for use, you must TYPE in the mo0dificar variable, you must use from 1 to 3 (see the pictures and to learn how each type)






Features:
[/size]

You can show the 5 equipment (gun, shield, helmet, armor and accessories) to show some and not so follow the instructions in the Script
You may or may not use images if you want you can use one of the 3 images below, or create your custom.
And remembering that already own script turns the image if you choose the type 2 ^ ^

ScreenShots

TYPE 1



TYPE 2



TYPE 3


Code: [Select]
module Rafidelis_Equipamentos   
#==============================================================================|
# S T A R T   O F  C O N F I G U R A T I O N S    |    
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|


# Leave at True to show the icon Equipment | False not to Show |
MOSTRAR_ARMA = true
# Leave at True to show the icon of the Shield | False not to Show |
MOSTRAR_ESCUDO = true
# Leave at True to show the icon of the helmet | False not to Show |
MOSTRAR_ELMO = true
# Leave at True to show the icon of Armor | False not to Show |
MOSTRAR_ARMADURA = true
# Usar Imagem de fundo?
  # Leave at True to show the icon of Acessories| False not to Show |
MOSTRAR_ACESSORIO = true
# Opacity of Windows that will show the icons of Equipment
OPACIDADE = 0
# Use background image?
USAR_IMG = true
# If above is true, what is the name of the image being used?
IMG_NOME = "Equip2"

#==============================================================================|
# D I S P L A Y  T Y P E |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
# 1 to display the icons horizontally on top of the SCREEN |
#------------------------------------------------- -----------------------------|
# 2 To view the icons at the left corner of VERTICAL SCREEN |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
# 3 To view the icons horizontally in the bottom of the SCREEN |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
# IF YOU ARE NOT USING A number 1 or 2 or 3 The script will generate an error
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
TIPO = 2
  end 
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 

class Rafidelis_Equip_Window < Window_Base 
  def initialize(x,y,n)
@n = n 
@x = x
@y = y
super(x,y,56,56)
refresh
  end
end
#==============================================================================|
# R E F R E S H
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
def refresh
  self.contents.clear
  @actor = $game_party.members[0]
  draw_item_name(@actor.equips[@n], 0, 0)
end
#==============================================================================|
# S T A R T O F   C L A S S S C E N E   M A P   |
#------------------------------------------------------------------------------|

class Scene_Map
  include Rafidelis_Equipamentos
  alias rafidelis_start start
  alias rafidelis_terminate terminate
  alias rafidelis_update update
 
  def start
#-------------------------------------------------------------------------------
   @Window_Equip = nil
if TIPO == 1  
  @Window_Equip = Rafidelis_Equip_Window.new(0,0,0)
elsif TIPO == 2  
  @Window_Equip = Rafidelis_Equip_Window.new(0,0,0)
elsif TIPO == 3
  @Window_Equip = Rafidelis_Equip_Window.new(0,360,0)
end
if MOSTRAR_ARMA == true
  @Window_Equip.visible = true
else
  @Window_Equip.visible = false
end
@Window_Equip.opacity = OPACIDADE
#-------------------------------------------------------------------------------
@Window_Equip2 = nil
if TIPO == 1  
  @Window_Equip2 = Rafidelis_Equip_Window.new(56,0,1)
elsif TIPO == 2  
  @Window_Equip2 = Rafidelis_Equip_Window.new(0,56,1)
  elsif TIPO == 3
  @Window_Equip2 = Rafidelis_Equip_Window.new(56,360,1) 
end
if MOSTRAR_ESCUDO == true
  @Window_Equip2.visible = true
else
  @Window_Equip2.visible = false
end
@Window_Equip2.opacity = OPACIDADE
#-------------------------------------------------------------------------------
@Window_Equip3 = nil
if TIPO == 1  
  @Window_Equip3 = Rafidelis_Equip_Window.new(56*2,0,2)
elsif TIPO == 2  
  @Window_Equip3 = Rafidelis_Equip_Window.new(0,56*2,2)
  elsif TIPO == 3
  @Window_Equip3 = Rafidelis_Equip_Window.new(56*2,360,2) 
end    
if MOSTRAR_ELMO == true
  @Window_Equip3.visible = true
else
  @Window_Equip3.visible = false
end
@Window_Equip3.opacity = OPACIDADE
#-------------------------------------------------------------------------------
@Window_Equip4 = nil
if TIPO == 1  
  @Window_Equip4 = Rafidelis_Equip_Window.new(56*3,0,3)
elsif TIPO == 2  
  @Window_Equip4 = Rafidelis_Equip_Window.new(0,56*3,3)
  elsif TIPO == 3
  @Window_Equip4 = Rafidelis_Equip_Window.new(56*3,360,3) 
end
if MOSTRAR_ARMADURA == true
  @Window_Equip4.visible = true
else
  @Window_Equip4.visible = false
end
@Window_Equip4.opacity = OPACIDADE
#-------------------------------------------------------------------------------
@Window_Equip5 = nil
if TIPO == 1  
  @Window_Equip5 = Rafidelis_Equip_Window.new(56*4,0,4)
elsif TIPO == 2  
  @Window_Equip5 = Rafidelis_Equip_Window.new(0,56*4,4)
  elsif TIPO == 3
  @Window_Equip5 = Rafidelis_Equip_Window.new(56*4,360,4) 
end
if MOSTRAR_ACESSORIO == true
  @Window_Equip5.visible = true
else
  @Window_Equip5.visible = false
end
@Window_Equip5.opacity = OPACIDADE
if USAR_IMG
  if TIPO == 1
@bg = Sprite.new
@bg.bitmap = Cache.picture(IMG_NOME)
@bg.x = 1
@bg.y = 1
end
  end
  if TIPO == 2
@bg = Sprite.new
@bg.bitmap = Cache.picture(IMG_NOME)
@bg.x = 54
@bg.y = 1
@bg.angle = 270.5
  end
  if TIPO == 3
@bg = Sprite.new
@bg.bitmap = Cache.picture(IMG_NOME)
@bg.x = 3
@bg.y = 360   
end
#-------------------------------------------------------------------------------
rafidelis_start
  end
 
  def terminate
@Window_Equip.dispose
@Window_Equip2.dispose
@Window_Equip3.dispose
@Window_Equip4.dispose
@Window_Equip5.dispose
rafidelis_terminate
  end
 
def update
@Window_Equip.update
@Window_Equip2.update
@Window_Equip3.update
@Window_Equip4.update
@Window_Equip5.update
rafidelis_update
  end
end
#=================================================================
# www.ReinoRpg.com
#=================================================================


Credits:

www.ReinoRpg.com
Brazilian site where I "create" in rpgMaker ^ ^

********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
You're officially my favorite new member.

Oh question. Is there a way to add another equipment slot up there? Like for players who can duel wield to show each weapon held, instead of just the main handed one?

Also, another edit, your site has a lot of amazing resources! Thank you for sharing.
« Last Edit: January 08, 2009, 08:53:57 AM by grafikal006 »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
It looks like it wuld show in the shield slot.

This is a nice script. Great for ABSes
« Last Edit: January 08, 2009, 02:38:00 PM by Modern Algebra »

**
Rep:
Level 84
Hehe, thanks for me considering that I am your favorite new member = D
I do not understand your question, you would like to add more slots of equipment?
Sorry, I'm more bad English = D
   
Thank you for your compliment MA =D (I love your Scripts)

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
I do not understand your question, you would like to add more slots of equipment?

yes

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep:
Level 84
   
Well first you have to use a script that adds more equipment slots to your game, then I would have to modify my script to display the rest of the equipment.

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
he was asking how to modify your script.

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep:
Level 84
To edit, try to read the comments and studying the script.
If not successful, let me know through my MSN:
Rafa_Fidelis@hotmail.com

**
Rep:
Level 84
I'm am God of Light
Dude.
Thank you so much!
YOU ROCK!  :tpg:
Lol!
:D
Thanks so much,
-Raiden

Click here to feed me a Rare Candy!
Get your own at Pokeplushies!

Raiden.
I am the God Of Light.

Proud owner of,
http://www.majorrpg.com
Check my website out!
Thank you!

Current Game Project:
Name: Silent Hill - Time Lapse
Percent done: 2%
Genre: Horror

**
Rep:
Level 84
I'm am God of Light
To edit, try to read the comments and studying the script.
If not successful, let me know through my MSN:
Rafa_Fidelis@hotmail.com
Is there anyway i can reduce it to 1?
Because its a Silent Hill game.. :D

Click here to feed me a Rare Candy!
Get your own at Pokeplushies!

Raiden.
I am the God Of Light.

Proud owner of,
http://www.majorrpg.com
Check my website out!
Thank you!

Current Game Project:
Name: Silent Hill - Time Lapse
Percent done: 2%
Genre: Horror