This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [Question] Spell.dbc weird description  (Read 1643 times)

Big Bad Bot

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 75
    • View Profile
[Question] Spell.dbc weird description
« 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

deep6ixed

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 189
    • View Profile
Re: [Question] Spell.dbc weird description
« Reply #1 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Big Bad Bot

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 75
    • View Profile
Re: [Question] Spell.dbc weird description
« Reply #2 on: November 27, 2014, 01:21:39 pm »
That's usefull. Doesn't solve my problem, but helps a lot; thanks!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

kojak488

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 351
    • View Profile
Re: [Question] Spell.dbc weird description
« Reply #3 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [Question] Spell.dbc weird description
« Reply #4 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [Question] Spell.dbc weird description
« Reply #5 on: November 29, 2014, 12:01:14 pm »
Damn this double post thing.
« Last Edit: November 29, 2014, 12:01:45 pm by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

kojak488

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 351
    • View Profile
Re: [Question] Spell.dbc weird description
« Reply #6 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »