[XP][VX][VXA] Show Event Name

Started by LiTTleDRAgo, December 22, 2010, 10:00:05 am

Previous topic - Next topic

exile360


Shalaren

August 13, 2013, 07:22:28 pm #61 Last Edit: August 13, 2013, 07:23:30 pm by Shalaren
sorry for the Necroposting

I tried adding it to a new project and it gives me the error
Spoiler: ShowHide
QuoteScript 'Event-Name' line 120: NoMethodError Occurred
undefined method 'width' for #<sprite:0x3175780>

Im trying to play around with it but I just can't figure out whats wrong, its on a new project there are no other scripts

LiTTleDRAgo


Shalaren

ok so you know im using a CMS, here is what happens

is there a way to make it so it is at the bottom of the bubble?
that the bubble overlaps and the name is under?

LiTTleDRAgo

search this line

Quote@name_event.z = self.z + 1000


change that value as you need

Shalaren

August 13, 2013, 09:30:20 pm #65 Last Edit: August 13, 2013, 09:46:16 pm by Shalaren
EDIT: NVM I FIXED IT BY MESSING WITH THE CMS! thanks Drago :)

Just one more suggestion, to add opacity option
altough for me I just changed this line
    "@name_event.opacity    = self.opacity" to a number

LeviAlvi

September 13, 2013, 08:53:28 am #66 Last Edit: September 13, 2013, 09:24:33 am by LeviAlvi
This 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 :)

EDIT: Is it possible to change the event name in auto run? I'm using one event but will change its graphics after they talk.
Spoiler: ShowHide
hahahahaha

LiTTleDRAgo

Quote from: LeviAlvi on September 13, 2013, 08:53:28 am
This 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 :)


did you add the name like this? (Aluxes is an example)

<Show Name>
Name: Aluxes

Quote from: LeviAlvi on September 13, 2013, 08:53:28 am
EDIT: Is it possible to change the event name in auto run? I'm using one event but will change its graphics after they talk.


use switch / self switch / variable to change events page,
and in that new event page, add in comment at first line

<Show Name>
Name: Aluxes2nd

LeviAlvi

Silly me  :^_^':   thanks, it worked. is didn't use the "<>" thing

can i disable the actor's name first then enable it again later?
Spoiler: ShowHide
hahahahaha

LiTTleDRAgo

this 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]
    end


change DISABLE_SWITCH into whatever switch ID (Integer)

firevenge007

How exactly do you activate this switch so that the character's overhead name is turned off?

LiTTleDRAgo

if you're talking about this :

Spoiler: ShowHide
Quote from: LiTTleDRAgo on September 13, 2013, 07:52:15 pm
this 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]
    end


change DISABLE_SWITCH into whatever switch ID (Integer)


just enable the switch in event command and the name in player head will disappear
example: change $game_switches[DISABLE_SWITCH] into $game_switches[1]

now if you want to hide player name, just turn on switch 1


----
if you want to hide all of the event name completely, look at the configuration

  SWITCH      = 50               # Switch for Disable Show Event Name


turn on that switch and all of the event name will disappear



firevenge007

How and where would I turn my switch on/off?


syldocaine

I just have to say: Awsome script!

keep up the great work!

MarkHest

December 31, 2013, 08:59:19 pm #75 Last Edit: December 31, 2013, 09:00:56 pm by MarkHest
Great script.
Is it possible to make the name/names disappear automatically whenever I'm talking to a character or having an event run? That is, without having to add a switch on/off whenever I make a new event.
   

LiTTleDRAgo

in this part, add the bolded word

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

MarkHest

Didn't work. The name is still there  :roll:
   

LiTTleDRAgo

fixed

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

MarkHest