Thanks Berserker, writing SN:W vars at OnTransferHero seems to be valid.
________
I want to share a finding about w51 - w100.
Accoridng to ERM help, values of w51 - w100 are stored for all the time until ERA is closed. However, this is proved to be wrong according to my tests. Some of these w-vars got changed unexpectedly.
Code for testing: - ZVSE2
- !?FU(OnEveryDay)&i^timerDay^>1/i^timerOnce^=(TRUE);
- !!IF:W(HERO_CHRISTIAN);
- !!re i/51/100;
- !!VRwi:Si;
- !!en;
- !!IF:M^%w51, %w52, %w53, %w54, %w55, %w56, %w57, %w58, %w59, %w60^;
- !!IF:M^%w61, %w62, %w63, %w64, %w65, %w66, %w67, %w68, %w69, %w70^;
- !!IF:M^%w71, %w72, %w73, %w74, %w75, %w76, %w77, %w78, %w79, %w80^;
- !!IF:M^%w81, %w82, %w83, %w84, %w85, %w86, %w87, %w88, %w89, %w90^;
- !!IF:M^%w91, %w92, %w93, %w94, %w95, %w96, %w97, %w98, %w99, %w100^;
- !?FU(OnAfterErmInstructions);
- !!IF:W(HERO_CHRISTIAN);
- !!IF:M^%w51, %w52, %w53, %w54, %w55, %w56, %w57, %w58, %w59, %w60^;
- !!IF:M^%w61, %w62, %w63, %w64, %w65, %w66, %w67, %w68, %w69, %w70^;
- !!IF:M^%w71, %w72, %w73, %w74, %w75, %w76, %w77, %w78, %w79, %w80^;
- !!IF:M^%w81, %w82, %w83, %w84, %w85, %w86, %w87, %w88, %w89, %w90^;
- !!IF:M^%w91, %w92, %w93, %w94, %w95, %w96, %w97, %w98, %w99, %w100^;
You would like to:
1. End turn to write the w vars for Christian, start a new scenario and see if you got the same results.
2. Restart the scenario after ending turn, check the reuslts.
Conclusion (more tests required):
w51, w54 - w60, w79, w81 - w100 seem to good. They are the only variables that don't get reset until ERA is closed.
Other w vars should be avoided if you are in need of the w-var carryover feature.
Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 07.04.2021 20:45 by Archer30.)
|