Main Menu
  • Welcome to The RPG Maker Resource Kit.

Two questions.

Started by Miles Castea, February 15, 2008, 06:22:12 AM

0 Members and 1 Guest are viewing this topic.

Miles Castea

I'm using Falcon's Luck script, and I'm wondering how it be possible to make my game display the Luck as a visible stat, if you need to know, I'm using Constance's custom menu.
Also, are there any of non-SDK stealing scripts other than Tricksters'es?
Current Project:
Altaria: Deus ex Machina (in progress)

modern algebra

To make the luck stat visible is actually pretty easy, but you will need to place it yourself.

Basically, to display the stat in a window class you will need to use this code:


self.contents.draw_text (x, y, width, height, actor.luck.to_s)


where x is the x position, y is the y position, width is how much room you have in the horizontal direction (if the text is wider than this it will be shrunk), height is the room you have in the y direction (the text is centred between y and y + height), and actor is a Game_Actor object. If you go into Window_Status (which is where I assume you intend to place the stat), then you will probably notice that there is already an actor object there for you to use.