Author Topic: [XP] Flying Enemies  (Read 6174 times)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6583
  • LV: 407
  • Gender: Male
    • View Profile
[XP] Flying Enemies
« on: July 18, 2011, 04:09:44 PM »
Flying Battlers
Authors: game_guy
Version: 1.11
Type: Adds Realism
Key Term: Battle Add-on

Introduction

Script was created completely from inspiration.

Flying Enemies adds some realism to your game. It basically gives the appearance and feel that enemies are floating off the ground. Only weapons with the "flying" element can attack enemies that aren't on the ground. e.g. a gun or a bow. A guy with a sword couldn't very well jump 20 feet and kill something could they? (maybe, it is just a game)

Features

  • Flying Enemies
  • Any battler can fly now with states
  • Specific Spells and Weapons can hurt
  • Floating animation for enemies

Screenshots

(click to show/hide)

Demo

N/A

Script

(click to show/hide)

Instructions

In the script. In fact there is even a small notes section you should read. In fact, here are the notes visually explained.

Skills with a higher INT F then ATK F are considered "Magic" skills. So therefore skills like these will hit flying enemies regardless if they have the Flying element or not. Any skill that does not meet this condition must have the Flying element in order to attack Flying enemies. However, all weapons

Note how fire does not have the flying element, it can still hit flying enemies since in a sense its magic and you don't need to be next to the enemy
(click to show/hide)
This is a skill used by a hunter with his bow. In a sense it should be able to hit flying enemies, but since its not "magic" it needs to have the flying element.
(click to show/hide)

Any weapon you want to hit flying enemies with must have the Flying element.

Compatibility

  • Not tested with SDK.
  • Not tested with any custom battle systems.
  • Attacking flying enemies (and missing) will most likely work throughout all custom battle systems.
  • Animating enemy up and down may or may not work in any custom battle system.

Credits and Thanks

  • game_guy ~ For creating it.
  • Final Fantasy X ~ Started playing this game again and Tidus was unable to hit any flying enemies. ;_; Hence inspiration. :3
  • KK20 ~ For fixing bugs in my absence.

Author's Notes

Enjoy!
« Last Edit: May 07, 2012, 03:28:34 AM by game_guy »

Offline Magus

  • Astral Trancist
  • *****
  • Posts: 544
  • LV: -21
  • Gender: Male
  • Writer of Destiny
    • View Profile
Re: [XP] Flying Enemies
« Reply #1 on: August 09, 2011, 07:13:32 PM »
Interesting. I think I'm going to remake Flame of Life Season 2 and add this in here.
LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

Offline InfinateX

  • Awakened Visionist
  • **
  • Posts: 54
  • LV: -11
  • Gender: Male
  • Enslaving pigeons since 2003
    • View Profile
Re: [XP] Flying Enemies
« Reply #2 on: August 20, 2011, 08:52:23 AM »
I really like XP better then VX. Here's another reason :(
I made a signature!

Offline Vexus

  • Ethereal Devastator
  • ****
  • Posts: 365
  • LV: 9
    • View Profile
Re: [XP] Flying Enemies
« Reply #3 on: February 28, 2012, 11:22:41 PM »
Sorry for the necropost but would it be hard to edit this script so that the "fly" effect could be given by a status effect too?

I got a cbs which has the sort of floating feature by adding a flying status effect and I would like it to be optional as I have some monsters that stay on the ground but got a skill fly that adds the status effect.

Thanks.
Current Project/s:

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6583
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Flying Enemies
« Reply #4 on: February 29, 2012, 01:20:12 AM »
Honestly, I don't know why I didn't do that in the first place. Took two minutes to edit it in, actors and enemies can now "fly" or "float". To make an actor float, all they need to do is have a "Flying" state. Same goes for enemies. They can be flying by default or they can be inflicted with a flying state. Note I didn't test this so there might be an error but I'm pretty sure its right.

Offline Vexus

  • Ethereal Devastator
  • ****
  • Posts: 365
  • LV: 9
    • View Profile
Re: [XP] Flying Enemies
« Reply #5 on: February 29, 2012, 06:04:49 PM »
Thanks that was fast :)

It seems to work.

Thanks again.
Current Project/s:

Offline Spoofus

  • CP's Lovable Turtle
  • Astral Trancist
  • *****
  • Posts: 798
  • LV: 19
  • Gender: Male
    • View Profile
Re: [XP] Flying Enemies
« Reply #6 on: May 05, 2012, 07:33:33 AM »
i keep getting this error:

line 113:NoMethodError
indefined method '+' for nil:NilClass

dunno what is causing it,I have not touched anything in the script.


My Blog site I am working on: http://spoofus.weebly.com/

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Lexima Warrior
  • ****
  • Posts: 2854
  • LV: 364
  • Gender: Male
  • Bringer of Salt
    • View Profile
Re: [XP] Flying Enemies
« Reply #7 on: May 05, 2012, 08:35:20 AM »
Couple of things I noticed:
1. The array that is suppose to configure which enemies are flying also applied to actors (fixed it)
2. When updating the battle sprites, sometimes @battler was nil. This was most likely caused by parties not of size 4. Class Spriteset_Battle, for some stupid reason, likes to think there are 4 actor sprites to update (fixed it)
(click to show/hide)



(click to show/hide)
NNID: KK20-CP

Offline Spoofus

  • CP's Lovable Turtle
  • Astral Trancist
  • *****
  • Posts: 798
  • LV: 19
  • Gender: Male
    • View Profile
Re: [XP] Flying Enemies
« Reply #8 on: May 05, 2012, 10:18:44 AM »
awesome,it works now.

thanks for the quick response KK now my flying enemies look the way they should.


My Blog site I am working on: http://spoofus.weebly.com/

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6583
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Flying Enemies
« Reply #9 on: May 07, 2012, 03:28:56 AM »
Updated first post with KK20's fix. Sorry for my absence and thank you for fixing it. :3