• 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

A list option modified starting cash

Gumbytie

Well-known member
So I have the Edge - Fallen Noble. It has 3 options. One of the options modifies starting wealth.

Parts of the Edge are:
Code:
<fieldval field="usrCandid1" value="component.Simple & User.Advant"/>
<tag group="ChooseSrc1" tag="Thing"/>
<eval index="2" phase="PreTraits" priority="5500"><![CDATA[
if (field[usrChosen1].ischosen >= 1) then
herofield[acCashMult].value += 2
endif]]>
<before name="Calc trtFinal"/>
</eval>

Works perfectly find from the following 3 choices:
Code:
  <thing id="siBBBagGo" name="Bag of Gold" compset="Simple">
    <usesource source="Beasts"/>
    <tag group="User" tag="Advant"/>
    </thing>
  <thing id="siBBFollo" name="Follower" compset="Simple">
    <usesource source="Beasts"/>
    <tag group="User" tag="Advant"/>
    </thing>
  <thing id="siBBHeirl" name="Heirloom" compset="Simple">
    <usesource source="Beasts"/>
    <tag group="User" tag="Advant"/>
    </thing>

What it does NOT do is actually change the starting cash. I don't get erros, just no modification. So, is this actually possible and I just need to adjust timing or some code?

Or is this the infamous...make 3 different Edges, sigh.

Cheers,
Gumbytie
 
My first thought would be timing. How does PreTraits 5500 compare to what something like a Rich Edge uses? I don't have HL handy to check.
 
I'd bet that's the problem. Pre-Traits is probably going to be way too late for apply a multiplier to starting cash, but it might also be way too early to apply the other option depending on what those do. That may take some playing around to see if you can get away with one Edge to do it instead of having to break it into 3.
 
Getting closer, timing was the problem for one portion:

Code:
    <eval index="2" phase="Setup" priority="5000"><![CDATA[
	if (field[usrChosen1].ischosen = 1) then
      herofield[acCashMult].value += 2
	  endif
	  ]]>
      <before name="Calc trtFinal"/>
      </eval>

So now the trick, if possible, I want that to occur only when they select the option:

Code:
  <thing id="siBBBagGo" name="Bag of Gold" compset="Simple">
    <usesource source="Beasts"/>
    <tag group="User" tag="Advant"/>
    </thing>

That is the first choice in the selection. Right now, just selecting the Edge now gives the Cash multiplier bonus.
 
Back
Top