Started by LiTTleDRAgo, December 22, 2010, 10:00:05 am
QuoteScript 'Event-Name' line 120: NoMethodError Occurred undefined method 'width' for #<sprite:0x3175780>
Quote@name_event.z = self.z + 1000
Quote from: LeviAlvi on September 13, 2013, 08:53:28 amThis is a perfect script for my game. but the name doesn't show up. The actor's name is showing but the event name isn't. I put a comment: Show Name on the event but still, it doesn't show its name. I'm using rpgmxp btw. thanks
Quote from: LeviAlvi on September 13, 2013, 08:53:28 amEDIT: Is it possible to change the event name in auto run? I'm using one event but will change its graphics after they talk.
@char = name_var if @character.is_a?(Game_Player)
if @character.is_a?(Game_Player) @char = name_var @char = "" if $game_switches[DISABLE_SWITCH] end
Quote from: LiTTleDRAgo on September 13, 2013, 07:52:15 pmthis line @char = name_var if @character.is_a?(Game_Player)change it into if @character.is_a?(Game_Player) @char = name_var @char = "" if $game_switches[DISABLE_SWITCH] endchange DISABLE_SWITCH into whatever switch ID (Integer)
SWITCH = 50 # Switch for Disable Show Event Name
Quote def update_name_visibility disable_switch = false disable_switch = @character.opacity < 50 if DIS_EV_SWITCH disable_switch ||= $game_switches[DIS_EV_SWITCH] if DIS_EV_SWITCH disable_switch ||= @character.transparent disable_switch ||= $game_map.interpreter.running? @name_event.visible = false if disable_switch update_name_visibility_press if PRESS_BTN && !disable_switch update_name_visibility_range if RANGE != nil && !@pressed end
Quote def update_name_visibility disable_switch = false disable_switch = @character.opacity < 50 if DIS_EV_SWITCH disable_switch ||= $game_switches[DIS_EV_SWITCH] if DIS_EV_SWITCH disable_switch ||= @character.transparent disable_switch ||= $game_map.interpreter.running? @name_event.visible = false if disable_switch return if $game_map.interpreter.running? update_name_visibility_press if PRESS_BTN && !disable_switch update_name_visibility_range if RANGE != nil && !@pressed end