Author Topic: [XP] Lanzer Counter  (Read 5949 times)

Offline Lanzer

  • Awakened Visionist
  • **
  • Posts: 56
  • LV: 0
  • Gender: Male
  • Lanzer boy
    • View Profile
[XP] Lanzer Counter
« on: September 22, 2010, 01:17:14 AM »
Lanzer Counter
Authors: LANZER
Version: 1
Type: Custom status
Key Term: Battle Add-on

Introduction

 8) Ok here goes
lurking on the page I found some bit convincent scripts that do a counter-attack
obviously activated by a "attack" or "action kind 0"
then searching in the web i found one but was: old , forgotten and pretty useless
so taking that script i made MY FIRST SCRIPT!!  :naughty:

Features

  • Allows you to counter-attack(not reflect) normal attacks
  • modificable proc an strength ratio
  • It`s a state (means that its linkeable to autostates or health states, skills etc)

Screenshots

How do you SS a "state"?!

Demo

Lazyness

Script


(click to show/hide)

Instructions

 
Paste above main.Other instructions in the script

Compatibility

-100% compatible with default battle system
-it should be compatible with RTAB because it´s a state
-Non tested and maybe incompatible with Self Destruction Kit (cuz it sucks and i hate it)
-NON tested with BABS

Credits and Thanks

  • Thanks to the web were i found this script and the original author (NOT the guy who posted it , cuz he can`t remove the SDK)
  • Thanks to me for successfully removed the SDK bomb
  • Thanks to you,Yes you! for use my remix and level me up

Author's Notes

I HATE Self Destruction Kit(SDK). That`s all
« Last Edit: October 14, 2010, 06:44:27 PM by Blizzard »




Offline Shining Riku

  • Ethereal Devastator
  • ****
  • Posts: 266
  • LV: 7
  • Gender: Male
    • View Profile
Re: FINALLY ! COUNTER ATTACK
« Reply #1 on: September 22, 2010, 08:40:01 AM »
I'll need to test it some more because I put it in one of my projects and the enemies attack me again after i've countered. Other than that, no script issues which i'm REALLY thankful for!

I've been looking for a counter script for forever, and i'm glad that you made one that works.

It's probably too much, but, think it could be edited to counter physical skills as well? That'd be awesome but for now this is great! :D

Offline Lanzer

  • Awakened Visionist
  • **
  • Posts: 56
  • LV: 0
  • Gender: Male
  • Lanzer boy
    • View Profile
Re: FINALLY ! COUNTER ATTACK
« Reply #2 on: September 23, 2010, 12:01:20 AM »
Yeah ! no problem , but if you want a counter system for skills just use the Blizz`s full reflecyion system. Only edit this part of the script

  #----------------------------------------------------------------------------
  # test_reflection
  #  skill - the skill to be check
  #  Checks whether a skill should be reflected.
  #----------------------------------------------------------------------------
  def test_reflection(skill)
    return ((skill.int_f > 0 || skill.mdef_f > 0) &&  #this part change the INT_F, MDEF_F for other values
        @states.include?(BlizzCFG::REFLECT_ID) &&
        !BlizzCFG::BREAK_REFLECT.include?(skill.id) &&
        !skill.minus_state_set.include?(BlizzCFG::REFLECT_ID))
  end
  
end


Blizz full reflection system


(click to show/hide)

enjoy
« Last Edit: September 23, 2010, 12:02:47 AM by Lanzer »




Offline Shining Riku

  • Ethereal Devastator
  • ****
  • Posts: 266
  • LV: 7
  • Gender: Male
    • View Profile
Re: [XP]FINALLY ! COUNTER ATTACK
« Reply #3 on: September 23, 2010, 04:22:38 AM »
Well, skills can be defined as "Magic" or "Physical" depending on what stats the skill uses to determine damage output. I'm already using Blizz's reflection script for reflecting magic, but having a counter script like this is nice too, to help give characters more variety of attacks ya know?

Still, thanks MUCHLY for posting this script! :D

