• 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

Overriding the cost of an option

SomeAuthor

New member
Hello,

how can one override the cost of an option? The extover element (in extension files) seems to be made for entities only, not for options.

Thanks!
 
Which situation are you trying to implement:

1) An option that has one price for a given race or ruleset?
- Use overrides, remember they rely on global tags.

2) One model in the same list gets an option at one price and a second has a different price?
- Give it another cost when linking the option.

3) The cost of an option is different if the model also takes a second option?
- Have the second option "tag" the model and then use an eval script on the variable priced option.

Homer
 
The situation is that I have some files from someone else that I want to extend by only adding more files (i.e., I do not want to edit the original files). So far, this works splendidly with a DAT and an AUG file of my own.

The cost I want to override is from a simple <option>, which is the same for all races, nothing special about it. My extension is enabled with a ruleset (i.e., the extension is the same for all races).

1) An option that has one price for a given race or ruleset?
- Use overrides, remember they rely on global tags.

Can you elaborate? What do you mean? I read the documentation, but am unclear on how to proceed. If I read the documentation of <extover> correctly, then that is only applicable to entities, not options?
 
Last edited:
Try using an "extlink" within a .ext file, coupled with a new option in the .dat file. The new option can contain all the smarts for when to apply itself and what adjustments to apply. The new link should attach the new option to the existing option.

This way, whenever, the old option is added to a unit, it automatically chains the new option into place as well. The option will then make all the necessary behavior adjustments to the old option.
 
Back
Top