Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
I am having an issue with a user field not changing bound minimum/maximum. I have:
Quote:
Am I missing a timing or trick to have the abiUser recalculate when CharType tag changes? (a change script on the menu_thing component?) Is there a way to treat a change in this tag as a new portfolio with the initial CharType.typShip tag? Some other possibility? Thanks! TC |
|
#1 |
Senior Member
Join Date: May 2013
Posts: 1,458
|
I was just having a similar issue with Chill. I played around with the timing. Ultimately, I set the bound and eval priorities to the same value. In your case, try setting them both to 5000.
That's what did it for me, anyway. I'm still learning, though. I'm not an expert. I can't guarantee that I did it right. I can only offer that it works as intended. |
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
If the minimum for a normal character is 2, then as soon as you create a new character, the value of this field, which has a default of 0 will be set to the minimum of 2. Then, HL notices the change in character type, which triggers a recalculation of the minimum, but there's no need to change the value - the current value of 2 is in-between the minimum of 1 and the maximum of 5.
Check the incrementer on abiUser - does it now let you decrease the value? |
#3 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
It does, but I was trying to find a way to reset it to the minimum without user having to do that.
i guess the simplest way is going to be to set all to minimum of 0, and if it's not typShip add 1 to the abiBonus... |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Is the CharType a pick that's selected in a table, or just a drop-down?
If it's a pick, you can add a creation script to its component that resets that field when a new one (namely the ship type) is selected: Code:
<creation><![CDATA[ perform hero.child[whatever].field[abiUser].reset ]]></creation> |
#5 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
Thanks Mathias!
I will give that a try when I get home. I didn't know there was such an option. |
#6 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
for some reason, this isn't working.
Quote:
|
|
#7 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
You're using a chooser portal to select the CharType picks?
|
#8 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
Sorry for taking so long, but I thought I had this figured out. Apparently not.
The CharType pick is being selected through a menu: Quote:
Quote:
Last edited by TCArknight; October 11th, 2017 at 02:12 PM. |
||
#9 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
Anyone? Any thoughts on this?
It seems like if the pick is added through a menu, it doesn’t trigger a creation script. |
#10 |
|
|