Jump to content
Sign in to follow this  
Tsukihime

FP: Effect Extend

Recommended Posts

FP: Effect Extend

Author: Tsukihime

 

Overview

 

Effects are applied when you use a skill or item.

There are a variety of possible effects, but in the end they are still limited.

 

This script aims to expand the amount of effects you can have.

 

Features

  • Change the value of a switch (true/false)
  • Change the value of a variable

You can combine this with Conditional Effects as well, which allows you to specify conditions that must be met before an effect is activated. Conditional Effects must be placed BELOW this script.

 

Usage

 

The basic effects are setting switches and setting variables.

 

 

 

To set a switch, tag your skill/item with

 

<fp:ee s[2] true>
<fp:ee s[235] false>

 

Note that it is actually a formula, and the keyword "s" is used to refer to other switches, so you can say something like

 

<fp:ee s[1] !s[1]>

 

If you want to negate the value of the specified switch.

You should avoid using anything that doesn't evaluate to true/false.

 

To set a variable, use

 

<fp:ee v[n] [formula]>

 

Where n is the variable number and the formula can be pretty much anything you want as long as it's valid.

 

If you need to refer to other variables, use the keyword "v"

For example, to double the value of variable 1, you would say

 

<fp:ee v[1] v[1]*2>

 

 

 

Downloads

 

Script: http://db.tt/aiA9kbxn

 

Notes

 

Request for more effects are welcome.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

Suggestion:

Allow skills to set variables and switches when learned.

This way we can have passive skills, which augment other skills,that include variables in their damage formulas.

 

FIreball's damage formula could be

a.mat * (1 + v[1] / 100)

 

and a passive skill would assign the variable 1 the value 20, when learned, so that Fireball damage would be increased by 20%.

 

Sincerely

Edited by rofl1337

Share this post


Link to post
Share on other sites

Skill learning is not really an effect though.

Effects are things that occur when a skill/item is used.

 

btw damage formulas already use variables.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

I know that they already use variables. That's why I suggested this feature.

Setting variable values when learning a skill might fit your Passive Effects script better, though.

Skills that augmented other spells were called Passive Skills in Diablo, which did just that, after all.

Sincerely

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted