Minions Help?
Hi all.
After a time away from HL and related coding I'm diving back into it. The dataset I'm attempting involves Vehicles as Minions (seems to be the default for the Sample Dataset) I have the following: components Code:
<!-- Vehicle component Code:
<!-- Vehicle --> Code:
<thing id="vehM1114HMMWV" name="M1114 HMMWV" compset="Vehicle" stacking="never"> |
As expected, when I add the vehicle from the Gear tab for the hero, a secondary minion character is created.
When the minion is selected, I am trying to do is to display the appropriate fields on a new tab - VehicleBasics tab: Code:
<template Quote:
|
Templates displayed directly on a layout need to reference which pick they're displaying the information from:
<templateref template="vbaDetails" thing="some id" ispick="yes"/> In the template, it says the compset is Personal: <template id="vbaDetails" name="Personal" compset="Personal"> And then later you're displaying a portal that is field-based: <portal id="VehReli" style="lblLeft"> <label field="vebReliability"> </label> </portal> But according to your first post, the vehReliability field is in the VehicleBase component, which is in the Vehicle compset - you don't show the Personal compset, so unless that compset also has VehicleBase as one of its components, then the template's compset doesn't match the field used in it. |
Thank you Mathias!
That's what I get for cutting and pasting..... :( Ok, I changed it to compset="Vehicle" and am getting this: Quote:
Quote:
Quote:
|
Oh, OK, the picks with the "Vehicle" compset are effectively the race. That means you can't use a template that requires a specific pick. You have to have this template be within a table that displays picks from the Vehicle compset, or you need to redesign your template if you want it to be based on a more generic piece of the hero, like "personal". In that case, you need to use labeltext to reference the values, like this:
<label> <labeltext><![CDATA[ perform hero.findchild[Vehicle].setfocus doneif (state.isfocus = 0) @text = focus.field[vebReliability].text ]]></labeltext> </label> Based on the information it looks like you're trying to display, I'd just make the table where the user chooses a vehicle type be a tall table, so that you've got room to display lots of info about the vehicle race that was added. |
1 Attachment(s)
Ah. Ok, I see why in SR5 the Vehicle details are part of the RaceVeh component. If I understand correctly:
1) There are (at least) two sets of attributes in SR5, Character (Body, etc) and "Vehicle" (Handling, Speed, etc.). 2) Where normal attributes are bootstrapped to Character heros, the Vehicle ones are bootstrapped to the RaceVeh (VehicleBase in my case). 3) The display of the Basics tab in SR5 changes depending on which set of attributes is being used. Everything else is functioning like a normal hero, where weapons, etc are picks on the Vehicle race, correct? |
Quote:
1) There's some overlap on the attributes - Body, for example, appears in both, but Charisma is only used for characters, and Handling is only used for vehicles. But they're all in the attribute compset, and where they're used is just a matter of tags. 2) yes 3) it's based on a tag on the hero that tells me the character type Yeah, vehicles are just another character type in SR5. |
1 Attachment(s)
Quote:
Another thing I notice though, is that no field other than a simple label with text is showing (per attached screenshot). Am I missing something? Code:
<position><![CDATA[ |
Two portals are placed at the same vertical position, so the second one is hiding the first
portal[lblVehCat].top = portal[title].bottom + 5 portal[lblVehRel].top = portal[title].bottom + 5 There's not enough info for me to diagnose why VehReli isn't showing - or at least I don't see the problem in just the position code. |
Ok, things seem to be working fine as long as there is only one Minion/Vehicle.
If the main hero purchases a second vehicle, then tries to shift to it the Minion doesn't seem to get the correct Type, or display the correct tabs. Is there a secret to having multiple Minions on a character? |
All times are GMT -8. The time now is 05:59 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.