Author Topic: [XP] Ryex's Weapons Unleash Skills  (Read 22318 times)

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5131
  • LV: 197
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
[XP] Ryex's Weapons Unleash Skills
« on: May 11, 2009, 06:08:10 AM »
Ryex's Weapons Unleash Skills
Authors: Ryex
Version: 1.22
Type: Weapon Add-On System
Key Term: Battle Add-on

Introduction

Implements a Unleash system like the one found in Golden sun


Features

  • Allows Weapons to have a chance to "Unleash" skills from the database
  • Customizable unleash rates/chance to unleash for every weapon

Screenshots

(click to show/hide)


Demo

Media Fire


Script

(click to show/hide)

Use the below version if you use Blizz ABS
(click to show/hide)


Instructions

In Script

Compatibility

none know
May not work with old save games
works with all target scopes


Credits and Thanks

  • Ryex

Author's Notes

Wow this was WAY easer than I though it would be

Enjoy and post any bugs!
« Last Edit: November 19, 2014, 03:39:18 AM by KK20 »
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [RMXP]Ryex's Weapons Unleash Skills
« Reply #1 on: May 11, 2009, 06:10:19 AM »
Rye the $data_weapons thing wont work without modding module RPG

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5131
  • LV: 197
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [RMXP]Ryex's Weapons Unleash Skills
« Reply #2 on: May 11, 2009, 06:11:45 AM »
It work trust me I've tried it

oh and
Quote
Code: [Select]
module RPG
 
  class Weapon
   
    attr_accessor :unleash_id
    attr_accessor :unleash_chance
   
    alias ryex_WUS_MWeapon_init_later initialize
    def initialize
      ryex_WUS_MWeapon_init_later
      @unleash_id = 0
      @unleash_chance = false
    end
   
  end
 
end
« Last Edit: May 11, 2009, 06:13:15 AM by Ryexander »
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [RMXP]Ryex's Weapons Unleash Skills
« Reply #3 on: May 11, 2009, 06:15:33 AM »
I didnt realize you had put the module RPG in there sorry  :shy:

and in the other topic I was showing you another way to setup config that way people dont ahve to type up
$data_weapons


they can just use this

Code: [Select]
module RPG
 
  class Weapon
   
    def unleash_id
      case id
      when 1 then return 2
      end
      return 1
    end
   
    def unleash_chance
      case id
      when 1 then return 100
      end
      return 50
    end
   
  end
 
end

That way people dont have to type up the long $data_weapons
its a simple
when x then return y

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5131
  • LV: 197
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [RMXP]Ryex's Weapons Unleash Skills
« Reply #4 on: May 11, 2009, 06:18:41 AM »
but then they have to type longer

When <Weapon_Id> then return <Unleash chance or Skill_ID>

as opposed to
$data_weapons.unleash_id = <ID>


« Last Edit: May 11, 2009, 06:21:27 AM by Ryexander »
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [RMXP]Ryex's Weapons Unleash Skills
« Reply #5 on: May 11, 2009, 06:20:53 AM »
(click to show/hide)

I added the easy configure in there.
I dont get how it'd be longer its really easy.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5131
  • LV: 197
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [RMXP]Ryex's Weapons Unleash Skills
« Reply #6 on: May 11, 2009, 06:24:20 AM »
ok I see how this is simpler from a logic point of view but not speed or space
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [RMXP]Ryex's Weapons Unleash Skills
« Reply #7 on: May 11, 2009, 06:35:46 AM »
Its completely up to you I was just trying to help make it easier is all.  :^_^':


Offline tSwitch

  • The Haunting
  • Chaos User
  • ******
  • Posts: 1448
  • LV: 1046
  • Gender: Female
  • formerly NAMKCOR
    • View Profile
Re: [RMXP]Ryex's Weapons Unleash Skills
« Reply #8 on: May 11, 2009, 03:02:03 PM »
ok I see how this is simpler from a logic point of view but not speed or space

