[RESOLVED] Stackable States

Started by chino69, October 25, 2008, 12:55:35 am

Previous topic - Next topic

chino69

October 25, 2008, 12:55:35 am Last Edit: October 29, 2008, 10:45:00 am by Blizzard
What I'm trying to do is stack state changes on an enemy.  For example, I can stack bleeds on the enemy using a "Bloodgush" skill (states will be called Bleed1, Bleed2, Bleed3, etc.)  Once the enemy hits a bleed5 they will recieve a state change of fatal.  Each state will go in order.  You cannot stack a bleed2 on an enemy unless they have bleed1.  Bleed3 will not stack unless enemy has Bleed2 and so on. 

For all intents and purposes each Bleed stack is a different animation that makes the enemy look worse-and-worse.   

Is there any way to do this?  Whether in script or just through the database? 

Blizzard

I don't know about a script like that, but when somebody creates one (it's REALLY easy, just check if a state is there and add another one), I will gladly add it to Tons of Add-ons.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

chino69

Can anybody help me with this?  Thanks Blizz for giving me a rough idea.  Can someone perhaps at least point me in the direction where I would go in and make those kind of changes to the existing scripts?  Optimally it would be a seperate script where I could configure it sort of like Blizz, where arrays hold values that the user could easily input instead of hardcoding in the states.

I've always liked the idea of progressive or stackable states and want to implement this for a new game I'm making.

Blizzard

October 29, 2008, 09:35:00 am #3 Last Edit: October 29, 2008, 10:44:40 am by Blizzard
Meh, give me a few minutes. I'll do it myself. Expect Tons v6.7b any minute.

EDIT: Just a question, old states disappear, right?

EDIT: Nvm, I made it optional. Anyway, I'm going to put up Tons v6.7b now.

EDIT: Done. http://forum.chaos-project.com/index.php?topic=105.0
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.