Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Savage Worlds
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Paragon
Senior Member
 
Join Date: Feb 2010
Posts: 874

Old November 15th, 2014, 08:31 AM
One of the items in my XCOM campaign is the Nano-Fiber Vest. Unlike the normal situation in SW, this is supposed to stack with other armor (its the whole point in the item, after all). Since armor doesn't normally stack in SW I couldn't do it as normal armor. Currently I have it adjust the user's Toughness, but that doesn't work quite right (it doesn't show in the armor value, but the base toughness so it wouldn't be obvious at a glance that its armor). But since there's a temporary adjustment for armor value in the program, it seems like there should be a way to just tell the program when this item is present to do that.

Anyone have any idea how?
Paragon is offline   #1 Reply With Quote
jbearwillis
Senior Member
 
Join Date: Dec 2009
Location: Independence, Mo
Posts: 797

Old November 15th, 2014, 11:39 AM
Look at my High space data file - I had some armor that adds to other armor if armor is worn over it. I believe it was the stealth suit - Check it out. If it works alone it give a bonus to the stealth skill and it own armor, but if you ware armor over it then it adds it armor to the other suit of armor and the skill bonus isn't given.
jbearwillis is offline   #2 Reply With Quote
Paragon
Senior Member
 
Join Date: Feb 2010
Posts: 874

Old November 16th, 2014, 08:23 AM
I'm guessing that's the Ghost Suit, looking at it, but can you direct me at what part of the coding overrides the armor rule? The ones in the EvalScripts all seem to have to do with the Stealth effect. The "defDefense" in the field entry, maybe?
Paragon is offline   #3 Reply With Quote
jbearwillis
Senior Member
 
Join Date: Dec 2009
Location: Independence, Mo
Posts: 797

Old November 16th, 2014, 12:28 PM
Yes that's the suit - It has been so long since I did that but here is what I did:
This is the code I used on all of the different armors - In each one except the ghost suit.

Pre-Traits 5000

if (hero.tagis[Armor.armHSOniM1] + hero.tagis[Armor.armHSGhost] >= 2) then
perform hero.child[armHSOniM1].setfocus
focus.field[defDefense].value += 2 (You change this number to what every bonus you want - Delete this colored line from code)
endif

You need to add this to every armor you have. The Unique ID in red is the armor that you put this in (this one needs to be changed to the Unique ID of that armor), The one in blue is the Unique ID of the item that will give the bonus. After you do this for every armor, when you check both the armor your wearing and the item that gives the armor bonus it will add that bonus to the armor.
I sure there might be an easier way of doing it, but at the time I couldn't find one.

Hope this helps you out - If you look at each of my armors that I made - you will see the above code and look how it's changed for each one.
PS: you really don't even have to give anything to the item that gives the bonus, not unless it can be worn by it self and gives that bonus separately, then give it a bonus. If not just make it in the armor section and give it a description and the Unique ID.

Last edited by jbearwillis; November 16th, 2014 at 12:41 PM.
jbearwillis is offline   #4 Reply With Quote
Paragon
Senior Member
 
Join Date: Feb 2010
Posts: 874

Old November 16th, 2014, 06:07 PM
Ah, its like the Knack I did, which the armors look for. Okay. Normally that'd be a bit of a nuisance, but since they'll all have to have that piece of code on them anyway, I can just do this too.
Paragon is offline   #5 Reply With Quote
jbearwillis
Senior Member
 
Join Date: Dec 2009
Location: Independence, Mo
Posts: 797

Old November 16th, 2014, 07:26 PM
Glad I could help.
jbearwillis is offline   #6 Reply With Quote
Jazzhands Roll
Junior Member
 
Join Date: Apr 2015
Posts: 1

Old April 23rd, 2015, 06:37 PM
Hello, and sorry for tapping into an older post.

I'm trying to do the same thing for a Last Parsec campaign (I'm adding some Interface Zero items, such as "ED Underarmour", which is worn under clothes and stacks with other armour).

jbearwillis, I'm sorry if it should be obvious but could you tell me how to find your "High space data file"?

Thank you.
Jazzhands Roll is offline   #7 Reply With Quote
Paragon
Senior Member
 
Join Date: Feb 2010
Posts: 874

Old April 27th, 2015, 07:53 AM
For what its worth, this is how I ported it over to the XCOM version:

Code:
if (hero.tagis[Armor.armXCBA] + hero.tagis[Armor.armNanFiVe] >= 2) then
perform hero.child[armXCBA].setfocus
focus.field[defDefense].value += 2 
endif
This is on a piece of armor called the XCOM Body Armor that has the id "armXCBA"; the nano-fiber vest with the id "armNanFiVe" is what it looks for, and if that's also on the character it adds +2 to the value of the XCOM Body Armor. You set up the normal armor (what its worth by itself) on the stackable armor as normal. As noted, unfortunately you have to do a version of this code on each piece of armor usable in the campaign that can stack with the underarmor; there's no help for that as far as I can tell.
Paragon is offline   #8 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:35 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.