Campaign and Grant scripting to do list - originalfoo/Prison-Architect-API GitHub Wiki

Via: http://forums.introversion.co.uk/viewtopic.php?f=43&t=50165

do local _G = {
  Game = {
    AdviserIncoming = "native function( string )",
    AdviserSay = "native function( string, string )",
    AdviserSayBatch = "native function( string, string )",
    AttachScript = "native function( string, string )",
    BeginSkippable = "native function()",
    CamMove = "native function( float, float, float, float )",
    CamMoveAndZoom = "native function( float, float, float, float )",
    CamMoveToObject = "native function( string, float, float, bool )",
    CamTrack = "native function( string, float )",
    CamWait = "native function()",
    CamZoom = "native function( float, float, bool )",
    Damage = "native function( string, float, string )",
    DebugOut = "native function( ??, ??, <76f400> )",
    DeliverVIP = "native function( string, string )",
    Delivery = "native function( string, float, string )",
    Drop = "native function( string )",
    DropEquipment = "native function( string )",
    EndSkippable = "native function()",
    EntityFollow = "native function( string, string )",
    FadeToBlack = "native function( float, bool )",
    FadeToColour = "native function( float, float, float, float, float )",
    FadeUp = "native function( float, bool )",
    GameOver = "native function()",
    GetNumRoomExtras = "native function( integer, integer )",
    GetNumRooms = "native function( string )",
    GetProperty = "native function( string, string )",
    GetRoomCondition = "native function( integer, integer )",
    GiveContraband = "native function( string, string )",
    GiveEquipment = "native function( string, string )",
    GiveStatusEffect = "native function( string, string, float )",
    Hide = "native function( string )",
    HideArea = "native function( string, float, float, float )",
    HidePolaroid = "native function( string )",
    LoseEquipment = "native function( string )",
    Misconduct = "native function( float, float, float, float )",
    MovePolaroidTo = "native function( string, string, float, float )",
    Pause = "native function( float )",
    Pickup = "native function( string, string )",
    Polaroid = "native function( string, string, float, float, float )",
    PolaroidAtMarker = "native function( string, string, float )",
    PolaroidTrigger = "native function( string, float, float, string )",
    PowerOff = "native function( string )",
    PowerOn = "native function( string )",
    RemoveScript = "native function( string )",
    SaveMap = "native function( string )",
    SendEntityToObject = "native function( string, string, float, float, float )",
    SendEntityToPos = "native function( string, float, float, float, float )",
    SendEntityToRoom = "native function( string, string, float )",
    SetBlockedArea = "native function( float, float, float, float )",
    SetChapter = "native function( string )",
    SetEntityPos = "native function( string, float, float, float, float )",
    SetFlag = "native function( string, string, bool )",
    SetIntakeOpen = "native function( string, bool )",
    SetMap = "native function( string )",
    SetMaterial = "native function( float, float, string )",
    SetProperty = "native function( string, string, float )",
    SetSprite = "native function( string, string )",
    Show = "native function( string )",
    Sound = "native function( string, string )",
    Spawn = "native function( string, string, float, float )",
    SpawnDecal = "native function( float, float, float, float, float )",
    SpawnPrisoners = "native function( float, float, float, float )",
    StopSound = "native function( string, string )",
    Time = "native function()",
    Tour = "native function( string, string, string )",
    Unlock = "native function( string, string )",
    VehicleCallout = "native function( string, string )"
  } --[[table: 15570B08]],
  Objective = {
    Complete = "native function( string )",
    Create = "native function( string )",
    CreateGrant = "native function( string, float, float )",
    Delete = "native function( string )",
    Exists = "native function( string )",
    HiddenWhileLocked = "native function()",
    Invert = "native function()",
    RequireBuilding = "native function( bool )",
    RequireDesignation = "native function( string, string )",
    RequireFlag = "native function( string, bool, float )",
    RequireGangControl = "native function( float, float, float )",
    RequireManufactured = "native function( string, float )",
    RequireMaterials = "native function( string, float )",
    RequireMaterialsAvailable = "native function( string, float, bool )",
    RequireNamedObject = "native function( string )",
    RequireObjectOff = "native function( string )",
    RequireObjectOn = "native function( string )",
    RequireObjectPower = "native function( string )",
    RequireObjects = "native function( string, float )",
    RequireObjectsInRoom = "native function( string, string, float )",
    RequirePowerCapacity = "native function( string, float )",
    RequirePrisonerInCell = "native function( string, string )",
    RequirePrisonersUnderControl = "native function( float, float, float )",
    RequireResearched = "native function( string )",
    RequireRoom = "native function( string, bool )",
    RequireRoomsAvailable = "native function( string, float )",
    RequireSecurityInRoom = "native function( string, float )",
    RequireSetMeals = "native function( float )",
    RequireTimePassed = "native function( float )",
    Requires = "native function()",
    SetFlags = "native function( bool, bool )",
    SetParent = "native function( string )",
    SetPayment = "native function( float )",
    SetPreRequisite = "native function( string )",
    SetTargetVisible = "native function( bool )",
    TargetObject = "native function( string )",
    TargetRoom = "native function( string )",
    TargetZone = "native function( float, float, float )"
  } --[[table: 15C76120]],
  ScriptSystem = ScriptSystem --[[userdata: 142E3600]],
  Trigger = {
    Create = "native function( string )",
    Delete = "native function( string )",
    PreserveObjectives = "native function()",
    RequireObjective = "native function( string )"
  } --[[table: 15C763C8]],
  _G = nil --[[ref]],
  _VERSION = "Lua 5.1",
  assert = assert --[[function: builtin]],
  collectgarbage = collectgarbage --[[function: builtin]],
  coroutine = {
    create = coroutine.create --[[function: builtin]],
    resume = coroutine.resume --[[function: builtin]],
    running = coroutine.running --[[function: builtin]],
    status = coroutine.status --[[function: builtin]],
    wrap = coroutine.wrap --[[function: builtin]],
    yield = coroutine.yield --[[function: builtin]]
  } --[[table: 146EC0C0]],
  error = error --[[function: builtin]],
  gcinfo = gcinfo --[[function: builtin]],
  getfenv = getfenv --[[function: builtin]],
  getmetatable = getmetatable --[[function: builtin]],
  ipairs = ipairs --[[function: builtin]],
  load = load --[[function: builtin]],
  loadstring = loadstring --[[function: builtin]],
  math = {
    abs = math.abs --[[function: builtin]],
    acos = math.acos --[[function: builtin]],
    asin = math.asin --[[function: builtin]],
    atan = math.atan --[[function: builtin]],
    atan2 = math.atan2 --[[function: builtin]],
    ceil = math.ceil --[[function: builtin]],
    cos = math.cos --[[function: builtin]],
    cosh = math.cosh --[[function: builtin]],
    deg = math.deg --[[function: builtin]],
    exp = math.exp --[[function: builtin]],
    floor = math.floor --[[function: builtin]],
    fmod = math.fmod --[[function: builtin]],
    frexp = math.frexp --[[function: builtin]],
    huge = 1/0 --[[math.huge]],
    ldexp = math.ldexp --[[function: builtin]],
    log = math.log --[[function: builtin]],
    log10 = math.log10 --[[function: builtin]],
    max = math.max --[[function: builtin]],
    min = math.min --[[function: builtin]],
    mod = nil --[[ref]],
    modf = math.modf --[[function: builtin]],
    pi = 3.1415926535898,
    pow = math.pow --[[function: builtin]],
    rad = math.rad --[[function: builtin]],
    random = math.random --[[function: builtin]],
    randomseed = math.randomseed --[[function: builtin]],
    sin = math.sin --[[function: builtin]],
    sinh = math.sinh --[[function: builtin]],
    sqrt = math.sqrt --[[function: builtin]],
    tan = math.tan --[[function: builtin]],
    tanh = math.tanh --[[function: builtin]]
  } --[[table: 15570978]],
  module = module --[[function: builtin]],
  newproxy = newproxy --[[function: builtin]],
  next = next --[[function: builtin]],
  pairs = pairs --[[function: builtin]],
  pcall = pcall --[[function: builtin]],
  rawequal = rawequal --[[function: builtin]],
  rawget = rawget --[[function: builtin]],
  rawset = rawset --[[function: builtin]],
  select = select --[[function: builtin]],
  setfenv = setfenv --[[function: builtin]],
  setmetatable = setmetatable --[[function: builtin]],
  string = {
    byte = string.byte --[[function: builtin]],
    char = string.char --[[function: builtin]],
    dump = string.dump --[[function: builtin]],
    find = string.find --[[function: builtin]],
    format = string.format --[[function: builtin]],
    gfind = string.gmatch --[[function: builtin]],
    gmatch = nil --[[ref]],
    gsub = string.gsub --[[function: builtin]],
    len = string.len --[[function: builtin]],
    lower = string.lower --[[function: builtin]],
    match = string.match --[[function: builtin]],
    rep = string.rep --[[function: builtin]],
    reverse = string.reverse --[[function: builtin]],
    sub = string.sub --[[function: builtin]],
    upper = string.upper --[[function: builtin]]
  } --[[table: 15570900]],
  table = {
    concat = table.concat --[[function: builtin]],
    foreach = table.foreach --[[function: builtin]],
    foreachi = table.foreachi --[[function: builtin]],
    getn = table.getn --[[function: builtin]],
    insert = table.insert --[[function: builtin]],
    maxn = table.maxn --[[function: builtin]],
    remove = table.remove --[[function: builtin]],
    setn = table.setn --[[function: builtin]],
    sort = table.sort --[[function: builtin]]
  } --[[table: 146EC1D8]],
  tonumber = tonumber --[[function: builtin]],
  tostring = tostring --[[function: builtin]],
  type = type --[[function: builtin]],
  unpack = unpack --[[function: builtin]],
  xpcall = xpcall --[[function: builtin]]
} --[[table: 14524DB0]]
local __G={}
_G._G = _G
_G.math.mod = _G.math.fmod
_G.string.gmatch = _G.string.gfind
return _G
end
⚠️ **GitHub.com Fallback** ⚠️