Adding to the Spellbook Pt II

Discussion in 'General Modification' started by Kuraylon, Jun 7, 2005.

Remove all ads!
  1. Cujo

    Cujo Mad Hatter Veteran

    Joined:
    Apr 4, 2005
    Messages:
    3,636
    Likes Received:
    1
    Success, well kinda, I got the game to recognise my new spell, but it doesn't deal the damage that I wanted it to, I thought I knew how to adjust the damage a spell deals but looks like I was wrong, so any one know?
     
  2. darmagon

    darmagon stumbler in the dark

    Joined:
    Mar 22, 2005
    Messages:
    295
    Likes Received:
    0
    what function are you using in your script to do the damage? Actually scratch that. Can you post a copy of your script for me to look at? That would make it easier I think because then I could see what you are doing. There are a number of ways of doing damage with a spell from what I can see by scanning over the various scripts. If I can see how you are trying to do it, maybe I can help you.

    Darmagon
     
  3. Cujo

    Cujo Mad Hatter Veteran

    Joined:
    Apr 4, 2005
    Messages:
    3,636
    Likes Received:
    1
    its that high so I can see if its actually changing, its just a copy of magic missile
    From "Spell569 - Cujos Magic Missile.py"
     
  4. darmagon

    darmagon stumbler in the dark

    Joined:
    Mar 22, 2005
    Messages:
    295
    Likes Received:
    0
    okay then you are using it with
    Code:
    condition_add_with_args("sp-Magic Missile" ...damage_dice.roll())
    the code you are using should give you damage between 11 and 61. what is the damage you want to get?

    Darmagon
     
  5. Cujo

    Cujo Mad Hatter Veteran

    Joined:
    Apr 4, 2005
    Messages:
    3,636
    Likes Received:
    1
    to get damage between 11 and 61 would be fine and dandy just now, but in my tests i'm getting 2, 3, 4 or 5 which says to me that its still running on 1d4 + 1
     
  6. darmagon

    darmagon stumbler in the dark

    Joined:
    Mar 22, 2005
    Messages:
    295
    Likes Received:
    0
    okay let me test brb
     
  7. darmagon

    darmagon stumbler in the dark

    Joined:
    Mar 22, 2005
    Messages:
    295
    Likes Received:
    0
    in place of the condition_add_with_args call put this instead
    Code:
    target.obj.spell_damage( spell.caster, D20DT_FORCE, damage_dice, D20DAP_UNSPECIFIED, D20A_CAST_SPELL, spell.id )
    That should give you the correct damage. It seems magic missile has hard-coded damage.

    Darmagon
     
  8. Cujo

    Cujo Mad Hatter Veteran

    Joined:
    Apr 4, 2005
    Messages:
    3,636
    Likes Received:
    1
    Thanks so much, it works. Can I make it so NPCs and PCs can't use it as a spell so the only way to use it is use magic item?
     
  9. darmagon

    darmagon stumbler in the dark

    Joined:
    Mar 22, 2005
    Messages:
    295
    Likes Received:
    0
    not sure about that. in mes\spell.mes some of the spells have a designation INTERNAL. That might be what you want. Not sure though. Anyway gotta get ready for work....Glad I could help.

    Darmagon
     
  10. Cujo

    Cujo Mad Hatter Veteran

    Joined:
    Apr 4, 2005
    Messages:
    3,636
    Likes Received:
    1
    Nah its not but I figured it out, thanks to you I now have a gun that deals 5d12+1 damage per shot (out of 5) or pistol whip at 1d3.
     
  11. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    5,009
    Likes Received:
    254
    A gun??? wouldn't it be better to use a ranged touch attack to simulate the fact that armour is useless against bullets?
     
  12. Kuraylon

    Kuraylon Member

    Joined:
    Jun 3, 2005
    Messages:
    16
    Likes Received:
    0
    A gun? He made lightning come from a tube without the use of magic? Witch! He's a witch! BUUURN HIM!!! Quick, someone get a duck and some scales! Hurry, hurry, before they notice the hypocracy!!
     
  13. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    5,009
    Likes Received:
    254
    Kuraylon - did you see i added some sounds for your disintegrate spell in the other thread?

    It's coming along nicely, just an eyecandy suggestion - when the target disapears could you add the anim for stoneskin, to give the impression that the target got instantly turned into powder?
     
    Last edited: Jun 20, 2005
  14. darmagon

    darmagon stumbler in the dark

    Joined:
    Mar 22, 2005
    Messages:
    295
    Likes Received:
    0
    yes I did see the fact that you added some sounds for my disintegrate spell. Thanks, good work. i will work them in as soon as I get a chance. I will also look into adding the stoneskin particles. Thanks for the suggestion. :)

    Darmagon
     
  15. 0rion79

    0rion79 Established Member

    Joined:
    Apr 9, 2005
    Messages:
    573
    Likes Received:
    0
    It is lovely to see people working as a team :)
     
Our Host!