Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Savage Worlds (http://forums.wolflair.com/forumdisplay.php?f=59)
-   -   A list option modified starting cash (http://forums.wolflair.com/showthread.php?t=58284)

Gumbytie April 29th, 2017 07:29 AM

A list option modified starting cash
 
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 &amp; 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

zarlor April 29th, 2017 04:12 PM

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.

Paragon April 29th, 2017 08:39 PM

Rich is Setup 5000.

zarlor April 30th, 2017 03:28 AM

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.

Gumbytie May 2nd, 2017 01:15 PM

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.


All times are GMT -8. The time now is 07:06 PM.

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