Author Topic: [XP] First Strike Skills  (Read 6409 times)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6581
  • LV: 407
  • Gender: Male
    • View Profile
[XP] First Strike Skills
« on: April 11, 2010, 04:10:33 AM »
First Strike Skills
Authors: game_guy
Version: 1.0
Type: Battle Add-On
Key Term: Battle Add-On

Introduction

Remember how in pokemon games, there were certain moves like Quick Attack you would attack first no matter what? This does exactly that!
NOTE: I made a script called First Strike States. This allows skills to strike first instead of having to have a first strike state to attack first.
NOTE: If more then one actor/enemy uses a first strike skill, the fastest will attack first.
NOTE: Depending if you place this below or above First Strike States things may change. (If you use First Strike States.) If Above: Battlers with a First Strike State will attack first then first strike skills. If Below: Battlers that use a First Strike Skill will use the skill first then battlers will attack with first strike states.

Features

  • Setup as many skills
  • Skills attack first at every turn

Screenshots

N/A

Demo

N/A

Script

(click to show/hide)

Instructions

I recommend placing below my First Strike States (if using)
Rest is in the script.

Compatibility

Not tested with SDK.
Made for Default Battle System.
Probably won't work with RTAB (Not Tested)

Credits and Thanks

  • game_guy ~ For making it
  • Shining Riku ~ For the idea of it based from First Strike States

Author's Notes

Enjoy!

Offline Shining Riku

  • Ethereal Devastator
  • ****
  • Posts: 266
  • LV: 7
  • Gender: Male
    • View Profile
Re: [XP] First Strike Skills
« Reply #1 on: April 11, 2010, 05:47:49 AM »
YAY! Thanks man! 8D

This is awesome! *powers up*

If I get any more ideas and whatnot, i'll post 'em where I posted my first one

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19856
  • LV: 641
  • Gender: Male
  • Ok.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] First Strike Skills
« Reply #2 on: April 12, 2010, 08:51:06 AM »
Damn, you're fast. O_o; You remind me of my old days when I was the same. Somebody posts a script request and half an hour later I post a new script topic. xD
Check out Daygames and our games:

King of Booze      Star Doge      Pet Bots
Drinking Game for Android      Star Doge for Android
Drinking Game for iOS      Star Doge for iOS      Pet Bots for iOS
Drinking Game on Steam      Star Doge for PC


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6581
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] First Strike Skills
« Reply #3 on: April 12, 2010, 02:55:25 PM »
It wasn't really hard. I used my First Strike States as a base. I just had to modify a few lines is all. xD

The instructions took the longest. (5 minutes because I was lazy)

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: [XP] First Strike Skills
« Reply #4 on: April 12, 2010, 08:49:14 PM »
Damn, you're fast. O_o; You remind me of my old days when I was the same. Somebody posts a script request and half an hour later I post a new script topic. xD

I remember when you made that tutorial on more armor slots just because I asked on IRC
<3

*sigh*
Those were the days...

Then you went and quit
*grumbles*
« Last Edit: April 12, 2010, 08:50:19 PM by Aqua »

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2222
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
Re: [XP] First Strike Skills
« Reply #5 on: April 13, 2010, 12:16:27 PM »
I wanted to post yesterday, but why don't you merge the two scripts? It makes more sense (to me anyway).

Quote
The instructions took the longest. (5 minutes because I was lazy)
The reason why I didn't release about a handful of scripts yet -_-
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews



Offline Hatsamu

  • Transcended Spirit
  • ***
  • Posts: 109
  • LV: 2
    • View Profile
Re: [XP] First Strike Skills
« Reply #6 on: February 04, 2011, 05:17:12 PM »
I'm not a fan of necroposting so I apoligize for it, but I can't get this to work as I get this error message when I use a skill defined as First Strike:

" not defined method 'attack_always' "


I'm using Blizz Tons. Its a compatibility issue or is it something that could be easily fixed?



Thanks in advance, it would be really nice to got this kind  of skills at my game.
 

Offline Boba Fett Link

  • Enterbrain Spy
  • Ethereal Devastator
  • ****
  • Posts: 298
  • LV: 4
  • Gender: Male
  • DANGER ZONE!
    • View Profile
Re: [XP] First Strike Skills
« Reply #7 on: April 09, 2011, 02:00:07 AM »
I got a similar error as Hatsamu, but it says:


Script 'First Strike' line 46: NoMethodError occurred.

undefined Method 'attack_always' for #<Game_System:0x19d4148>



Anyone know what is wrong?
This post will self-destruct in 30 seconds.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6581
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] First Strike Skills
« Reply #8 on: April 09, 2011, 02:11:33 AM »
remove these lines
Code: [Select]
    if $game_system.attack_always == false
      if $game_party.attacked
        return
      end
    end

No idea what I was thinking there. O_o

Offline Boba Fett Link

  • Enterbrain Spy
  • Ethereal Devastator
  • ****
  • Posts: 298
  • LV: 4
  • Gender: Male
  • DANGER ZONE!
    • View Profile
Re: [XP] First Strike Skills
« Reply #9 on: April 09, 2011, 08:02:39 PM »
Thanks! It works now!
This post will self-destruct in 30 seconds.