Pirates Outlaws

Pirates Outlaws

Not enough ratings
Modding: How to make events.
By Chesterxito
An unofficial modded events guide.
   
Award
Favorite
Favorited
Unfavorite
Introduction
Hello everyone! This is an unofficial event modding guide, given there aren’t any official sample event mod nor information in the official assets, I decided to make a guide to help anyone for the upcoming mod contest.
Getting the needed files
Events consist primarily on 2 files, EventConfig and EventOptionConfig. Where can I find those? subscribe to unofficial assets by FallingAutumn, there you’ll find text assets that can be read by the mod launcher. Copypaste the events and options linked to those events that you’ll use as templates into your own mod folder.
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3213129311&searchtext=
https://gtm.steamproxy.vip/ugc/40065918648846259/0CF5DD5F1E4195DD49DD02D50C4C8E0FB725F633/
Structure: EventConfig
https://gtm.steamproxy.vip/ugc/40065918648894150/BCC6B57AA6C11788DC614550ADDEFAA594E541D1/

Now comes the explanation of what each part of the files do.
  • ID: The ID of the event (duh). Use numbers that aren’t used for other events. Don’t write ModEvent() or any text. Just numbers.
  • CanUseVersion:The version of the game that the event was released. You shouldn’t change it
  • Platformlimit: No idea. Don’t change it.
  • DescribeReference: Description reference, won’t appear in game.
  • Describe: The actual description, text shown when you find that event. Linked to localization files.
  • EventIcon: Image shown above the event island, like PE portals or crown event.
  • BackgroundName: Image shown in the event, alongside the description.
  • EventStartActions: EventActions played when you enter that event, mostly used to disable events, set bossfights, or AdventureData.
  • RandomEventOptions: Options shown in the event, like pay, upgrade, leave and such. Events with more than 3 usually mean that the options have EnableDetermine (Require condition) to be shown. EventOptionsIDs used are from EventOptionConfig file.
  • Priority: Self explanatory. Higher priority (2) is used in conjunction with NotRandom keyword mostly for quests to make events guarantee to spawn.
  • Mode: If the event is for regular maps (1) or arena (2).
  • World: In wich worlds it can appear, including arena.
  • LevelRange: Range the event can appear, like in all phases, only phase 2, etc. Minimum is 1 and maximum is 39. Ranges between 1 to 13 seem to refer to phase 1. 14 to 26 to phase 2 and 27 to 39 phase 3.
  • Enable: Whether you can find it or not. 1 means you can, 0 you can’t. 0 Is used for chaining multiple events.
  • Determine: Conditions for that event to appear, like having a relic, AdventureData, etc.
  • Repeat: Amount of times you can find that event. 0 for 1 time, 1 for 2 times.
  • Keywords: Special tags for that event. NotRandom seems to almost guarantee appearing in the map (tho you’ll only see it if it has an icon) it can fail to spawn. If priority is 2 then it will guarantee spawn. Bounty is self explainatory. ForceEvent is used in arena for events to appear in an specific level. NotShowView seems to be used to just play EventActions or play options automatically? No idea. Battle is self explanatory. Both of the last seem to be used for bounty events mostly.
Structure: EventOptionConfig
https://gtm.steamproxy.vip/ugc/40065918648922778/B3E4A10BBB8B159D5155DB56BB7B949B7A7C06EC/
  • ID: The ID of the option (duh). Use numbers that aren’t used for other options. Don’t write text on it. Just numbers.
  • CanUseVersion: The version of the game that the event was released. You shouldn’t change it.
  • ImageName: Image that it uses. Card proportions.
  • Describereference and PayDescribereference: References for translation.
  • Describe: Text inside the card option like pay, leave, fight, etc.
  • PayDescribe: Text below the card like -50 hp, remove 1 card, etc. Both are linked to localization files.
  • EventActionTrees: Plays EventActions, like giving a relic, starting a fight, or playing another event.
  • EnableState: If will be enabled or not (Always 1 basically lol).
  • Determine: Conditional for you to be able to pick that option. If condition isn’t fulfilled, will appear as a locked option.
  • EnableDetermine: Conditional for that option be shown. If condition isn't fulfilled, the option won't appear for it to be selected.
  • AudioClipName: SFX played.
  • DetailDes: Long description, mostly used for arena 50 rewards. Linked to localization files.
Conclusion
Now with all the basics you can start messing around with events and do shenanigans like bootleg quests if you want. If you wish you can use my kraken mod event as template. I hope you find this useful for the upcoming mod contest.
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3219599012