Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffs and debuffs #470

Open
eric-ycw opened this issue Feb 4, 2014 · 4 comments
Open

Buffs and debuffs #470

eric-ycw opened this issue Feb 4, 2014 · 4 comments

Comments

@eric-ycw
Copy link
Member

eric-ycw commented Feb 4, 2014

This topic has been thrown around a lot of times, and still haven't come to a conclusion. So buffs and debuffs are effects that can be inflicted by items, Npcs, triggers and blah. Maybe it would work like this(just a simple idea, I suck at coding):

on hit or other things that will possibly inflict the effect {
       if inflicted {
//Add effect
//Add period of time
//Add sprite(poison bubbles for poison, flames for fire... something like that)
//Antistack measures
       }
}

@bsparks
Copy link
Member

bsparks commented Feb 4, 2014

well it'd be similar to that, most likely we'd define a buff/debuff object that has several properties like:

affectedStat: 'health',
duration: 10, // seconds
modifier: -1, // -1 per second,
particleEffect: 'poison_bubbles',
stackable: false

that configuration would be defined as "PoisonEffect" or something, and then each player/npc would have an array of effects that would get added to. during the game loop, it would loop through that array of effects and apply the modifier on the stat, play the particle, etc.

something like that

@ghost
Copy link

ghost commented Feb 4, 2014

I was thinking, you know the older final fantasy games? In FFVI, when a player has a status effect, all black pixels are replaced with another color that signifies their status effect.

For instance, a protection spell will replace all black with a light yellow.

Could we implement that dynamically? Like instead of doing this for every sprite in the game, create a script that will allow this to occur on effect using JS.

@bsparks
Copy link
Member

bsparks commented Feb 4, 2014

using a pixel shader yes you can do things like that

@ghost
Copy link

ghost commented Feb 4, 2014

That would be awesome. :D


From: Ben Sparks [email protected]
To: ironbane/IronbaneServer [email protected]
Cc: Kevin [email protected]
Sent: Tuesday, February 4, 2014 2:02 PM
Subject: Re: [IronbaneServer] Buffs and debuffs (#470)

using a pixel shader yes you can do things like that

Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants