Author Topic: [XP] Weapon Attacks by Skill or Item  (Read 1777 times)

Offline Wecoc

  • Transcended Spirit
  • ***
  • Posts: 108
  • LV: 44
  • Gender: Male
    • View Profile
    • Mundo Maker
[XP] Weapon Attacks by Skill or Item
« on: August 28, 2014, 04:58:36 PM »
Weapon Attacks by Skill or Item
Authors: Wecoc
Version: 1.0
Type: Attack Add-on
Key Term: Battle Add-on

Introduction

This script allows certain weapons to attack using a skill or an item. It can be usefull for example because weapons can't call common events but items and skills can.


Features

  • Use a default attack, or attack using item, skill or both
  • Use it to add special features to the attack for example to call a common event
  • Avoid attacks without weapon and defense without shield.

Screenshots

N/A

Script

(click to show/hide)

Instructions

In the start of the script there are two hashes.
The first one (SKILLS) works in that way:

Code: [Select]
1 => [7, true]
That means the weapon with ID 1 uses the skill with ID 7 (it doesn't matter if the character doesn't have that skill). The true / false indicates whether SP is spent or not. If true, the skill will spend SP so if the character has not enough he/she will not be able to attack.

Example: Fire Weapon. When you attack, it will do a fire effect. It does not depend on actor's skills, it does the fire effect only because of the weapon type.

The second hash (ITEMS) is so similar:

Code: [Select]
1 => [7, true]
That means the weapon with ID 1 uses the item with ID 7. The true / false indicates if  the item is spent or not. If false, the party can have none.

Example: Bow and arrows. If you have no arrows you can't use the bow.


Compatibility

It was done for the default battle. Still, it shouldn't be difficult to adapt to other systems.

Credits and Thanks

  • Wecoc

Author's Notes

I have to learn English properly, I find it harder to publish the scripts than to make them.
Also, some of you are so great that most of my scripts give pain in comparison xDD
You can improve the script if you want.
« Last Edit: August 28, 2014, 05:00:40 PM by Wecoc »

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19906
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Weapon Attacks by Skill or Item
« Reply #1 on: August 28, 2014, 05:40:35 PM »
I have to learn English properly, I find it harder to publish the scripts than to make them.
Also, some of you are so great that most of my scripts give pain in comparison xDD

LMAO!
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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.