Custom Events

From SupremeWiki, a collaborative guide to games by BattleGoat Studios.

Event System

In the SCENARIO directory, look for any file "scenario_name.csv"

Look for the section like this example.

&&SEVENTS 324000, 43200, 17, 634, 2303, 2306, False, False, False, False, False, , , , , , , , ,

Columns are as follows...

Event ID Listing

ID Event Main Param Additional Params Notes
1 Send Email/News Email/News #
  • i0-i3,
  • f0-f3: Bodyfills sent to email msg
If no 'otherregion', or email createtype is not 2/AI, then sent from minister
2 Declare War Email/News # (optional) Minister will send War Declared on Us email automatically; mainparam is for optional additional email
3 Force Neutral Email/News # (optional) Cancel Alliance/transit/los or end War; To send a Peace offer use the 'Send Diplomatic Offer' instead
4 Force Alliance Email/News # (optional) Force Alliance/transit/los; To send a Alliance offer use the 'Send Diplomatic Offer' instead
5 Set or Reset Treaty Treaty Number
  • i0: 0=Reset, 1=Set;
  • i1: 0=No Effects, 1=Approval Effects,
  • i2: 0=Two Way Treaty, 1=One Way Only
Forces a treaty (one way or both ways)
6 Send Diplomatic Offer Treaty Number (or 0)

(-ve for 'Cancel')

  • i0: Tech Design # or 0
  • i1: Unit Design # or 0
  • i2: Product # offer 0-10 [1] (sub 1!)
  • i3: Num Daily Payments ($ and Prod)
  • f0: Offer Cash
  • f1: Ask Cash
  • f2: Offer Prod Quan
  • Treaties with this are both ways
  • Continuous payments not allowed
  • Asking for product not allowed
7 Send Diplomatic Treaty Offer Email/News # (optional)
  • i0: Treaty # to offer; -ve to Revoke
  • i1: Treaty # to request; -ve to Revoke
  • i2: Product # offer 0-10 [2] (sub 1!)
  • i3: Num Daily Payments ($ and Prod)
  • f0: Offer Cash
  • f1: Ask Cash
  • f2: Offer Prod Quan
  • Treaties with this can be one way
  • Supports asking for 'Cancel Treaty'
8 Surrender/Elimination Email/News # (optional)
  • i0: 1=Group/Unify
  • i1: 1=Loyalty Merge;
  • i2: 1=Research Merge
Other Region = Who to Surrender to, or 0 for 'Elimination'

If not 'Group/Unify', then standard Surrender will be used and Region Falls email will be generated

9 UN Diplomatic Offer Units Unit Design #
  • i0: Quantity
  • f0: Amount of cash to Request
Will be sent to bases/capital

This Event does not issue Newsitem 473 ('UN Supplied Units...' news)

10 Create Units Unit Design #
  • i0: Quantity
  • i1: 0=Reserve; 1=Deployd; 2=Dep/Supplied; 3=Dep/Strong
  • i2: Map x-location
  • i3: Map y-location
  • If no location is provided, will be sent to bases/capital
  • Default Deployed (1) units are without fuel or ammo
  • 'Deployed/Strong' (3) creates special High Efficiency/Experience units
11 Set a Victory Hex Email/News # (optional)
  • i0: Map x-location
  • i1: Map y-location
Replaces any prior victory hex
12 Set an AI-Hotspot Request Type [3]
  • i0: Importance 0-10000
  • i1: Number of Units Requested
  • i2: Map x-location
  • i3: Map y-location
13 Set Defcon Level New Defcon Level 0-4
  • Requires Defcon Reversed Number: 0=Peace, 4=War
  • Will prevent invalid defcons due to war/peace.
14 Change Relationships Email/News # (optional)
  • i0: 1=Set Diplo as ABSOLUTE value (otherwise just adjust +/-)
  • i1: 1=Set Civ as ABSOLUTE value (otherwise just adjust +/-)
  • i2: 1=Set Belli as ABSOLUTE value (otherwise just adjust +/-)
  • i3: 1=Apply to BOTH regions (otherwise just 1st)
  • f0: Diplo Relations Value
  • f1: Civilian Relations Value
  • f2: Belli Value
  • Diplo and Civ Relations are usually in -1.0 to +1.0 Range (though may be higher/lower)
  • Belli is usually in 0.0 to 1.0 Range (though may be higher)
15 Adjust Treasury
  • f0: Amount (+ve or -ve)
Gives or takes away money
16 Adjust Product Stock Which Prod# 0-10
  • f0: Amount (+ve or -ve)
Gives or takes away product stock
17 Set War Email/News # (optional) Sets a war without any other countries relationships changing - no approval effects, no forced emails, nothing.

Special Note regarding Email : Emails are either sent from an AI leader or from a Minister - this is set in the NEWSITEMS list (createdby of '2' for AI leader).

Retrieved from "http://www.supremewiki.com/index.php/Custom_Events"
Personal tools