News: The Storyline Service! Get your inspiration and support here!
Pages: [1] 2 3  All
  Print  
Author Topic: [XP] Weapon Specific Skills  (Read 13087 times)
Aqua
Lexima Warrior
*******

Level: 118
Offline Offline

Gender: Female
Posts: 2555


Quack!


View Profile
« on: July 29, 2009, 08:04:12 PM »

Weapon Specific Skills
Authors: Aqua
Version: 1.1
Type: Skill Limitation Add-on
Key Term: Custom Skill System

Introduction

This script makes it so that some skills can only be used when a certain weapon type is equipped.
For example, it shouldn't be possible to use a skill that shoots a bullet when you're equipped with a sword.

Features

  • Easy Configuration
  • Skills can be set to be used by any weapon type, one weapon type, or only a few weapon types.
  • Should be compatible with all battle systems.

Screenshots

(click to show/hide)

Demo

[link]

Script

(click to show/hide)

Put in new slot above name, probably best right under the RTP scripts.

Instructions

Configure DUMMY_ELEMENT to include all the elements that are used for weapon types.
Each weapon should have at least one of the dummy elements.

Skills without a dummy element can be used with any weapon.
Skills with 1 dummy element can only be used by that weapon type.
Skills with multiple dummy elements can be used by multiple weapon types.

Compatibility

Should be compatible with all battle systems

Credits and Thanks

  • Aqua (aka TerreAqua) for making this.
  • vacancydenied for requesting it.
  • Starrodkirby86 for just being him Happy

Author's Notes

This was much easier than I thought Tongue
« Last Edit: September 29, 2009, 01:40:37 AM by Aqua » Logged

winkio
Epiq
Administrator
Guardian of Chaos
*****

Level: 195
Offline Offline

Gender: Male
Posts: 4396


I am lying.


View Profile
« Reply #1 on: July 29, 2009, 08:11:16 PM »

 Clap an all around useful little script.  Always good to see more of these types of scripts going up.
Logged

I am currently working on Blizz-ABS, since Blizzard has retired.  If you have any suggestions, post them here: http://forum.chaos-project.com/index.php/topic,6164.msg104939.html#msg104939
Aqua
Lexima Warrior
*******

Level: 118
Offline Offline

Gender: Female
Posts: 2555


Quack!


View Profile
« Reply #2 on: July 29, 2009, 08:12:47 PM »

I find it kinda funny how I have more comments than actual script :x
Logged

Subsonic_Noise
Guest
« Reply #3 on: July 29, 2009, 08:17:09 PM »

I didn't know how much I needed this for my game before I saw this thread^^
Thanks + level up
Logged
gameus
Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
Global Moderator
Chaos Ultimate
****

Level: 401
Offline Offline

Gender: Male
Posts: 6467



View Profile
« Reply #4 on: July 29, 2009, 08:19:23 PM »

*levels up*

This should go in tons
Logged

Aqua
Lexima Warrior
*******

Level: 118
Offline Offline

Gender: Female
Posts: 2555


Quack!


View Profile
« Reply #5 on: July 29, 2009, 08:34:16 PM »

Eep... there's a bug... major bug Tongue

So don't use it yet D:


Edit:
Bug fixed Tongue
« Last Edit: July 29, 2009, 08:37:28 PM by Aqua » Logged

Ryex
Arctic Bird of Programming
Global Moderator
Chaos Ultimate
****

Level: 195
Offline Offline

Gender: Male
Posts: 5002


Wants to write a compiler for fun


View Profile
« Reply #6 on: July 30, 2009, 06:38:48 AM »

lol! so simple!
Logged

If time were Truly linear, I would not be here and the world would be knee deep in ashes.
DropBox, the best free file syncing service there is.
(click to show/hide)
Fantasist
Lexima Warrior
*******

Level: 146
Offline Offline

Gender: Male
Posts: 2222



View Profile WWW
« Reply #7 on: July 31, 2009, 11:37:07 AM »

You beat me to it! I was going to complete a slightly different version of this same script. I planned this for my game... Anyway, good work Aqua Happy *wants to level up but already did in an other topic just now, so can't*

EDIT: Wait, you used dummy elements for this? Wow, I never thought of that. I made an elaborate configuration for defining weapon types. But I prefer my way, I like to leave my elements as elements.

Anyway, I'll explain my ideas about this feature so maybe you can expand it. Every weapon type has a certain set of skills the user can master. When a certain weapon type has been used a certain number of times, the actor's weapon level increases and new skills are learned. Basically, it's just another class system with certain skills for certain weapon classes and higher levels teach you more abilities. And as always, you can only use the acquired skills if you're wielding a certain weapon type.
« Last Edit: July 31, 2009, 11:55:51 AM by Fantasist » Logged

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


Aqua
Lexima Warrior
*******

Level: 118
Offline Offline

Gender: Female
Posts: 2555


Quack!


View Profile
« Reply #8 on: July 31, 2009, 07:35:16 PM »

Haha thanks.

Nice idea, Fanta
Looking foward to it.
Logged

Fantasist
Lexima Warrior
*******

Level: 146
Offline Offline

Gender: Male
Posts: 2222



View Profile WWW
« Reply #9 on: July 31, 2009, 09:36:16 PM »

Oh, don't look forward to it. I just wanted to share the idea but since this is already out, there's no need for me to do it again, not until I start working on my game again. And oh, *levels up*
Logged

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


vacancydenied
Trained Member
*

Level: 1
Offline Offline

