Jabberwock wrote:Its pretty complex.
1. Log in.
2. Go to the modding section.
3. Click on a sub-section.
4. Click on one of the links in yellow (not the edit links - one of the titles)
5. Scroll down, you should see a template.
6. Copy it to the clipboard.
7. Hit the back button to get back to the sub-section you want.
8. Now hit the edit link for the sub-section.
9. Paste the template in the appropriate place, and use it as a guide to create the new entry.
10. Check your work. You will probably have made a mess by this point.
11. Get ahold of Rafiki.
That's what I did.
Rafiki wrote:As far as I can see, you haven't saved anything? What went wrong?
Jabberwock's guide is goodOne further tip I'd give is that if you come over something that you want to copy/emulate in an edit you want to do, simply click "edit" on the thing you want to copy/emulate, which will show you the syntax behind it all, that you can copy/paste/modify as much as you like. (I have no idea how many edits I have made on various wikis based on syntax I've found & copied from elsewhere)
Rafiki wrote:No worries. It was easily reversed
Keep trying; there is now way you can do permanent harm, and you'll get the hang of things in short time![]()
Rafiki wrote:You've named the article "SelectSubUnits", while you from "Modding Events" are trying to include an article called "SelSubUnit"
Depending on what is correct, you either need to update "Modding Events" or move the article you have created to "SelSubUnit"![]()
Rafiki wrote:Yup, it's the "syntax"-parameter that is wide, since it is rendered as "verbatim". I'll look at it tomorrow, if you don't beat me too it![]()
Rafiki wrote:OK, I did some reformatting and added some more text: http://www.ageod.net/aacwwiki/index.php?title=SelectSubUnits&diff=791&oldid=787![]()
Rafiki wrote:Indeed
Lines that start with a space get formatted verbatim, with consecutive lines starting with space being grouped in the same box. The template definition starts of "syntax" with a space.
lodilefty wrote:Now that I'm past the wiki:
It appears that the combination:
SelectSubUnits = Area $OMB_WestIndies;Models $mdl_CSA_Mer
EvalSubUnitSel = NULL
is returning "true, do actions", if either of the conditions in SelectSubUnits is true. [see script report in post #5 of this thread]
That's not what I want!
Is this WAD?
Pocus wrote:there is only one condition evaluated in the event, which is "does at least one SU has been added in the selection list".
Your event will trigger (and then kill) if 1+ cotton is in the box, whatever the number. I believe you should remove only 1 cotton thus, not all, so you would use RemoveCuSubUnit, and then check a turn later if you can again trigger the event ...
Line 20565: SelectFactions, 1 Faction selected: Confederate States of America
Line 20566: Started processing event: cotton_event2
Line 20566: Event already referenced, current occurences 0 Max allowed: 999 <<Active>>
Line 20569: Min date evaluated: 1861/04/01 converted to turn 2671 current turn 2675 True
Line 20570: Max date evaluated: 1866/12/31 converted to turn 2809 current turn 2675 True
Line 20571: SelectSubUnits finished Regions Selected: 1 [color="Red"]SubUnits Selected: 0[/color]
Line 20572: [color="red"]Evaluate Sub Unit Selected : True[/color]
Line 20574: Entering triggered actions for event cotton_event2
Line 20575: ChangeMoneyPool Confederate States of America New money reserve is 14
Line 20576: ChangeWSUPool Confederate States of America New WSU pool is 38
Line 20577: SelectSubUnits finished Regions Selected: 1 SubUnits Selected: 0
Line 20578: [WARNING] AlterCuSubUnit: Selection is empty (Apply To List)
Line 20580: Finished processing event: cotton_event2
Return to “Modding AGE engine games”
Users browsing this forum: No registered users and 5 guests