Reference for basic functions used in Dicey Dungeons modding

(To do: Add unique pages for each function aswell as proper documentation)

This page is for functions of the DiceyScript class.

  • attack(damage:Int, ? element:String)
  • attackself(damage:Int, ? element:String)
  • pierceattack(damage:Int, ? element:String)
  • pireceattackself(damage:Int, ? element:String)
  • inflict(status:String, ? amount:Int)
  • inflictself(status:String, ? amount:Int)
  • removestatus(status:String, ? amount:Int)
  • removestatusself(status:String, ? amount:Int)
  • givedice(? value:Int / valueArray:Int[], ? sound:String)
  • drain(damage:Int)
  • getstatus(status:String) → amount:Int
  • getstatusself(status:String) → amount:Int
  • giveequipment(equipmentName:String / equipmentNameArray:String[], direction:Bool, temporary:Bool, ? equipmentToReplace:Equipment)
  • giveenemyequipment(equipmentName:String / equipmentNameArray:String[], direction:Bool, temporary:Bool, ? equipmentToReplace:Equipment)
  • flee()
  • boostcountdowns(value:Int)
  • boomerang(damage:Int)
  • split(value:Int, ? parts:Int) → splitValues:Int[]
  • jinx(name:String, executionDescription:String, statusDescription:String, script:String, target:Fighter, user:Fighter, turns:Int, value:Int)
  • boostjinxcountdowns(target:Fighter, value:Int)
  • getjinx(target:Fighter) → amount:Int
  • rand(array:T[]) → randomElement:T
  • shuffle(array:T[]) → shuffledArray:T[]
  • robotjackpot()
  • robotroll(? ???:Bool)
  • adjustrobotcounter(value:Int)
  • match3()
  • addjestercard(equipmentName:String)
  • getequipment(? target:Fighter) → equipmentArray:String[]
  • getparticularequipment(? size:String[]) → equipmentArray:String[]
  • beartransform()
  • undoturn()

User Tools