Spell Efficiency system v1.1

By Ankron

 

Table of contents

            Terms of use

            Introduction

            Install

            Commanding

            Scripting with Mana Efficiency

            Revisions

 

Terms of use:

Give me credit, and please don’t redistribute with out asking first.

 

Introduction:

What this script does:

 

This script allows you to reduce your mana usage by percentages. If the chars percentage goes over 100, then that chars mana will increase every time you cast. Like wise, if you decrease the mana below 0 it will increase the amount of mana you need for a spell. IE Lets say I have -100% efficiency and a spell requires 100 mana, I’ll wind up using 200 mana. This makes it so you can level the playing fields with high powered mages. Ie a newbie is now in game, and I want him to have a fair fight with a high powered mage. So I set the high powered mage to -50% mana. Now the higher mage will need more mana to do the spell.

 

Install Instructions

 

1.) drop this script and the chardefs in your scripts directoryunless you’ve edited the sphere chars.

2.) Add tevents=e_manauserto all custom chardefs before the @create. Other wise you'll have chars using free mana all

    the time. before you add a tevent, it should look something like this...

 

[CHARDEF 0401]

DEFNAME=C_H_VENDOR

NAME=#NAMES_HUMANMALE the Vendor

ID=C_MAN

HIREDAYWAGE=50

DESIRES=i_gold,e_notoriety

AVERSIONS=t_TRAP,t_eerie_stuff

after you add a tevent it should look like this...

 

[CHARDEF 0401]

DEFNAME=C_H_VENDOR

NAME=#NAMES_HUMANMALE the Vendor

ID=C_MAN

HIREDAYWAGE=50

DESIRES=i_gold,e_notoriety

AVERSIONS=t_TRAP,t_eerie_stuff

 

TEVENTS=e_manauser

On=@create

 

This makes it possible to add the event to all exsisting charactors

with out having to rebuild the shard.

3.) finally resync the shard

 

Using the command:

The main command is “.spelleff x”. Where the x is can be any number. IE

1, -2, +50.

 

If there is a “–“ in the argument it will decrease the mana efficiency by the amount following the “-“. IE if I have 50% already, and I type in “.spelleff -40” I’ll have 50%-40% which equals 10% effeciancy.

 

If there is a “+“ in the argument it will increase the mana efficiency by the amount following the “+“.IE if I have 50% already, and I type in “.spelleff +40” I’ll have 50%+40% which equals 90% effeciancy.

 

If I type in “.mana use” with any number and no “+” or “-“, my mana efficiency will be that number.

 

Scripting with Mana Efficiency

It works almost the same as the commands above. How ever this doesn’t work with “Multiple” math functions so you’ll have to use “tag.spelleff” in these instances. To check it you would always use “tag.spelleff”.

 

Revisions:

Changed the name to spell efficiency from mana-reduction

Changed “tag.manareduction” to “tag.spelleff”

Added default char files for sphere to save time in adding the system.

Added a help file

Added a stat gain script for spell efficiency

Command changed from mana reduction to mana use.