by using the case/when it keeps all the config and such in one place, it also doesn't require that you make two new variables per weapon, which take up more memory and don't work significantly faster than going through a case/when.

Also, it puts code in less classes (no more game_system) which can help keep the code sleeker and more compatible with other scripts that may also modify the same classes.

lastly, it's just as easy for someone to understand how to configure a case/when, if not a little easier, because the syntax is clear and is almost pseudocode.  "when 1 then return 5" sounds like english whereas "$data_weapons[1].unleash_id = 5" can look pretty cryptic to noncoders.

edit:
oh and I forgot, you'd have to call $data_weapons.unleash_id(id) rather than $data_weapons[id].unleash_id, but that's not a significant difference tbh.
« Last Edit: May 11, 2009, 03:55:53 PM by Elite Four NAMKCOR »

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: tSwitch.us | Twitter | Tumblr

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5131
  • LV: 197
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [RMXP]Ryex's Weapons Unleash Skills
« Reply #9 on: May 11, 2009, 09:30:18 PM »
Alright I relent.

Script updated win new config :P

Edit:
Important UPDATE  I found Two rather huge bugs and promptly fixed then with three lines of code..


Aqua's Note:
Don't double post within 24 hours.  A simple edit to your post would have automatically bumped this. ^_^"
« Last Edit: May 12, 2009, 02:36:16 AM by Elite Four Aqua »
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5131
  • LV: 197
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Ryex's Weapons Unleash Skills
« Reply #10 on: June 11, 2009, 11:55:48 PM »
anybody going to use this?
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: [XP] Ryex's Weapons Unleash Skills
« Reply #11 on: June 11, 2009, 11:58:30 PM »
I can't say whether or not I will use this, but this is cool.

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: [XP] Ryex's Weapons Unleash Skills
« Reply #12 on: June 12, 2009, 12:05:28 AM »
Think this works with Blizz-ABS?

Might use it if it does... lol

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: [XP] Ryex's Weapons Unleash Skills
« Reply #13 on: June 12, 2009, 12:18:54 AM »
I really like it, I do.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5131
  • LV: 197
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Ryex's Weapons Unleash Skills
« Reply #14 on: June 12, 2009, 01:20:38 AM »
Think this works with Blizz-ABS?

Might use it if it does... lol
that would be a bit more complex as skills work differently in Babs, but I could work on it you you want. and it would be a bit weird (i think) if you were swinging you sword about and fire balls randomly fly out... come to think of it that would be AWESOME!
I would have to make a babs only version i think.
« Last Edit: June 12, 2009, 01:26:38 AM by Ryexander »
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Kagutsuchi

  • Ethereal Devastator
  • ****
  • Posts: 468
  • LV: 2
  • Gender: Male
  • The God of .. eating souls?
    • View Profile
    • University Hosted Web Page - In Norwegian
Re: [XP] Ryex's Weapons Unleash Skills
« Reply #15 on: June 12, 2009, 05:26:41 PM »
It seems like when you block, you can do a Unleash skill instead. I think that should be removed.

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: [XP] Ryex's Weapons Unleash Skills
« Reply #16 on: June 12, 2009, 11:28:57 PM »
So, is this kinda like in Final Fantasy Tactics, when you hit someone with a flame rod as a regular attack, and the rod casts magic all by itself!?

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Ryex's Weapons Unleash Skills
« Reply #17 on: June 13, 2009, 01:28:16 AM »
yup thats exactly what it does.

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: [XP] Ryex's Weapons Unleash Skills
« Reply #18 on: June 13, 2009, 02:06:12 AM »
Then this is AWESOME!! =D

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5131
  • LV: 197
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Ryex's Weapons Unleash Skills
« Reply #19 on: June 13, 2009, 08:04:25 PM »
It seems like when you block, you can do a Unleash skill instead. I think that should be removed.

caused by a typo

UPDATED TO V1.22!
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)