• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Request] Spell Exhaustion tutorial for TFS 1.x

whitevo

Feeling good, thats what I do.
Joined
Jan 2, 2015
Messages
3,454
Solutions
1
Reaction score
627
Location
Estonia
Lately i have been playing around with custom spells and trying to balance different spells between classes.
Been trying to find good examples/tutorials how to use spell exhaust, but haven't found the right solution for myself yet.

In the spells.XML there is few lines what i think are connected with eachother: (correct me if im wrong)
Exhaustion = this will put spell itself on cooldown, and you can't use this spell again before this time is over.
group = you can only use 3 different group type, and its synergy with groupCooldown
groupCooldown = places the entire group of spell under cooldown.

What i would like to know more about spell exhausts: [Using methods without changing sourcecode]

Are my understanding about exhaustion correct so far?

How could i make more groups, so i could make custom exhaust groups.
example:
I got Death and Energy Spells on Sorcerer. If i do any of these, another one will go under same cooldown, but it wont affect any other damage spells what is not listed under same group.

What were Spell ID's for? (i deleted them and nothing changed, so i'm not using them)

Where does global exhaust time come from for spells? (i mean when i try to cast 2 spells at once, only 1 of them what i activated first, counts. For the another 1 i need to wait a little)

Are the Cooldown bars near chatbox related to exhaust times somehow?
If yes, then how could set them up for each spell?
------------------------------------------------------------------------------------------------------------------------
I know that i could make creaturescripts for custom exhaust times for every single spell, but if its possible why not use spell.xml for his max potential.
 
Last edited:
1. learn lua
2. use the exhaust in spells.xml
3. keep it simple
4. I really don't like you

How is that a tutorial?
1. Learning lua doesn't give me more. I know how could i do almost all of these questions with scripts, but i have feeling there is FAR more easier solution than writing script for every single spell in creaturescripts.
2. You are just brilliant.
3. This is why i would like the tutorial, Its much harder to figure it out my own (been trying to udnerstand these things for ~2hours now, i placed this problem aside for now)
4. I like your avatar cat picture.
 
1.- You'll have to do that with get/set storages in each custom spell.
2.- The spell id are the image/icon shown of each spell on the cooldown bar.
3.- There's no global exhaust AFAIK, you can cast up to 3 (or 4?) spells at the same time if they're not on the same group.
4.- As you said, the exhaust is the one for each spell, and the groupcooldown is the exhaust for the entire group.
 
Back
Top