Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Big Bad Bot on November 24, 2014, 02:26:37 pm

Title: [Question] Spell.dbc weird description
Post by: Big Bad Bot on November 24, 2014, 02:26:37 pm
Hello everyone. Right now I want to do something pretty weird. I'm looking to make a custom spell that reflects some attributes placed in other DBC rows or simply the character attributes (like his HP, MP, celerity level, etc). I know some "codes" in the column 177 point to the data of other fields in the same row, like "$s1" who reflects the value of column 81, "$t2" and "$d" who points to loop time and duration time (just other fields really).

TL;DR?
I want to make a spell that shows in the description the strenght of the character player, like (if he have 200): "This spell does 200 damage points" (I don't care if the spell doesn't really do that damage, it's an example).

So guys, do you think that this is possible?

PS: There's a graphic representation about what I want to do.
Title: Re: [Question] Spell.dbc weird description
Post by: deep6ixed on November 25, 2014, 09:01:24 am
For character level it's possible, but not for anything else that I know of.  For level, make a dummy spell effect and set the EffectRealPointsPerLevel column for that effect to 1, then when you use $sX for that effect it will show character level in the tool tip
Title: Re: [Question] Spell.dbc weird description
Post by: Big Bad Bot on November 27, 2014, 01:21:39 pm
That's usefull. Doesn't solve my problem, but helps a lot; thanks!
Title: Re: [Question] Spell.dbc weird description
Post by: kojak488 on November 28, 2014, 08:15:43 pm
I'm not sure if there is a solution for this.  The closest is spells that add a % of your stat to something.  For example, Nurturing Instincts increases your healing by a % of your agility.

Now I suppose you could try doing this via a 2-spell system.  Spell 1 would be the damage spell and spell 2 would be the damage modifier.  You could try normalizing Spell 1 to deal 0 base damage.  Spell 2 then modifies spell 1 by adding 100% of, for example, your intelligence (which is let's say 100).  So now Spell 1 should do 100 damage.  However, I'm not sure if Spell 1's tooltip will reflect that.
Title: Re: [Question] Spell.dbc weird description
Post by: Amaroth on November 29, 2014, 12:01:14 pm
Restores $o1 health over $d.  Must remain seated while eating.  If you spend at least 10 seconds eating you will become well fed and gain $19705s1 Stamina and Spirit for $19705d.

Taken from spell 5004 (Food) which is using spell 19705 (Well Fed) as triggered spell. Might help a bit.
Title: Re: [Question] Spell.dbc weird description
Post by: Amaroth on November 29, 2014, 12:01:14 pm
Damn this double post thing.
Title: Re: [Question] Spell.dbc weird description
Post by: kojak488 on November 29, 2014, 04:28:29 pm
Quote from: "Amaroth"
Restores $o1 health over $d.  Must remain seated while eating.  If you spend at least 10 seconds eating you will become well fed and gain $19705s1 Stamina and Spirit for $19705d.

Taken from spell 5004 (Food) which is using spell 19705 (Well Fed) as triggered spell. Might help a bit.

That doesn't help at all.  The well fed just increases his stamina and spirit by a set amount.  He's looking for a way that references his character's actual stamina and spirit.