Being drunk?

larynachos

Villager
Member
Joined
Aug 7, 2012
Messages
14
Reaction score
0
First Language
english
Primarily Uses
Okay, so I've created a liquor item, and I've linked the item to a common event. I wanted to make the player control the character, but make the character stumble around and sometimes ignore the player's input. Everything i've tried has failed. how can I accomplish this task?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Find the input handler on game_map (or scene_map, I'm not sure) and edit those to take into account the drunk status...

also, since you said that everything you tried has failed, you might as well tell us what those failed attempts are...
 

larynachos

Villager
Member
Joined
Aug 7, 2012
Messages
14
Reaction score
0
First Language
english
Primarily Uses
Find the input handler on game_map (or scene_map, I'm not sure) and edit those to take into account the drunk status...

also, since you said that everything you tried has failed, you might as well tell us what those failed attempts are...
I was using the "set move route" event, making it wait for a few seconds (to let the player regain some control), then move at random (being drunk and stumbling around), but when I tested it, I couldn't move.

http://i75.servimg.com/u/f75/13/29/41/32/untitl10.png
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You've got off to a good start. A WAIT in a move route on the player WILL make the player wait. But the wait doesn't HAVE to be part of the move route. I'm also not sure why you've turned direction fix off on the player - it should be off by default.

I'd put it in a common event set to parallel process and conditioned by a switch. In the item effects, I'd turn on that switch. In the event commands, I'd have something like this:

Show Text (I really wouldn't mix upper and lower case - it's hard to read, and it doesn't signify being drunk)Set Move Route (Player) (Wait, Skip) Move at Random Move at RandomWait 200 Frames (this is not a part of the move route - it's the Wait command on tab 2 of event commands)Set Move Route (Player) (Wait, Skip) Move at Random Move at Random...Control Switches (whatever switch is the condition to this common event) = OFFAnd repeat those 3 lines as many times as you need to until the effect wears off.During the Wait periods, the player will be able to move around, but every now and then they'll go in a different direction. I'm also not sure what the tint screen is for, so if it's needed, you'll have to work that in somehow.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top