Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Rmxp RGSS Hunger script and HUD

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Game Development
View previous topic :: View next topic  
Author Message
Sephiron
Master Cheater
Reputation: 34

Joined: 23 Aug 2008
Posts: 293
Location: JAPAN circa 1653, fucking some seagulls

PostPosted: Thu Sep 24, 2009 4:12 pm    Post subject: Rmxp RGSS Hunger script and HUD Reply with quote

My first WORKING script Very Happy
Grats to myself. This script is free to use and such.

First, the script part:



Code:
class Window_hunger < Window_Base
  def initialize
    super(100, 400, 100, 80)
      self.back_opacity = 145
    self.contents = Bitmap.new(200 - 32, 80 - 32)
    refresh
  end
  def refresh
    self.contents.clear
    @hunger = $game_variables[1]
    self.contents.draw_text(0, 0, 190, 70, $game_variables[1].to_s)
        self.contents.draw_text(0, -15, 190, 70, 'Hunger'.to_s)
  end
  def update
    super
    if $game_variables[1] != @hunger
       refresh
    end
  end
end
 
#HUD2 UPDATE
class Scene_Map
  alias hunger_main main
  alias hunger_update update
  def main
    @hunger = Window_hunger.new
    hunger_main
    @hunger.dispose
  end
  def update
    @hunger.update
    hunger_update
  end
end


And now the EVENT part.
Just put the event on any map that you want hunger enabled. You can also edit this script to be used for sleep and other motives used in survival/Sim games (which i am currently working on).

The event should look like the attachment below...



SCREENSHOT.jpg
 Description:
 Filesize:  117.82 KB
 Viewed:  26990 Time(s)

SCREENSHOT.jpg



Tut.jpg
 Description:
 Filesize:  82.89 KB
 Viewed:  26991 Time(s)

Tut.jpg



_________________
Nirojan wrote:
picked up 1,.5 g and them budduty picled up quarter o today we blase all of

Back to top
View user's profile Send private message MSN Messenger
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Thu Sep 24, 2009 6:28 pm    Post subject: Reply with quote

Haha awsome job!
I'd like to see a variable for obesity, modified by eating while full.
Hear that, Tyler?

Now try translating it to RGSS2. :]
Back to top
View user's profile Send private message
Sephiron
Master Cheater
Reputation: 34

Joined: 23 Aug 2008
Posts: 293
Location: JAPAN circa 1653, fucking some seagulls

PostPosted: Fri Sep 25, 2009 10:08 am    Post subject: Reply with quote

Cryoma wrote:
Haha awsome job!
I'd like to see a variable for obesity, modified by eating while full.
Hear that, Tyler?

Now try translating it to RGSS2. :]


It wouldn't be hard, and it would only need a small portion of scripting to put it on the menu.

i can add in the event, if variable hunger is greater than or equal to 101, display message You are full! change variables Obesity + 10.

Change variables hunger= 100

_________________
Nirojan wrote:
picked up 1,.5 g and them budduty picled up quarter o today we blase all of

Back to top
View user's profile Send private message MSN Messenger
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri Sep 25, 2009 1:53 pm    Post subject: Reply with quote

Exactly, then you could even switch character sprites based on obesity, as well as movement speed/agility/dexterity/etc.
Back to top
View user's profile Send private message
False Prophet
Expert Cheater
Reputation: -1

Joined: 28 May 2006
Posts: 121

PostPosted: Thu Oct 15, 2009 8:21 pm    Post subject: Reply with quote

Obesity could randomly kill the character with a higher percentage each point! Smile
Back to top
View user's profile Send private message
shitposter
Newbie cheater
Reputation: 5

Joined: 12 Nov 2008
Posts: 13

PostPosted: Sun Nov 15, 2009 9:05 pm    Post subject: Reply with quote

Oggy wrote:
Obesity could randomly kill the character with a higher percentage each point! Smile

That's OP.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Game Development All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites