Walking like they are drunk? O.o;

Started by Blizzard, August 29, 2008, 10:06:29 am

Previous topic - Next topic

Blizzard

I accidently discovered this when I was trying to rotate the sight area sprite for a sneak dungeon in my game. The character sprite started "walking weird" since I made a mistake in the scripts. I present you the DRUNKEN ADD-ON!
You can activate it for an event by using the script call "$game_map.events[ID].drunken = true" or for the player "$game_player.drunken = true".

class Game_Character
 
  attr_accessor :drunken
 
end

class Sprite_Character
 
  alias init_drunken_later initialize
  def initialize(viewport, character = nil)
    @drunken_mode = true
    init_drunken_later(viewport, character)
  end
 
  alias upd_drunken_later update
  def update
    upd_drunken_later
    if @character != nil && @character.drunken
      if @character.moving? || self.angle != 0
        if @drunken_mode
          self.angle += 1
          @drunken_mode = (self.angle <= 8)
        else
          self.angle -= 1
          @drunken_mode = (self.angle < -8)
        end
      else
        @drunken_mode, self.angle = true, 0
      end
    end
  end

end


It comes above Blizz-ABS if you use it. I suggest you try this out, it's fun. :D
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

DeathLock

When I read this, made me laugh so hard. XD


TheHackMan

August 30, 2008, 05:57:39 pm #2 Last Edit: August 30, 2008, 05:59:21 pm by TheHackMan
XD took me 3 seconds to get here from the time I saw the title. Would be a really interesting add-on for some bars and whatnot :P
I get some undefined method 'angle' error whenever I try this for both the character and other events

legacyblade

lol, that is the funniest script I have ever seen. I think you should add it to tons of addons, making a "drunk" state possible. That'd be awesome, especially for the blizzABS. It could decrease accuracy, and increase strength and whatnot. Great discovery blizz.

Pokol DaErran

Yes, that's right.  Blizzard is so good at scripting he can make awesome scripts by accident.  XD
This is ROFL worthy.  Great job! :D
"...Sometimes, the impossible can become possible- if you're awesome!"
--Bolt

Blizzard

I wasn't going to support that script. xD I just put it up because it was kinda fun. And yeah, it's possible that it doesn't work right with some systems. Heck, it's even possible that it's buggy itself. xD
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

TheHackMan

I think this would be an awesome script to add and fix up a bit. It could really be interesting to put with some beer and a character in battle after some city bar hopping >.>

Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Jackolas


Calintz

Could somebody post some screenshots of this please, Lmao...
If not that would be okay, because anything Blizzard is worth the download.

I'm just asking for someone to save me the hassle.

Starrodkirby86

It's really hard to post a screenshot of something that changes the animation of a hero unless the screenshot is an animated image. And I never really got to doing or finding out how to do that (I would know how thanks to Google).

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




Calintz

Oh...nevermind...
I thought it would be like them staggering and you would be able to get a shot of them kinda diagonal or something...sorry...

I will be less lazy and download the demo

Shadonking

could this script work with moving events, becuase it would be well funny just to have random drunk people walking about.  :haha:





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Shadonking

that is hellish funny, i just made like 10 random people walking like they were drunk.





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

Zeriab

That's so silly Blizz XD
I don't know whether I should say 'Good job' or 'Good mistake' :P

Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Zeriab

It is indeed XD
How practical it is is another matter.

Blizzard

It's still nice as an add-on. As a few people here suggested, it can be used to display a drunken status effect when displaying status effects on the map.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Shadonking

or just place drunk people in a game for the fun of it. most games have easter eggs in them (jokes) and i plan to have a few jokes in mine aswell and this is a perfect joke.





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

Aqua

Spoiler: ShowHide


Screenshot for those who wish it :)


Sooo... if I wanted to "be used to display a drunken status effect when displaying status effects on the map", how would I go about it? >.<

Zeriab

You are quite right Blizz.
I do not believe you made it with a practical purpose in mind though.
Even so it is quite nice XD


Nice screenshot Aqua. It depicts how it works quite nicely.

Blizzard

As I said, it was an accident after all. xD
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Aqua

Hey, penicillin was an accident! ;)

Sometimes accidents are wonderful :P

Cid

Well, not all scripts need to be pivotal to the game. Little ones like this mount up and add to the overall presentation. You could use this to simply place a drunken NPC outside a bar or something.

Nice accidental script you've made here. 8)

AliveDrive

Necro due to overwhelming amount of awesome. I may just have to use this. xD
Quote from: Blizzard on September 09, 2011, 02:26:33 am
The permanent solution for your problem would be to stop hanging out with stupid people.

ForeverZer0

I approve your decision to necro-bump.  :haha:
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

tech williams

Made an entire event system based off of this script. Now you get can buy beer at the bar and if you drink more than 4 (Lightweight) the colors start messing up and the drunken state is on. May not be entirely practical considering the beer has no other effects yet, but I really want to work on it more so who knows. Thanks for posting your mistake.  :haha:
How is it ninjas exist when they were meant to be silent killers? Shouldn't they be unknown?<br /><br />Hay you...Check out my deviant art.<br />Click here

AliveDrive

Quote from: Blizzard on September 09, 2011, 02:26:33 am
The permanent solution for your problem would be to stop hanging out with stupid people.

JellalFerd

July 02, 2011, 11:34:47 pm #29 Last Edit: July 02, 2011, 11:36:06 pm by JellalFerd
Quote from: Hellfire Dragon on August 29, 2008, 10:23:15 am
lol that's awesome :haha:Is there a way for them to keep 'wobbling' when they are standing still?

class Game_Character
 
 attr_accessor :drunken
 
end

class Sprite_Character
 
 alias init_drunken_later initialize
 def initialize(viewport, character = nil)
   @drunken_mode = true
   init_drunken_later(viewport, character)
 end
 
 alias upd_drunken_later update
 def update
   upd_drunken_later
   if @character != nil && @character.drunken
     if @character.moving? || self.angle != 0 || !@character.moving?
       if @drunken_mode
         self.angle += 1
         @drunken_mode = (self.angle <= 8)
       else
         self.angle -= 1
         @drunken_mode = (self.angle < -8)
       end
     else
       @drunken_mode, self.angle = true, 0
     end
   end
 end

end

EDIT:
Sorry, didn't notice the post date.
QuoteFrank says:
But obviously they put on that shirt on in the morning.
Hmmm..
Booty shirts are nice.
Depends on the girl.
Jellal says:
booty shirts
lolwut

G_G

Its fine this time. The last date wasn't 90 days ago. Necro posting is when you post in a topic that hasn't been replied to in over 90 days. Its only allowed if you're relating to the thread as in helping, asking for help, etc... In this case you didn't necro and if you did, its helpful to the topic.

Neo el feo

I'm sorry for necroposting.
Did anyone know how to deactivate this script?

because once you activate it, it works all the time.
So, how to do the character get sober again?

PS: my english sucks.  :^_^':

LiTTleDRAgo

$game_map.events[ID].drunken = false
$game_player.drunken = false

Neo el feo

March 13, 2013, 12:30:31 pm #33 Last Edit: March 13, 2013, 12:50:38 pm by Neo el feo
Quote from: LiTTleDRAgo on March 12, 2013, 01:03:35 am
$game_map.events[ID].drunken = false
$game_player.drunken = false


I tried this: $game_player.drunken = false , but then the whole game stop.
sorry, just the player stop, and no matter what, he doesn´t move.

KK20

March 13, 2013, 01:29:08 pm #34 Last Edit: March 13, 2013, 01:36:40 pm by KK20
http://forum.chaos-project.com/index.php/topic,938.0.html

I should just add this to my siggy, seeing as I've posted this link over 5 or 6 times now.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!