Offline Lanzer

  • Awakened Visionist
  • **
  • Posts: 56
  • LV: 0
  • Gender: Male
  • Lanzer boy
    • View Profile
Re: [XP]FINALLY ! COUNTER ATTACK
« Reply #4 on: October 14, 2010, 01:27:49 AM »
this should be go on the data base?




Offline WhiteRose

  • Trying to code in Ruby
  • Moderator
  • Lexima Warrior
  • ***
  • Posts: 2341
  • LV: 127
  • Gender: Female
  • <3
    • View Profile
Re: [XP]FINALLY ! COUNTER ATTACK
« Reply #5 on: October 14, 2010, 01:57:38 AM »
this should be go on the data base?

Usually moving scripts into the database is G_G's job, but he's MIA around here lately. Hopefully he'll come around once he gets a new computer. Anyway, in the meantime, you can either wait for him to get back or maybe one of the gmods will move it for you.

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP]FINALLY ! COUNTER ATTACK
« Reply #6 on: October 14, 2010, 06:16:05 PM »
Congratulations on your first script. I was happy when I made my first working script. One suggestion I have after scanning the script real quick is the config. Using a hash in this manner is very ineffecient. You actually do not even need the constant, just create a method in Game_Battler that the player can configure.
See this example:

Code: [Select]
  def ul_counter_states(A)
    return case A
    when 1 then [B, C]
    when 2 then [B, C]
    end
  end
This is much more efficient, easier to configure, and much more over-viewable.
I'll check the script out in full later on, but good job!
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Lanzer

  • Awakened Visionist
  • **
  • Posts: 56
  • LV: 0
  • Gender: Male
  • Lanzer boy
    • View Profile
Re: [XP] Lanzer Counter
« Reply #7 on: October 15, 2010, 03:45:18 AM »
i made so it can be very customizable
let`s say we have a warrior and a rogue
warrior have a greater counter damage
but rogue have a greater counter succe rate
and can be linked to skills states etc
retaliation, counter, riposte, bonebreaker , asdasdadasd




Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: [XP] Lanzer Counter
« Reply #8 on: October 15, 2010, 04:02:36 AM »
Your config is really bad...
Do what ForeverZer0 suggest please. @.@

Give more credit to the guy who originally made the script...
Like... his name perhaps... XD

I won't move this until I see those changes
:whistle:

Offline Lanzer

  • Awakened Visionist
  • **
  • Posts: 56
  • LV: 0
  • Gender: Male
  • Lanzer boy
    • View Profile
Re: [XP] Lanzer Counter
« Reply #9 on: October 16, 2010, 12:40:50 AM »
Credits and Thanks


•Thanks to the web were i found this script and the original author (NOT the guy who posted it , cuz he can`t remove the SDK)
•Thanks to me for successfully removed the SDK bomb
•Thanks to you,Yes you! for use my remix and level me up


i don´t know the guy who originally made teh script
and i don´t want to post the page where i found the scritp cuz that´s SPAM right??

well my config is kindda lame but is over-customizable
it only counters the ATTACK order not physical skills , for that purpose just edit the blizz full reflect system

u2(not the group , you two) have a whole lot of experiencie on scripting =( , i only waiting for someone who can find a bug a problem , an incompatibility with BABS, etc  so my soul can peaceful rest :3

enjoy

PD: hey aqua <3 did you read my request in your weapon specific skills =) ??
« Last Edit: October 16, 2010, 12:42:05 AM by Lanzer »




Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Lanzer Counter
« Reply #10 on: October 18, 2010, 06:10:16 PM »
You are apparently not grasping the idea here for the config.
  • It does not change the actual values returned at all.
  • It takes nothing away from the customability of the script, except sloppiness and inefficiency.
  • It looks better.
  • It is easier to configure.
  • Because I said so.

These are all valid points as to why you should do this. If you do not understand or doubt me, just try it out following the template I made above and test it. I'd be more than happy to give you a pointer if you need it.  :P
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.