Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Moosefish on March 30, 2011, 09:51:53 am

Title: [XP] TINY script edit
Post by: Moosefish on March 30, 2011, 09:51:53 am
hey everyone

heres the part of the script i need help with

Spoiler: ShowHide
[nobb]
   def refresh
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 120, 18, "Step Count")
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 32, 120, 32, $game_party.steps.to_s, 2)
  end
end
[/nobb]


Basically, where it says "Step Count" i need it to say the name of one of the actors ID's,
this way I can rename the actor whatever i want and instead of it saying "Step Count" it will say the actor name
Ive tried a few things but im a complete n00b in terms of scripting

im good on photoshop so if you can help me out ill help you out back

thanks!  :)
Title: Re: [XP] TINY script edit
Post by: Apidcloud on March 30, 2011, 01:40:42 pm
Well , just do this instead of steps xD

$game_party.actors[0].name.to_s


This way, it will appear the name of the leader of the party....


If You just want 2 show the name of an actor at database..use $game_actors[id].name xD

BB
Title: Re: [XP] TINY script edit
Post by: G_G on March 30, 2011, 04:04:24 pm
The .to_s is a bit redundant in that first line of code.
Title: Re: [XP] TINY script edit
Post by: Moosefish on March 30, 2011, 05:19:40 pm
thanks! works perfect i appreciate it
lemme know if you need a hand with anythin art wise (its all im good at lol)