Auto Push NPC

Lecode

(─‿‿─)
Veteran
Joined
Dec 18, 2013
Messages
490
Reaction score
646
First Language
French
Primarily Uses
N/A
Auto Push NPC 1.1
Lecode
Introduction
This plugin replicates a feature of Seiken Densetsu 3 that allow the player to push NPCs when they obstruct his way.

For those who don't know SD3, by simply walking in the way of an NPC, you can push it allong your path.

I always liked this feature since in RPG it is common to be stuck by NPCs.


Currently doesn't work with Hudell's pixel movement plugin.

Features
- Push NPCs

- Change player's graphic when pushing (ON/OFF)

How to Use

* Plugin Commands: *   -> AutoPushNPC ON           ( Enable auto push) *   -> AutoPushNPC OFF          ( Disable auto push) *   -> AutoPushNPC_Img ON       ( Enable pushing image) *   -> AutoPushNPC_Img OFF      ( Disable pushing image) * * To make an event impossible to <<auto-push>>, add a comment to his list, * with this text the following text: Immune_AutoPush * * Pushing image is in that format: ActorName_Push. * Ex: Harold_Push- Make sure to save the plugin as LeAutoPushNPC.js

- Make sure to activate the "Change Image ?" parametter if you want to use a custom graphi when the player

 is pushing an NPC.

Plugin

Download it from my Google Drive.

Credit and Thanks
- Lecode
 
Last edited by a moderator:

Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
628
Reaction score
344
First Language
English
Primarily Uses
N/A
Looks great. Can't test it at the moment, so I figured I'd ask. How would this work with touchscreen/mouse controls?
 

Joronjo

Veteran
Veteran
Joined
Sep 17, 2015
Messages
155
Reaction score
29
First Language
English Spanish
Primarily Uses
Would you be able to use common events to also replicate the pushing sprite Like in SD3
 

Prescott

argggghhh
Veteran
Joined
Aug 28, 2014
Messages
470
Reaction score
357
First Language
English
Primarily Uses
RMMV
If you have NPC's without any text that appears; if they are just there and roam freely, you can set them up with a move route to move one space away from the player.

This is for NPC's with dialogue or other things that they do when you click on them, if I'm correct. I'm not sure there's a way to event that properly.
 

Tuomo L

Oldbie
Veteran
Joined
Aug 6, 2012
Messages
2,294
Reaction score
1,270
First Language
Finnish
Primarily Uses
RMMV
Is there a way to add a pushing animation like there? I could see this being used for much, much more things including puzzle solving.
 

Lecode

(─‿‿─)
Veteran
Joined
Dec 18, 2013
Messages
490
Reaction score
646
First Language
French
Primarily Uses
N/A
Looks great. Can't test it at the moment, so I figured I'd ask. How would this work with touchscreen/mouse controls?
The plugin doesn't work for mouse/touchscreen controls.

This is for NPC's with dialogue or other things that they do when you click on them, if I'm correct. I'm not sure there's a way to event that properly.
Yes, that's the point. It is probably impossible to do that with events when their command list aren't empty.

Is there a way to add a pushing animation like there? I could see this being used for much, much more things including puzzle solving.
Yeah..I was thinking to add that feature too. I'll do that.
 

Lecode

(─‿‿─)
Veteran
Joined
Dec 18, 2013
Messages
490
Reaction score
646
First Language
French
Primarily Uses
N/A
Version 1.1:

- Change player's graphic when pushing (ON/OFF)

 * Pushing image is in this format: ActorName_Push.
 * Ex: Harold_Push
 

Marillmau5

Veteran
Veteran
Joined
May 8, 2014
Messages
79
Reaction score
9
First Language
English
Thanks super cool script! Will come in handy for puzzles.
 

GamingRex4274

Warper
Member
Joined
Feb 22, 2016
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Is there a way to make an object non-pushable? for example I wanna push a boulder and I can, but I can also push sword decorations! I don't want that!
 

Tyrael79

Veteran
Veteran
Joined
Jan 10, 2016
Messages
90
Reaction score
15
First Language
english
Primarily Uses
This is a awesome plugin and is amazing for testing, being able to push npc's out the way where I have incorrectly done there movement and they end up blocking the path!!


I've gotten it to works perfectly with the keyboard, but I can't seem to get it to work with a mouse or touch screen, unless I set the delay value to 0.


Is there a way to make it work with touch screens/mouse pointers that I just haven't discovered as I'm a noob?


or if there isn't and  you're still maintaining this plugin, is it possible to have a setting, where it counts the number of times you "bump into" an npc in a 30 second period and if its greater than X number of times the npc is pushed?


Well done on a really useful plugin btw!
 

ardav

Warper
Member
Joined
Aug 23, 2016
Messages
3
Reaction score
1
First Language
Eng
Primarily Uses
Where do you put this? > Immune_AutoPush
 

Doktor_Q

I'm not a real doktor, but I am a real Q
Veteran
Joined
Aug 1, 2016
Messages
662
Reaction score
387
First Language
English
Primarily Uses
RMMV
@ardavYou put that in a comment in the event's list.


Would it be possible to have the opposite tag setup as well, for the future? While I like the auto push, I think events that can't be pushed will outnumber events than can by a the or four times, so it would be nice to only tag what can be moved. Something like another option for "default to off?"
 

tevak

Kara Zor-El of Earth-23
Veteran
Joined
Jun 26, 2012
Messages
27
Reaction score
10
First Language
English
Primarily Uses
N/A
Is there a way to use this to have events push the player?
 

Lecode

(─‿‿─)
Veteran
Joined
Dec 18, 2013
Messages
490
Reaction score
646
First Language
French
Primarily Uses
N/A
Is there a way to use this to have events push the player?
By tweaking it. I don't plan to update it though, not now at least.
 

kindaw

Warper
Member
Joined
Dec 21, 2016
Messages
3
Reaction score
0
Primarily Uses
Hello there! sorry but i just wanted to make sure: what are the terms of use for this plugin? can I use it commercially? is that what you meant by "Credit and Thanks: Lecode"?
 

Lecode

(─‿‿─)
Veteran
Joined
Dec 18, 2013
Messages
490
Reaction score
646
First Language
French
Primarily Uses
N/A
Free for both commercial and non-commercial.
 

Kevin O'Ryan

Kevin O'Ryan
Veteran
Joined
Dec 15, 2013
Messages
159
Reaction score
37
First Language
English
Primarily Uses
RMVXA
Umm..... I don't know if I'm doing something wrong, but when I use a push sprite.... he never stops doing it... My characters sprite doesn't go back to normal and it's kinda annoying.. :(
 

Leviaph

Warper
Member
Joined
Jan 12, 2017
Messages
2
Reaction score
0
First Language
English
Primarily Uses
How does one actually use this? do I great an event? I'm new to this :(
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
29,230
Reaction score
6,776
First Language
German
Primarily Uses
RMMV
@Leviaph then I suggest you first follow the link to the starting point in my signature and go through those tutorials to get the basics before trying to use plugins.


There are also tutorials on how to install and use plugins on this forum, but most of them expect you to have at least minimum familiarity with the editor and the engines.
 

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

Latest Threads

Latest Profile Posts

"What do you think the best place to visit on this cold days?" "Hell..."
Been so busy lately that I wonder if I should slowly start preparing the advent calendar resources so I have enough in december.
Man, I wish it was harder for mean d-holes to make me feel like crying.
Made 8 games. Was aiming for 20. Gonna go for 40. Because 20 + 20. /Bed.
Got myself card game plugin, its bit laggy but worth it

Forum statistics

Threads
94,535
Messages
921,710
Members
124,400
Latest member
Standanddeliver
Top