• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Adding an Armor Spike type attack!

bodrin

Well-known member
Pretty straight forward ability but having a problem implementing this.

"Your hair grows into sharp quills. When not wearing armor, you may make attacks with your hair as though you were wearing armor spikes"

I've bootstrapped the wArmorSpk tag and entered this code.

Code:
Pre Levels : 5000

      ~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)

      ~ We get an attack similar to armor spikes
      ~ if we aren't wearing armor
      foreach pick in hero where "EquipType.Armor"
          if (eachpick.field[gIsEquip].value <> 0) then
            ~ Hide our armor spikes
            perform hero.childfound[wArmorSpk].assign[Hide.Weapon]
            endif
          nexteach
Error Message

Code:
Attempt to access non-existent parent pick for a top-level container from script
Location: 'eval' script for Component 'BaseWep' (Eval Script '#1') near line 7
- - -
Attempt to access non-existent parent pick for a top-level container from script
Location: 'eval' script for Component 'BaseWep' (Eval Script '#1') near line 10
- - -
Attempt to access non-existent child pick 'gCustMagic' from script
Location: 'eval' script for Component 'BaseItemPw' (Eval Script 'Add Item Power Price') near line 14
- - -
Attempt to access non-existent child pick 'gCustMagic' from script
Location: 'eval' script for Component 'BaseItemPw' (Eval Script 'Add Item Power Price') near line 14
- - -
Attempt to access non-existent child pick 'gCustMagic' from script
Location: 'eval' script for Component 'BaseItemPw' (Eval Script 'Add Item Power Price') near line 15
- - -
Attempt to access non-existent child pick 'gCustMagic' from script
Location: 'eval' script for Component 'BaseItemPw' (Eval Script 'Add Item Power Price') near line 15
- - -
Attempt to access non-existent child pick 'gCustMagic' from script
Location: 'eval' script for Component 'BaseItemPw' (Eval Script 'Add Item Power Price') near line 29
- - -
Attempt to access non-existent child pick 'gCustMagic' from script
Location: 'eval' script for Component 'BaseItemPw' (Eval Script 'Add Item Power Price') near line 32
- - -
Attempt to access non-existent child pick 'gCustMagic' from script
Location: 'eval' script for Component 'BaseItemPw' (Eval Script 'Add Item Power Price') near line 32
- - -
Attempt to access non-existent child pick 'gCustMagic' from script
Location: Procedure 'iDescAdd' near line 5
Do I have to create a new Armor Spike like weapon as it would appear that the code is having a tough time trying to add the spike attack?

Any thoughts?
 
You are going to just have to create a new weapon that has all the stats you need for your hair spikes. The built in armor spikes is too tied into the actual custom armor gizmo to be of much use away from it.

The other option is to make 'hair' armor, add that to your character and add armor spikes to it.
 
You are going to just have to create a new weapon that has all the stats you need for your hair spikes. The built in armor spikes is too tied into the actual custom armor gizmo to be of much use away from it.

The other option is to make 'hair' armor, add that to your character and add armor spikes to it.

That's what I thought.
Hair spike weapons it is.:cool:
 
Also instead of doing a foreach loop to figure out if a person is wearing armor just check the tag on the Hero instead. Always avoid using a foreach unless you have no other choice.
 
Back
Top