A Skill that throws enemies?
#5
Quote:FYI: The older RPGMaker 2000 and 2003 engines allowed enemies both an attack and a 2xAttack in their Enemy attack definitions... Another REMOVAL of a feature that Enterbrain liked to do (and then return it and say... oooh, new feature).

It is a shame they did this. Now we have to add any old-new features manually through scripting or eventing. And if you lack the scripting skills like I do its a pain. To be honest I never touched a RPG maker newer than XP. 2000 and 2003 is a long, long time ago.

About this script though, I found an error when I try to use the skill againt a party of 1 enemy. After the initial hit, it crashes before the second hit, saying "Script Game_Troop TypeError occured. no implicit conversion from nil to integer"

In the Editor it points at enemy = @enemies[enemy_index]
Code:
  #--------------------------------------------------------------------------
  # * Smooth Selection of a Target Enemy
  #     enemy_index : enemy index
  #--------------------------------------------------------------------------
  def smooth_target_enemy(enemy_index)
    # Get an enemy
    enemy = @enemies[enemy_index]
    # If an enemy exists
    if enemy != nil and enemy.exist?
      return enemy
    end
    # Loop
    for enemy in @enemies
      # If an enemy exists
      if enemy.exist?
        return enemy
      end
    end
  end
Reply }


Messages In This Thread
A Skill that throws enemies? - by Bennerdeben - 09-28-2024, 08:42 AM
RE: A Skill that throws enemies? - by DerVVulfman - 09-29-2024, 09:49 PM
RE: A Skill that throws enemies? - by Bennerdeben - 09-30-2024, 09:10 AM
RE: A Skill that throws enemies? - by DerVVulfman - 09-30-2024, 03:33 PM
RE: A Skill that throws enemies? - by Bennerdeben - 10-01-2024, 08:18 AM
RE: A Skill that throws enemies? - by DerVVulfman - 10-01-2024, 08:19 PM
RE: A Skill that throws enemies? - by Bennerdeben - 10-02-2024, 12:49 PM
RE: A Skill that throws enemies? - by DerVVulfman - 10-03-2024, 04:15 AM
RE: A Skill that throws enemies? - by Bennerdeben - 10-03-2024, 09:02 AM
RE: A Skill that throws enemies? - by DerVVulfman - 10-08-2024, 02:15 PM
RE: A Skill that throws enemies? - by Bennerdeben - 10-08-2024, 05:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Plugin or Script help with Item menu, SKill menu, and Equip menu JayRay 2 61 Yesterday, 03:09 AM
Last Post: JayRay
   Actors & enemies without Morale Bennerdeben 4 2,199 07-15-2023, 06:21 PM
Last Post: Bennerdeben
   [RMXP] Showing skill gained by leveling up on battle result FrQise 12 12,644 05-07-2021, 02:05 PM
Last Post: FrQise
   Skill Cooldown script Fenriswolf 11 16,437 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Scan skill should show states Tumen 5 9,210 05-02-2017, 03:33 AM
Last Post: DerVVulfman
   Dervvulfman's Skill Tree (Micko's) Passive Skill Malfunction! reiji1337 6 9,764 04-28-2017, 03:27 AM
Last Post: reiji1337
   RMXP SKill animations too bright (overlaying the battle screen) Starmage 4 10,151 06-13-2016, 03:41 AM
Last Post: Starmage
   Lycan abs - Making enemies flee on sight ChickenFetus 1 4,411 06-07-2016, 04:39 AM
Last Post: DerVVulfman
   Atoa ACBS HP Regen Skill Lightness 11 14,090 03-11-2016, 10:43 PM
Last Post: Lightness
   Inserting MOG Chain Commands in a particular Skill ID iceflux 6 12,824 08-27-2015, 06:33 PM
Last Post: iceflux



Users browsing this thread: 1 Guest(s)