Random Enemies

Discussion in 'JS Plugin Releases (RMMV)' started by Rexal, Oct 29, 2015.

    Tags:
  1. Rexal

    Rexal Digital Fuzzball Veteran

    Messages:
    141
    Likes Received:
    258
    Location:
    Washington, USA
    First Language:
    C#
    Primarily Uses:
    RMMV
    Random Enemies
    Rexal
     ​
    Intro - While working on my project, I was getting rather annoyed at having to create tons of Troops just to add some variety to my encounters. So I made this little plugin.

    [​IMG]
     ​
     ​
    Feature -

    - Have an enemy be switched out for another at the start of the battle.

    Note tag -

    Random Enemy: id,id,id,id,id,id,id,id,...

    Place this tag inside the notes section of an enemy, and it'll randomly be a different enemy at the start of the battle.

    There is absolutely no limit to the amount of enemyIDs you can set.
    If you use 0, the enemy will cease to exist. If all enemies cease to exist, it'll try again, so there should be no instance of
    the battle suddenly ending as soon as it starts. Just don't set this to only 0. It's not a good idea.

    Using multiple of the same id will increase its chance of appearing.

    Example: Random Enemy: 1,2,3,4,1,1,1,1,2,2,2,3,3,0

    Future Plans -

    - Let you be able to randomly position enemies.

    - Random enemy stat variation.

    Terms of Use - Free for commercial and non-commercial use.

    Download - Here
     
    Last edited by a moderator: Oct 30, 2015
    #1
    bvlgari, MrTea, SpacemanFive and 4 others like this.
  2. harvard1932

    harvard1932 Veteran Veteran

    Messages:
    40
    Likes Received:
    10
    Can you random to another enemy that randoms to another that randoms to another?
     
    #2
    Harold Ållaberg likes this.
  3. Rexal

    Rexal Digital Fuzzball Veteran

    Messages:
    141
    Likes Received:
    258
    Location:
    Washington, USA
    First Language:
    C#
    Primarily Uses:
    RMMV
    Nah, it only happens at the very start of the battle. Any random tags on the enemy it switched to will be ignored.
     
    #3
  4. Richard John S

    Richard John S Rpg Maker Music Pack Contributer Veteran

    Messages:
    153
    Likes Received:
    577
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMMV
    This will be a very usable script. Great work on this.
     
    #4
  5. Bernkastel

    Bernkastel Veteran Veteran

    Messages:
    75
    Likes Received:
    15
    First Language:
    English
    does the enemies being player battlers have anything to do with this script?
     
    #5
  6. Rexal

    Rexal Digital Fuzzball Veteran

    Messages:
    141
    Likes Received:
    258
    Location:
    Washington, USA
    First Language:
    C#
    Primarily Uses:
    RMMV
    Other than being the type of battlers I used...no, not really. Well, unless you count that it shows that it's compatible with my animated enemies script.
     
    #6
  7. VHStapes

    VHStapes Game Designer Veteran

    Messages:
    57
    Likes Received:
    7
    Location:
    Vashon, Wa
    First Language:
    English
    Very cool and useful for my project, thank you!
     
    #7
  8. munokura

    munokura Warper Member

    Messages:
    3
    Likes Received:
    4
    First Language:
    Japanese
    Primarily Uses:
    RMMV
    Nice to meet you.
    I am Japanese.
    I do not understand English so I will post it in google translation.
    If it was rude words, I am sorry.


    Thankfully, I will use this plugin.
    However, there seems to be an error.

    Code:
    TypeError: Can not read property 'prototype' of undefined
    at Game_Troop.setup (/----/js/plugins/RandomEnemies.js: 79)
    at Function.BattleManager.setup (rpg_managers.js: 2143)
    at Function.DataManager.setupBattleTest (rpg_managers.js: 228)
    at Scene_Boot.start (rpg_scenes.js: 395)
    at Function.SceneManager.updateScene (rpg_managers.js: 2019)
    at Function.SceneManager.updateMain (rpg_managers.js: 1983)
    at Function.SceneManager.update (rpg_managers.js: 1907)
    
    Perhaps when the appearance of monsters becomes 0, it should loop and start over, but I think whether there is an error there.
    MV version is 1.5.1.

    Can you fix it?
     
    Last edited: Mar 8, 2018
    #8
  9. Kes

    Kes Global Moderators Global Mod

    Messages:
    19,673
    Likes Received:
    10,072
    First Language:
    English
    Primarily Uses:
    RMVXA
    @munokura Please note that because this is an English language site, posts should only be in English, not contain other languages as well.

    As long as you mention that you are using google translate, people will make allowances for any incorrect words, so there is no need to worry.
     
    #9
    munokura likes this.
  10. munokura

    munokura Warper Member

    Messages:
    3
    Likes Received:
    4
    First Language:
    Japanese
    Primarily Uses:
    RMMV
    I apologize for posting without understanding the rules.
    I have fixed the post.
     
    #10
  11. bvlgari

    bvlgari Villager Member

    Messages:
    27
    Likes Received:
    3
    First Language:
    english
    Primarily Uses:
    RMMV
    Try placing this plugin at the very start of your plugin's list. That solved the problem for me.
     
    #11
  12. munokura

    munokura Warper Member

    Messages:
    3
    Likes Received:
    4
    First Language:
    Japanese
    Primarily Uses:
    RMMV
    Great
     
    Last edited: May 12, 2019
    #12

Share This Page