• 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

Feat Help - Vehicle Specialization

Frodie

Well-known member
Sorry for the question.

But I want to add a tracker modifier if a gear is equipped. Maybe it's my timing, but the script seems fine. IDK, anyways here is the script for the feat

Final 10000


if (field[usrChosen1].ischosen + field[gIsEquip].value <> 0) then
hero.childfound[trMPSGGVCB].field[trkMax].value += 3
hero.childfound[trMPSGGVCD].field[trkMax].value += 3
endif

and I have the thingid. all good and working and the vehicals can be equipped.

This is the feat.

Vehicle Specialization

+3 bonus on Profession (driver, pilot, or sailor) when operating the vehicle

{b}Benefit{/b}: You gain a +3 bonus to a Profession (driver, pilot, or sailor) in one make/model of vehicle, when operating that vehicle.

This feat can be taken again and stacked.
 
Oh I forgot, this is the error

Attempt to access field 'gIsEquip' that does not exist for thing 'fMHVehSpec'
 
Can you find where gIsEquip is referenced in your script, and change or delete it? Can you guess what the gIsEquip field is for, and why a feat would not have it?
 
I did add the gIsEquip to only activate when the gear is equipped. But I guess that might only work for gear, because the feat can't be equipped.
 
I think it has something to do with a container.


if (field[usrChosen1].ischosen + container.tagis[Helper.EquipMag].value <> 0) then
hero.childfound[trMPSGGVCB].field[trkMax].value += 3
hero.childfound[trMPSGGVCD].field[trkMax].value += 3
endif

Script didn't work, but I think I am close
 
This is a feat, so the container is the hero.

If you want a tracker to only be shown when you have the feat, bootstrap that tracker to a Mechanics or the piece of gear, and give it a bootstrap condition looking for some Custom tag on the hero.

On the feat, have it apply the Custom tag before the bootstrap condition checks.

But I have to ask, why a tracker for this? Nothing in the text I see suggests that this feat has charges. Couldn't you just have the feat bootstrap a helper ability, add to the value of that, and then have the helper ability apply whatever value as a #situational on the target skill?
 
Well it's for the SGG Tough, vehicle combat maneuvers, (VCB and VCD). I got all that material working.

Basically I made a trait for both VCB and VCD with a tracker, (so the value could be adjusted). Then bootstrapped them to a mechanic so everyone gets these two traits free. All working good. Started testing the various mod adj to VCB and VCD to the vehicles in gear, the one I tried, (gMHAudiR8), worked grate. So NP there, only had a few feats that would adjust the VCB and VCD tracker and I got stuck on this one.

If you want to look at the files, I have attached them, but I think I have it all correct except for this feat. If I can't get it to work, no big deal, the user can just add the modifier in.

BTW - Thank you for your time and help.
 

Attachments

Got this to work, but I get this error: Attempt to access non-existent parent pick for a top-level container from script

if (field[usrChosen1].ischosen <> 0) then
if (container.ishero = 1) then
if (container.parent.field[gIsEquip].value <> 1) then
hero.childfound[trMPSGGVCB].field[trkMax].value += 3
hero.childfound[trMPSGGVCD].field[trkMax].value += 3
endif
endif
endif
 
Last edited:
Is this feat supposed to be added inside a gizmo or something similar (gizmos are things like custom magic weapons, they are containers).

Your code says
If we've chosen something, proceed.
If our container is the hero, proceed.
If the hero's parent has a field gIsEquip that is not 1 proceed. (This generates the error, since the hero has no parent (and thus no gIsEquip), but it nonetheless evaluates to 0, which means it is not 1, and proceeds).

What are you trying to check if it is equipped or not equipped? Is it a specific thing, or any one of a group of similar things?
 
Check to see if it's equipped. If it is equipped then the tracker would gain the bonuses.

But, IDK if it will work right anyways. I was looking at the other vehicles and they can't be equipped. So looks like it will not work for a specific vehicle.

But on a side note, I got the drop box to list all the vehicles with this:

component.OnlyGear & gType.LandTrans|gType.AirTrans|gType.Transport
 
Check to see if a vehicle's equipped? Any vehicle? Any land/water/air vehicle? Or any specific vehicle (So taking it for cart would not give you bonuses with a carriage)?
 
A specific vehicle, but a cart and the core vehicles are not "equitable". I don't see anyway to only apply the bonus if you are using that vehicle. I made the modern vehicles able to equip, to show it's being used. But it looks easier to just to let the user adjust it for this one feat.

Thank you anyways.
 
Back
Top