Now I want to dynamically modify the production value for a cargo depending on other criteria.
Code: Select all
//pseudo
varaction 2 to check callbacks
if callback ID is 00 (think 00 is the production callback ID??)
varaction 2 to store value(s) in registers according to my criteria xyz
action 2 that is production callback (also terminates action 2 chain)
In this case, the criteria will be proximity to another industry. Following much help earlier, I can now check that just fine.
1. Is my pseudo code approach above sensible / efficient?
2. On my reading the wiki page, production callback ID is 00. Is that right?
3. I believe I'll be able to work out how to push the values onto registers, but I am unsure of how to structure doing so. Presumably I'll need more varaction 2s to set the register values (i.e. I can't check ranges, set registers appropriately, and return all in one varaction 2)?
cheers,
Andy