dcx:event_library
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dcx:event_library [2016/01/25 12:39] – vic | dcx:event_library [2026/06/22 12:21] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 53: | Line 53: | ||
| Make sure you have the advanced editor enabled. In the main menu click on the ' | Make sure you have the advanced editor enabled. In the main menu click on the ' | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Then once in the advanced editor go to the settings tab and then to the ' | ||
| + | |||
| + | This is important as it tells the Simple editor that your event library is compatible with the default VR ruleset. | ||
| {{: | {{: | ||
| - | Then once in the advanced editor | + | Then go to the lib tabsheet. |
| {{: | {{: | ||
| Line 80: | Line 86: | ||
| In the event editor you do the following. | In the event editor you do the following. | ||
| - | 1. Add a new event | + | 1. Add a new event. |
| 2. Assign the event to your " | 2. Assign the event to your " | ||
| Line 91: | Line 97: | ||
| Then I script the following code: | Then I script the following code: | ||
| + | < | ||
| + | 0) ' event code is going to come here | ||
| + | 1) SETVAR: TempVar1 = CheckTurn | ||
| + | 2) ' | ||
| + | 3) SETVAR: TempVar2 = CheckLibVarRegime(TempVar1, | ||
| + | 4) SETVAR: TempVar3 = CheckLibVarRegime(TempVar1, | ||
| + | 5) SETVAR: TempVar4 = CheckLibVarRegime(TempVar1, | ||
| + | 6) SETVAR: TempVar5 = CheckLibVarRegime(TempVar1, | ||
| + | 7) ' | ||
| + | 8) SETVAR: TempString1 = '' | ||
| + | 9) ' | ||
| + | 10) | ||
| + | 11) ' | ||
| + | 12) | ||
| + | 13) ' | ||
| + | 14) | ||
| + | 15) | ||
| + | 16) | ||
| + | 17) ' | ||
| + | 18) | ||
| + | 19) | ||
| + | 20) ' | ||
| + | 21) ' | ||
| + | 22) | ||
| + | 23) | ||
| + | 24) | ||
| + | 25) | ||
| + | 26) | ||
| + | 27) | ||
| + | 28) ' | ||
| + | 29) | ||
| + | 30) | ||
| + | 31) | ||
| + | 32) | ||
| + | 33) | ||
| + | 34) ' | ||
| + | 35) | ||
| + | 36) ' | ||
| + | 37) | ||
| + | 38) | ||
| + | 39) | ||
| + | 40) END CHECK | ||
| + | 41) | ||
| + | 42) | ||
| + | 43) END CHECK | ||
| + | 44) | ||
| + | 45) | ||
| + | 46) END CHECK | ||
| + | 47) ' | ||
| + | 48) | ||
| + | 49) ' | ||
| + | 50) | ||
| + | 51) END CHECK | ||
| + | 52) ' | ||
| + | 53) END LOOPER | ||
| + | 54) ' | ||
| + | 55) END CHECK | ||
| + | 56) ' | ||
| + | 57) END CHECK | ||
| + | 58) END CHECK | ||
| + | 59) END CHECK | ||
| + | 60) ' | ||
| + | 61) END LOOPER | ||
| + | 62) ' | ||
| + | 63) | ||
| + | 64) | ||
| + | 65) END CHECK | ||
| + | 66) ' | ||
| + | 67) END CHECK | ||
| + | </ | ||
| + | |||
| + | ===Step D: Save the event library=== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Save your work with the .dcxevlib extension. | ||
| + | |||
| + | And thats it. | ||
| + | |||
| + | In the final Step E i am just going to show how it looks like to the end-user when he loads your event library. | ||
| + | |||
| + | ===Step E: In the Simple Editor & In-Game=== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | In the Simple Editor you or an end-user can load your event library and configure it (as shown in the example above) for one or more regimes. | ||
| + | |||
| + | Also note that the contents of the library are correctly listed as 4 libvars and 1 event. | ||
| + | |||
| + | Then finally when in-game when in-game the player will get reports like this one: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | It is important to check if your event libraries work properly before distributing them. | ||
| + | |||
| + | Don't forget to use the description fields for the library itself and its libvars and/or stringlists (tables for end-user). | ||
| + | Thats it! A working and tested library ready for use or sharing with other designers. | ||
| + | ===Tutorial library=== | ||
| + | Here you can download the library created in the tutorial above: | ||
| + | [[http:// | ||
dcx/event_library.1453725558.txt.gz · Last modified: 2026/06/22 12:14 (external edit)
