Junior Member
Join Date: Sep 2010
Location: Cardiff, UK
Posts: 10
|
I'm trying to create a class abilty similar to armour training, but adding AC to the armour and not giving the ability to move at normal speed.
Obviously I started with copying Armour training and modified from there. I removed the speed adjustment portion and looking at the relevant area of scripting for armour check and max dex, I tried a simple approach first, adding the lines in red below. Quote:
[tACArmor] with [arBonus] it did work, but not quite how I wanted it. This increased the armour value of any armour by 1 but also increased the hero's natural armour bonus by 1 (per training level). This seems to be getting somewhere, making me think I'm close to the answer, but I'm not sure how to fix it so the armour AC increases but not natural armour. |
|
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Try adding a debug within your foreach, to make it clear all the items which are being iterated through.
Code:
foreach dadadadadaWHATEVER debug "The currently iterated pick is " & eachpick.idstring nexteach I think you'll find one of the picks your foreach is finding is incorrect. Once you have found that pick's unique ID, you can go to "Develop -> Floating Info Windows -> Show Pick Tags" and select the errant pick in the window that shows up. What tags are on that pick but not the armors you should be foreaching through? Once you know the tags unique to the wrong thing, you can modify your foreach to exclude that wrong thing. Hope that helps! |
#2 |
Thread Tools | |
Display Modes | |
|
|