Forum:Variable Action Costs

From Fallen London Wiki
Forums: Index > Archived topics > Variable Action Costs


New from betterblog:

We're adding variable action costs. We're tweaking carefully, but it means that some choices will have bigger rewards and bigger costs, so you just need to click the button once. You'll also notice that a few actions, like drinking Darkdrop Coffee, are now free.

Alas! Our current Action template does not support this feature. We want your ideas - what is the best way to handle this change?

Neonix (talk) 05:01, January 28, 2012 (UTC)

It's not entirely clear what they mean - some options may cost more or less than 1 action? (Renaming your pet has been added as a zero-cost action). The same options may, at different times, have different costs/rewards? Lacking other examples, I guess we'll wait and see... Jemann 05:14, January 28, 2012 (UTC)
Inevitably, I just found some examples :)
See Unfinished Business in Ladybones Road - one option takes 2 actions, another takes 5.
Is there some way to include an 'Action Cost' in the template, that will only display if the user enters a value (presumably something other than 1)? Jemann 05:47, January 28, 2012 (UTC)
e.g. Would the line
{{#if: {{{Action cost|}}} | '''Action Cost: {{{Action cost}}}''' | }}
work in the Action template? Jemann 10:11, January 28, 2012 (UTC)
Apologies for the late reply, my notification for this forum post got lost in the chaos of my inbox -_-
An if statement - I didn't know that was possible! O_O I'd like to know where you got the documentation for that please, it might come in handy in simplifying other templates! :D
Neonix (talk) 08:03, January 31, 2012 (UTC)
PS. I added it to the template. Please try and see if it works!
I went googling and found documentation at
http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions
and a specific #if example at
http://www.mediawiki.org/wiki/Help:Parser_functions_in_templates
It seems to be doing some odd things with that <noinclude> there - the Template Documentation is appearing on pages using the template. But the Action Cost is hidden or visible correctly, at any rate :) Jemann 08:24, January 31, 2012 (UTC)
Wow thanks. Oddly enough the page looks familiar to me. I can only guess that "TL;DR" came to my mind when I created this wiki a year or so ago.
Neonix (talk) 08:27, January 31, 2012 (UTC)