Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: MarketCondition $marketFaction Desc Token Doesn't Work  (Read 336 times)

SafariJohn

  • Admiral
  • *****
  • Posts: 3021
    • View Profile
MarketCondition $marketFaction Desc Token Doesn't Work
« on: December 05, 2021, 03:35:06 PM »

If you try to use the $marketFaction token in a market condition's description, the "$market" part gets replaced by the market's name.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24111
    • View Profile
Re: MarketCondition $marketFaction Desc Token Doesn't Work
« Reply #1 on: December 05, 2021, 03:41:53 PM »

Ah - looks like this this only has access to tokens from CoreRuleTokenReplacementGeneratorImpl, and not any of the "memory" objects - $global, $marketFaction, or otherwise.
Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 3021
    • View Profile
Re: MarketCondition $marketFaction Desc Token Doesn't Work
« Reply #2 on: December 05, 2021, 04:45:46 PM »

BaseMarketConditionPlugin does specify $marketFaction in its token replacements, but it doesn't work.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24111
    • View Profile
Re: MarketCondition $marketFaction Desc Token Doesn't Work
« Reply #3 on: December 05, 2021, 05:25:25 PM »

... ah! I think I was looking at the wrong thing. Fixed this up (in the quickest and dirtiest way possible - by putting $marketFaction ahead of $market in the token replacements map.)
Logged