Gender: Male
Posts: 34


Problem?


View Profile WWW
« Reply #10 on: August 01, 2009, 07:59:29 AM »

I can't wait to make full use of this with my project. Hopefully I can learn a thing or two from this =). Thank you for making this script =D
Logged

Nothing goes as planned but I keep going forward.
C.C. rOyAl
Ethereal Devastator
****

Level: 2
Offline Offline

Gender: Male
Posts: 381

CP's only concept artist!


View Profile
« Reply #11 on: August 12, 2009, 08:00:51 PM »

im  a noob, wat do u mean by dummy element lol  :^_^':
Logged

(click to show/hide)
Aqua
Lexima Warrior
*******

Level: 118
Offline Offline

Gender: Female
Posts: 2555


Quack!


View Profile
« Reply #12 on: August 12, 2009, 08:32:12 PM »

Configure DUMMY_ELEMENT to include all the elements that are used for weapon types.
Each weapon should have at least one of the dummy elements.

Skills without a dummy element can be used with any weapon.
Skills with 1 dummy element can only be used by that weapon type.
Skills with multiple dummy elements can be used by multiple weapon types.

You know... in System how there are elements...
And how there are elemental properties for weapons/armors/items/skills? Tongue
Logged

C.C. rOyAl
Ethereal Devastator
****

Level: 2
Offline Offline

Gender: Male
Posts: 381

CP's only concept artist!


View Profile
« Reply #13 on: August 12, 2009, 08:37:31 PM »

oh ya! srry i hadnt actually been RMing much so i had to go to database. so i just make an element for weapons such as bullets and switch it to A?
Logged

(click to show/hide)
Aqua
Lexima Warrior
*******

Level: 118
Offline Offline

Gender: Female
Posts: 2555


Quack!


View Profile
« Reply #14 on: August 12, 2009, 08:50:17 PM »

On the weapons part of the DB, you just checkmark stuff...

So if it's a gun, you checkmark Gun and stuff... XD
Logged

C.C. rOyAl
Ethereal Devastator
****

Level: 2
Offline Offline

Gender: Male
Posts: 381

CP's only concept artist!


View Profile
« Reply #15 on: August 12, 2009, 08:55:06 PM »

ok i think i get it. so say i wanted a skill called sure shot for guns only. for the weapon guns i would make an element named guns and in skills where i put sure shot i would check guns?
Logged

(click to show/hide)
Aqua
Lexima Warrior
*******

Level: 118
Offline Offline

Gender: Female
Posts: 2555


Quack!


View Profile
« Reply #16 on: August 12, 2009, 09:01:01 PM »

Yes, you would.
You know... I put up a demo for a reason Tongue
Logged

C.C. rOyAl
Ethereal Devastator
****

Level: 2
Offline Offline

Gender: Male
Posts: 381

CP's only concept artist!


View Profile
« Reply #17 on: August 12, 2009, 09:11:47 PM »

lol oops i didnt even realize there was one. sorry  :^_^':
Logged

(click to show/hide)
samsonite789
Trained Member
*

Level: 1
Offline Offline

Posts: 31


View Profile
« Reply #18 on: September 28, 2009, 10:47:11 AM »

I'm having a bit of trouble implementing this script.  I'm trying to use it for my RMXP game but it's not working correctly.

I placed it above main and under my other custom scripts.  I followed the directions in setting a dummy element and when I test it it works fine UNTIL I unequip the required weapon from my character and then go into the Skills menu.  When I do that, the game throws this at me and shuts down:

Script 'Weapon Specific Skills' line 101: NoMethodError occurred
undefined method 'element'set' for nil:NilClass

Not exactly sure what to do...if anyone could help me fix this it would be a terrific help and I would appreciate it very much.  I'll even bake you cookies.

Logged
Aqua
Lexima Warrior
*******

Level: 118
Offline Offline

Gender: Female
Posts: 2555


Quack!


View Profile
« Reply #19 on: September 28, 2009, 08:49:42 PM »

Are you saying that you don't have any weapon equipped when it throws the error?

Since... barehands isn't a weapon, and therefore, can't have an element set, that's where the error would be coming from.
Soo...
I'll fix that soon I guess
Logged

Pages: [1] 2 3  All
  Print  
 
Jump to:  


*
*
Shoutbox
Latest Shouts
View All
December 18, 2014, 11:57:17 PM Zexion: I know it's depressing :[
December 18, 2014, 07:35:59 PM soulshaker3: Christmas and stuff, also I'm doing what I never pictured myself doing e.e
December 18, 2014, 05:32:27 PM Blizzard: It's been very quiet here in the past few days. O_o
December 18, 2014, 12:22:37 PM soulshaker3: As I said my story, things like I want if I say you're Mr. Botex you'll be Mr. Botex
December 18, 2014, 08:23:56 AM Blizzard: Botox*
December 17, 2014, 07:16:42 PM soulshaker3: I can change my story whenever I want thus making yours a rip off, to confirm that from now one you're called Mr. Botex
December 17, 2014, 06:43:26 PM Blizzard: I pirated it from Piratebay. Now it's mine! :D
December 17, 2014, 01:39:07 PM soulshaker3: It changed, it's my story I tell it how I want
December 17, 2014, 08:18:15 AM Blizzard: Accurate. #_#
December 17, 2014, 02:15:54 AM RoseSkye: Seems the same to me. *walks away wearing nothing but a trenchcoat*

View All


HB Games RpgMaker.org