[XP] TINY script edit

Started by Moosefish, March 30, 2011, 09:51:53 am

Previous topic - Next topic

Moosefish

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!  :)
Join the Zombie Survival Society, a forum for true Survivors
www.zombiesurvivalsociety.com

Apidcloud

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
Instead of wanting to be somebody else, rather become somebody else



"I will treasure the knowledge like a squirrel treasures acorns."


Gibbo Glast 2D Engine - The sky is no longer a limit

G_G

The .to_s is a bit redundant in that first line of code.

Moosefish

thanks! works perfect i appreciate it
lemme know if you need a hand with anythin art wise (its all im good at lol)
Join the Zombie Survival Society, a forum for true Survivors
www.zombiesurvivalsociety.com