addZone incAchievement barter resetGlobalInv loot startSprawl revealTiles revealBiome reqCanStartSprawl replaceLocations replaceTiles deactivateZones posTile setLocationParticle resetLocationAge reqLocation reqZone addLocation camShake dropItems endWorld addButterfly regenBiome rest reqStatusDayAge removeStatusWithFlags reqMaxPerWorld reqWorld posPunch blockRivals resetStatusAge removeItem removeZone removeZones reqWaiting storeCharacter unstoreCharacter loyalty cloneCharacter reqExplorer reqTutorial reqFame reqFunds reqWarpWorld showPartyCount removeCharacter turns sanity teleport reqKarma compassScore health forceTravel npc setCharFlags setLocationFlags playSound setBiomeFlags combat reqItemFlags chat items setPartyFlags playMusic setStatus reqStatus reqCharFlags reqLocationFlags addNPC clearPushedEvents removeStatus particle showImage reqPartyFlags addCharacter reqBiomeFlags reqDifficulty pushEvent reqTileFlags unlockCharacter warpWorld reqItemsValue reqLoyalty reqLevel unlockPocket reqRanking reqStanding setPartyStatus setTempFlags reqTempFlags reqWorldFlags reqPartyStatus setTileFlags reqGender ref extends reqSanity reqFlags reqStatusFlags reqPartyCount reqHealth reqTiles reqTurns reqCharacter setWorldFlags reqDifficulty reqWorld standing popEvent reqItems escape resetPartyStatus superMove mapScore
Adds a new zone to the world
ref
id of zonerange
(optional) max range of where zones is possibly spawnedseeking
(optional) true if zone should already be aggroedreachable
(optional) true if must be reachable (default:false)
Not usable for modders Increments achievement counter
Starts a trading screen
items
(optional) items to be offered (in addition to the general location inventory)closeEvents
event that happens on successful dealcancelEvents
(optional) event that happens when barter is cancelledbaseValue
(optional) value that is added to deal overall or 'funds' (default: 0)hidePartyOffer
(optional) hides player inventoryhideNPCInv
(optional) hides npc/location inventorytitle
(optional) title shown instead of 'their inventory'priceTable
(optional) pricetable to be usedglobalInv
(optional) all barter that share the same globalInv ID will share the same inventoryitemEvents
(optional) events tied to specific items
Resets a global inventory
Shows a menu for looting
items
item list to lootcloseEvents
ID of close event (or {} if no follow-up event)cancelEvents
(optional) ID of cancel event or nothing taking event (if omitted will use the close event always)title
(optional) title (default: 'take items')slots
(optional) max amount of slots (default: unlimited)itemEvents
(optional) events tied to specific items
Starts a sprawl in the world
ref
id of sprawlradius
(optional) max radius in which to spawn (default: 0)power
(optional) power of new sprawl (default: 100)worldPower
(optional) mutiplier for world level added to power (default: 0)count
(optional) the number of random tiles affected (default: 1)
Reveals part of the map
location
(optional) should locations also be revealed? (default: false)radius
(optional) radius of tiles to be revealed (default: 0)centerCam
(optional) center camera on center position (default: false)particle
(optional) particle to draw on each tile revealed
Reveals everything in a biome
LocationKnown
(optional) if locations should become visible (default: true)particle
(optional) particle to spawn on revealed tiles (default: none)
revealBiome: {locationKnown:false}
Returns true if the specified sprawl can be started at the position
ref
the ID of the sprawl to be checkedradius
(optional) radius in which to check for sprawl requirements (default: 0)
Replaces a location at that position
range
(optional) all locations in range will be considered (default: 0)new
(optional) new ID of the locationold
(optional) list of location IDs that are being replaced (default: any)oldFlags
(optional) flags of locations that are being replaced (default: any)
Replaces one tile with another
new
new id of tileold
IDs of old tiles or ANY to replace allradius
(optional) maximum distance to consider (default: 0)chance
(optional) random chance for tile to be replaced (default: 1)particle
(optional) particle to spawn on replaced tileanimate
(optional) if new tile should transition in or appear immediately (default: true)
Makes zones in a specific area inactive
radius
(optional) radius in which all zones are deactivated (default: 0)turns
(optional) the amount of turns to deactive the zones (default: 2)
Sets the position context to something that matches the search requirements
tiles
(optional) list of tile keywords to be foundlocations
(optional) list of location keywords to be foundlocationFlags
(optional) location flag set that needs to fittileFlags
(optional) tile flag set that needs to fitbiomeFlags
(optional) biome flag set that needs to fitrange
(optional) min/max distance (default: 0..100)tileKnown
(optional) tile is known? (default: find all)locationKnown
(optional) location is known? (default: find all)traversable
(optional) tile is not blocking (default: ignore)reachable
(optional) tile is reachable (default: ignore)closest
(optional) return closest tile, otherwise a random oneshowHint
(optional) location has showHint?
Sets the particle effect of a location
Resets a locations age counter
Returns true if a matching location is found
count
(optional) which amount to validate (default: '1..')tileKnown
(optional) if tile should be known (default: ignore)locationKnown
(optional) if location should be far known (default: ignore)range
(optional) max distance to location (default: 0)flags
(optional) flags that location needs to matchreachable
(optional) checks if target is reachable (default: ignore)
Returns true if a matching zone is found
count
(optional) range for which number of zones to validate (default: '1..')range
(optional) range in which to check for zones (default: 'world')flags
(optional) zone flags for which to check (default: ignore)
Adds a location at the given position
ref
id of locationrange
(optional) range from context position or keywords 'biome' or 'world' (default: biome)animate
(optional) if new location (and tile) should transition in or appear immediately (default: true)setPos
(optional) sets the context position to the newly added location position (default: true)
Shakes the screen
power
(optional) the intensity of the screen shake (default: 1)length
(optional) the duration in seconds (default: 0.2)
Drops items from the players inventory until a specific value is lost
Ends the current expedition
goalFame
(optional) if false no goal fame is awarded (default: true)
Adds butterflies to the partys inventory
count
(optional) how many butterflies are found (default: 1)
Replaces current biome with newly generated one
biomeId
(optional) new biome ID for the biome. (default: keep previous)
regenBiome: {}
Starts resting
sanity
amount of sanity to regain per day. can use bonusevents
one of these events is triggered after being done with resting
Returns true if the given character has had a status for at least age days
ref
id of statusage
range of day age (if status does not exist will return -1)
Removes any status on a character that matches the flags
removeStatusWithFlags: '+sickness|+curse'
Returns true if this event has triggered fewer than the given amount of times in the current world
reqMaxPerWorld: 1
Returns true if the world level matches the given range
reqWorld: '2..3'
Lets the player specify a position by clicking on the map
maxRange
(optional) the maximum distance from context position (default: 2)radius
(optional) size of area which is affected (default: 0)
Blocks the rivals for X amount of turns
blockRivals: 10
Reset the day counter for a status back to 0
resetStatusAge: true
Removes current context item from inventory
removeItem: true
Removes current context zone from map
removeZone: true
Removes all zones matching the criteria
radius
(optional) radius in which all zones are removed (default: 0)flags
(optional) type of zones to remove (default: '')
Returns true if the partys waiting status matches
reqWaiting: true
Stores character in the character storage. removes character from party if character was in party.
Removes character from character storage.
Modifies the current characters loyalty
Clones a character
Returns true if the current character is the specified explorer
Checks if value matches being in tutorial
Returns true if the range is matched
Returns true if the range is matched
Checks if expedition is currently in a warp world
Enables a party counter to be shown at bottom of diary
Removes the current person
Waits for a given amount of time
Changes sanity by given amount
teleports party to given position
Checks if the required amount of karma is reached
reqKarma: '5..10'
Changes the compass score
Modifies a characters health
Travel to context position
Adds npc(s) to the current context
Sets the current characters flags
Sets the current locations flags
Plays a sound effect
playSound: ['sound_1', 'sound_2']
Sets the flags of the biome at the contexts position
Starts combat with the given properties
refs
enemy set that is attacking player. can also be a list of sets with relative slot probabilitysurprise
(optional) true if enemies get to attack first (default: false)
combat: {surprise:true, refs: [{slots:2, 'emy-giantScorpion':1}]}
Returns true if at least one item in the inventory fulfills given flags
reqItemsFlags: '+gun'
Shows a specific chat line
id
@id of the chat line entrychance
(optional) the random chance for chat line to be triggered (default: 1.0)
chat: {chance:0.5, id:'cl-chat'}
Makes specified changes to partys inventory
items: [{slots:1, 'it-chocolate':2}, {slots:2, 'it-torch':3}]
Sets the partys flags
Starts playing specified music
playMusic: ['thm_nature_mystic_1', 'thm_nature_mystic_2']
Sets/changes the context characters status flags
Returns true if the current character matches the status flags
Returns true if a character matches the given flags
Returns true if th current location matches the given flags
Adds a specified or the current contexts npc to the party
Clears pushed events
Removes the status which is in current context
Emmits all specified particles
Specifies the background image and options for the background
src
(optional) image sourcenpc
(optional) list of NPCs (default: [])npcMovement
(optional) if NPCs should be moving, used for celebration (default: false)showMounted
(optional) should NPCs that are mounted be drawn on their animal (default: true)showCampfire
(optional) should an animated nightfire be shown in center of image (default: false)
Returns true if the party matches the given flags
Adds the specified character to the party
id
@id of charactergender
(optional) male or female or hybrid (default: random male/female)
Returns true if the current biome matches the given flags
Returns true if the current difficulty matches the range
Pushes an event to be used later
Returns true if the
Unlocks specified character
@id of world to warp to
Returns true if the partys items match the value
Returns true if the current characters loyalty matches the range
Returns true if the current characters level matches the range
Unlocks the specified pocket for the duration of the current campaign
Returns true if the current party rank matches the range
Returns true if the current partys standing matches the range
Sets the partys status
Sets temporary flags
Returns true if the current temporary flags match
Returns true if the current worlds flags match
Returns true if the current party flags match
Sets the current tiles flags
Returns true if the current character has the specified gender
A reference to another event
Extends specified event
Returns true if the current sanity matches the range
Returns true if the current flags match
Returns true if the current status flags match
Returns true if the partys filled slots match
Returns true if the current characters health matches
Returns true if the current tile is
Returns true if the current day matches the range
Returns true if the specified character is part of the party
Sets the current worlds flags
Returns true if the current difficulty matches the range
Returns true if the current world level matches the range
Changes the current standing
Pops the last pushed event and executes it
Dictionary with set of required items
Used for spefying hot air balloon escape options
Resets a status that is attached to the explorer
Makes the next travel trip a free effortless travel trip.
The amount of map score added or removed.