Spider Web

Discussion in 'General Modification' started by anatoliy, Jul 24, 2019.

Remove all ads!
  1. anatoliy

    anatoliy Member

    Joined:
    Feb 18, 2017
    Messages:
    99
    Likes Received:
    6
    I was always wondering why Troika decided to go with Spider implementation of Web using their own kind of Web spell. If you look at the actual Spider extraordinary ability of Web, it is very similar to Net weapon, and only works on one person.

    MM288
    PHB 119
    I saw many new spells were created, but this one not. Why?

    In any case I tried to create one, and it work (well almost):
    Code:
    from toee import *
    
    def OnBeginSpellCast( spell ):
        print "Spider Net OnBeginSpellCast"
        print "spell.target_list=", spell.target_list
        print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level
        game.particles( "sp-evocation-conjure", spell.caster )
    
    def OnSpellEffect( spell ):
        print "Spider Net OnSpellEffect"
    
    def OnBeginRound( spell ):
        print "Spider Net OnBeginRound"
    
    def OnBeginProjectile( spell, projectile, index_of_target ):
        print "Spider Net OnBeginProjectile"
    
        projectile.obj_set_int( obj_f_projectile_part_sys_id, game.particles( 'sp-Ray of Frost', projectile ) )
    
    def OnEndProjectile( spell, projectile, index_of_target ):
        print "Spider Net OnEndProjectile"
        target_item = spell.target_list[0]
        hit_val = spell.caster.perform_touch_attack( target_item.obj )
        #print("hit_val: " + str(hit_val))
        if (hit_val & D20CAF_HIT):
            # hit
            #game.particles( 'sp-Web', target_item.obj )
            target_item.obj.condition_add_with_args( 'sp-Entangle On', spell.id, 10, 0 )
            target_item.partsys_id = game.particles( 'sp-Ray of Enfeeblement-Hit', target_item.obj )
            spell.caster.obj_set_int(obj_f_critter_strategy, 0)
        else:
            # missed
            target_item.obj.float_mesfile_line( 'mes\\spell.mes', 30007 )
            game.particles( 'Fizzle', target_item.obj )
    
        spell.target_list.remove_target( target_item.obj )
        spell.spell_end( spell.id )
    
    def OnEndSpellCast( spell ):
        print "Spider Net OnEndSpellCast"
    Still things to do:
    * Find appropriate Net projectile particles. Help is appreciated.
    * Find appropriate Netted particles. Help is appreciated.
    * Create new condition of "netted" instead of 'sp-Entangle On' as it does not suit completely.

    "Netted" condition. Or entangled2, does not matter. It should:
    * Restrict movement to half speed;
    * Penalty on Attack;
    * Penalty on Dex;
    * Enforce spell Concentration DC 15 check;
    * Allow Break Free with custom (Spider will chose) DC;
    * No dispell (usual entangle could be);
     
    Loial likes this.
  2. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    4,667
    Likes Received:
    136
    V2Brute is the particle editor for ToEE, if you can figure out how it works, you could make the particles you require... there should be a download link on the forum somewhere if you don't already have it. Adding new conditions would need to be done through Temple+, perhaps @Sitra Achara can help you out there.
     
    anatoliy likes this.
  3. anatoliy

    anatoliy Member

    Joined:
    Feb 18, 2017
    Messages:
    99
    Likes Received:
    6
    Sitra already helped me a lot. And we briefly discussed this particular matter.

    Plus I already created one condition "Monster Melee Poison Ex", which is copy of original Monster Melee Poison. It can be configured in arg2 to filter out on which attack it should work. For example Scorpion, monster that I created should only have poison during it's third attack. Which has low attack bonus.

    Particles are the problem. I'm not eager to edit new ones. Perhaps some one know which could be used for flying net projectile; and for webbed creature one.
     
  4. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    4,667
    Likes Received:
    136
    If you are looking for a stock particle to just use from the original available set, I'd suggest searing light for the projectile, and the web entangled particle for stuck targets.
     
    anatoliy likes this.
  5. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    2,714
    Likes Received:
    84
    That reminds me, don't forget the Netted condition should respond to fire damage :)
     
    anatoliy likes this.
  6. Shiningted

    Shiningted I want my goat back Global Moderator

    Joined:
    Oct 23, 2004
    Messages:
    11,798
    Likes Received:
    39
    @anatoliy - I spent literally years trying, on and off, to get some sort of personal 'entangled' or webbed condition going as part of my endless attempts to make the Tanglefoot bag a reality, and never got it to work perfectly. I think you are quite wise in concluding that it needs a new condition. If you do get it going, please feel free to add it to Item 12849 (the Tanglefoot bag) and make an old man's dreams a reality.
     
Our Host!