Auto Push NPC

Discussion in 'JS Plugin Releases (RMMV)' started by Lecode, Oct 28, 2015.

  1. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    490
    Likes Received:
    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.

    [​IMG]

    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: Oct 29, 2015
    #1
    Archeia, XdnaX, Doktor_Q and 14 others like this.
  2. Neo Soul Gamer

    Neo Soul Gamer Veteran Veteran

    Messages:
    614
    Likes Received:
    332
    Location:
    Nova Scotia, Canada
    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?
     
    #2
    Tuomo L likes this.
  3. Joronjo

    Joronjo Veteran Veteran

    Messages:
    155
    Likes Received:
    29
    First Language:
    English Spanish
    Would you be able to use common events to also replicate the pushing sprite Like in SD3
     
    #3
  4. Prescott

    Prescott argggghhh Veteran

    Messages:
    453
    Likes Received:
    326
    Location:
    USA
    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.
     
    #4
  5. Tuomo L

    Tuomo L Oldbie Veteran

    Messages:
    2,292
    Likes Received:
    1,266
    Location:
    Finland!
    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.
     
    #5
  6. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    490
    Likes Received:
    646
    First Language:
    French
    Primarily Uses:
    N/A
    The plugin doesn't work for mouse/touchscreen controls.

    Yes, that's the point. It is probably impossible to do that with events when their command list aren't empty.

    Yeah..I was thinking to add that feature too. I'll do that.
     
    #6
  7. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    490
    Likes Received:
    646
    First Language:
    French
    Primarily Uses:
    N/A
    Version 1.1:

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

     
    #7
  8. Marillmau5

    Marillmau5 Veteran Veteran

    Messages:
    79
    Likes Received:
    9
    First Language:
    English
    Thanks super cool script! Will come in handy for puzzles.
     
    #8
  9. GamingRex4274

    GamingRex4274 Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    English
    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!
     
    #9
  10. GamingRex4274

    GamingRex4274 Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    English
    never mind i figured it out! :D
     
    #10
  11. Tyrael79

    Tyrael79 Veteran Veteran

    Messages:
    90
    Likes Received:
    15
    Location:
    Australia, Sydney
    First Language:
    english
    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!
     
    #11
  12. ardav

    ardav Warper Member

    Messages:
    3
    Likes Received:
    1
    First Language:
    Eng
    Where do you put this? > Immune_AutoPush
     
    #12
  13. Doktor_Q

    Doktor_Q I'm not a real doktor, but I am a real Q Veteran

    Messages:
    592
    Likes Received:
    329
    Location:
    Denial
    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?"
     
    #13
  14. tevak

    tevak Kara Zor-El of Earth-23 Veteran

    Messages:
    27
    Likes Received:
    10
    First Language:
    English
    Primarily Uses:
    N/A
    Is there a way to use this to have events push the player?
     
    #14
  15. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    490
    Likes Received:
    646
    First Language:
    French
    Primarily Uses:
    N/A
    By tweaking it. I don't plan to update it though, not now at least.
     
    #15
  16. kindaw

    kindaw Warper Member

    Messages:
    3
    Likes Received:
    0
    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"?
     
    #16
  17. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    490
    Likes Received:
    646
    First Language:
    French
    Primarily Uses:
    N/A
    Free for both commercial and non-commercial.
     
    #17
  18. Kevin O'Ryan

    Kevin O'Ryan Kevin O'Ryan Veteran

    Messages:
    159
    Likes Received:
    37
    Location:
    Brunswick, Maine
    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.. :(
     
    #18
  19. Leviaph

    Leviaph Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    English
    How does one actually use this? do I great an event? I'm new to this :(
     
    #19
  20. Andar

    Andar Veteran Veteran

    Messages:
    28,606
    Likes Received:
    6,568
    Location:
    Germany
    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.
     
    #20

Share This Page