• 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

An ability that adds a shield-ish thing

Bodhizen

Active member
I am attempting to override the armor class bonus (not deflection or natural armor class bonus) of a shield that is currently on a character by use of a special ability. Is there a way that I can cause a script to do this and override the armor class of that shield?
 
Can anyone please assist? The only value set in my armour is the ArmorAC tag, and I am trying to get a custom ability to override the value. How can I do this? Do I need to have the custom ability swap out the equipment for another item?
 
Have you tried looking at the Shield Focus feat and using the script it uses (or something similar to it)?
 
I am attempting to override the armor class bonus (not deflection or natural armor class bonus) of a shield that is currently on a character by use of a special ability. Is there a way that I can cause a script to do this and override the armor class of that shield?
I am sorry I don't understand what your asking or how it relates to changing the spellcaster ability score?

Are you trying to get the Ability Score of a caster to be the same as the Shield bonus or something?
 
I am sorry I don't understand what your asking or how it relates to changing the spellcaster ability score?

Are you trying to get the Ability Score of a caster to be the same as the Shield bonus or something?

Here is what I am trying to do.

I can create a custom ability that adds a custom item to the character's inventory; in this case, an item that can function as a shield. No problem. I want a second custom ability to increase the armour bonus of the item. Right now, the custom item only shows the armour bonus for the item as a tag (ArmorAC). I can't seem to figure out how to override the tag properly via a custom ability. I can just add a new item with the bonus I want to give it via the secondary custom ability, but then I don't know how to get it to remove the first item.

Does this provide clarity?

Edited to add: Sorry, Mathias. I thought this was a general inquiry thread.
 
Last edited:
I can create a custom ability that adds a custom item to the character's inventory; in this case, an item that can function as a shield. No problem. I want a second custom ability to increase the armour bonus of the item. Right now, the custom item only shows the armour bonus for the item as a tag (ArmorAC). I can't seem to figure out how to override the tag properly via a custom ability. I can just add a new item with the bonus I want to give it via the secondary custom ability, but then I don't know how to get it to remove the first item.

Does this provide clarity?

Edited to add: Sorry, Mathias. I thought this was a general inquiry thread.
To start with once you bootstrap something onto a hero you can't remove it. Ever. So if this Shield could get destroyed or anything then it would be better for the player to manually add it there character. Just a tip.

My first advice would be to check the FAQ post about the editor question 2. Very good advice there on how to learn about the editor.

I would really advise watching the 4 intro videos about the editor. These will teach you how to see Thing values and how to create eval scripts.

As its an eval script your going to have to create to get this to work.
~ Phase: Pre-levels Priority: 10,000
hero.child[THING ID OF YOUR SHIELD].field[Bonus].value += X
X is the amount your want to add to your shield bonus.

Now then the above script assumes that A) its on something other then the shield and B) That the shield will be bootstrapped always onto the hero. Either of those assumptions are wrong the script will need to change.

Hopefully that gets you started in the right direction.
 
I've been playing around in the editor now for about six months and I'm at the point where I'm creating a new class, so I do recognize a lot of the basics, but that doesn't mean that I get all of the nuances to work. :)

Right now, this is for a new character class and it's a pick that lets them have a thing (in this case, an oversized fighting gauntlet that I'm creating enhancements for). I'm not overly concerned that bootstrapping this to the character won't allow it to be removed later (since it's a class power, much in the same way that a Magus' black blade is, I suppose). I'm just trying to get this thing to the point where I can increase its attack stats (done), armor bonus (done, thanks to you!), and other enhancements (like maybe adding in shock damage; still in the works).

So... Thank you very much for all of your help. :)

So, next couple of questions...

I would like to make sure that there is no validation error when I've got the fighting gauntlet equipped both as armour and as a secondary weapon (like a shield bash might work). Can you help me out with this, please?

Secondly, I want to create a custom ability that will add the Shock item power to this item, but haven't been able to make it successful. Can you help me with that as well, please?
 
Last edited:
I've been playing around in the editor now for about six months and I'm at the point where I'm creating a new class, so I do recognize a lot of the basics, but that doesn't mean that I get all of the nuances to work. :)
Ah ok sorry about that I assumed from your low post count that you where just starting out.

I would like to make sure that there is no validation error when I've got the fighting gauntlet equipped both as armour and as a secondary weapon (like a shield bash might work). Can you help me out with this, please?
I am sort of thinking you can't. I think that is going to be controlled by the background scripts which we can't change or affect. Maybe there is someway to trick it but I don't know actually. :(

Secondly, I want to create a custom ability that will add the Shock item power to this item, but haven't been able to make it successful. Can you help me with that as well, please?
This one I can help with. Basically shock is just well text. So its pretty easy to do. You need to first add some text to the item about the shock. Then it would be nice to change the item to add +1d6 electricity.

Render 10,000
Code:
~ append the description of Shock to the Weapon
#appenddesc[ITEMS THING ID HERE,"{b}Addition from ???{/b}: Upon command, a shock weapon is sheathed in crackling electricity that deals an extra 1d6 points of electricity damage on a successful hit. The electricity does not harm the wielder. The effect remains until another command is given."]
~ add a note about the 1d6 damage to make it easier to remember
field[livename].text = field[thingname].text & " +1d6 electricity"
 
Back
Top