Log in

DotP 2015: Functions

This information is pulled from the executable by sumomole. However, simply hexing the executable does not give much information about what function belongs to what object or where one object ends and another begins, nor does it give us information on parameters. As such this list may go through many iterations as we figure it all out.

Contents

Team

  • GetNthPlayer
  • GetStartingLifeTotal
  • TakeExtraTurn
  • GetNumberOfPlayers
  • IsSharedLifeTotal

Player Characteristics

  • Bool_Get
  • Bool_Set
  • Int_Get
  • Int_Set
  • Int_Increment
  • Int_Decrement
  • Int_Increase
  • Int_Decrease

Player

  • SetAttackController
  • SetBlockController
  • RevealDCToMe
  • LookAtPlayersHand
  • RevealHand
  • ChooseItems
  • ChooseItem
  • ChooseItemsFromDC
  • ChooseItemFromDC
  • SetItemPrompt
  • SetItemCount
  • AddMultipleChoiceAnswer
  • BeginNewMultipleChoice
  • BeginNewNumericalChoice
  • AskMultipleChoiceQuestion
  • AskNumericalChoiceQuestion
  • AddNumericalChoiceAnswer
  • GetNumericalChoiceResult
  • GetMultipleChoiceResult
  • GetLifeTotal
  • ChooseColour
  • SetLifeTotal
  • GetStartingLifeTotal
  • LoseLife
  • GainLife
  • GetTeam
  • AddPoisonCounters
  • DrawCard
  • ShuffleLibrary
  • MillCards
  • DrawCards
  • DiscardNRandomCards
  • DiscardRandomCard
  • Library_GetTop
  • DiscardHand
  • Library_GetBottom
  • Library_GetNth
  • Graveyard_GetNth
  • Library_Count
  • Hand_GetRandom
  • Graveyard_Count
  • Hand_Count
  • Hand_GetNth
  • Protection
  • MoveLocalZone
  • PreventNextDamage
  • PreventDamage
  • IsAI
  • MyTurn
  • IsHuman
  • IsActuallyAnAI
  • IsSorceryTime
  • GetGlobalIndex
  • WinGame
  • GetCurrentCharacteristics
  • GetOpponent
  • LoseGame
  • GetNextPlayerInTeam
  • GetNextPlayer
  • HasLandOfColour
  • GetPredominantColour
  • CountBasicLandTypes
  • OpponentHasLandOfColour
  • GetDomainCount
  • GetDevotionTo
  • GetUniqueID
  • GetDistinctColourCountOnBattlefield
  • CopyAbility
  • CopySpell
  • CastSpellForFree
  • CanCastSpellForFree
  • CastSpellUsingResourceCost
  • CanCastSpellUsingResourceCost
  • OutOfTheGame
  • PlayerDataChest
  • CanPayManaCost
  • GetTotalMana
  • CanPayResourceCost
  • PayManaCost
  • Planeswalk
  • PayResourceCost
  • ChooseNewTargets
  • Sacrifice
  • AddBadge
  • DisplayMessage
  • SetCustomQueryInstructionValue
  • MarkForFilter
  • FlipCoin
  • SetCustomQueryInstructionCardPtr
  • GetAlwaysUseOptionalAbilitiesSetting
  • GetFlipResult
  • AddPlayScore

Object

  • GetController
  • GetOwner
  • GetCardType
  • GetPlayer
  • GetSubType
  • GetSuperType
  • GetErstwhileZone
  • GetZone
  • GetErstwhileErstwhileZone
  • GetErstwhileZoneController
  • GetColour
  • GetErstwhileErstwhileZoneController
  • GetCurrentToughness
  • GetCurrentPower
  • GetCurrentCharacteristics
  • GetConvertedManaCost
  • GetCardName
  • GetSpec
  • ClearFilter
  • GetFilter
  • LoadTargetDefinitionFromDC
  • LoadTargetDefinition
  • DealUnpreventableDamageTo
  • DealDamageTo
  • Attach
  • GetLastDamageAmountDealt
  • NailOnto
  • AttachToPlayer
  • GetParentPlayer
  • GetParent
  • CanAttachTo
  • RemoveFromParent
  • CountAttachedEquipment
  • CountAttachedAuras
  • Destroy
  • Discard
  • GiveRegeneration
  • DestroyWithoutRegenerate
  • PutInGraveyard
  • QueueZoneChange
  • ExileFaceDown
  • Exile
  • PutInHand
  • ReturnToOwnersHand
  • PutOnTopOfLibrary
  • PutInLibrary
  • PutOntoBattlefield
  • PutOnBottomOfLibrary
  • PutOntoBattlefieldTappedAndAttacking
  • PutOntoBattlefieldTapped
  • PutOntoBattlefieldBlocking
  • PutOntoBattlefieldUnTappedAndAttacking
  • PutInPlaneDeck
  • PutOntoBattlefieldAttachedTo
  • AllowSFX
  • GuidedReveal
  • MidResolutionSetController
  • SetController
  • Protection
  • SetBaseController
  • PreventNextDamage
  • PreventDamage
  • GetDamage
  • ClearDamage
  • TapAndHold
  • Tap
  • Untap
  • Hold
  • TurnFaceDown
  • IsTapped
  • AddCounters
  • TurnFaceUp
  • CountCounters
  • RemoveCounters
  • GetManaX
  • GetBestOrWorstCounterType
  • IncreaseCost
  • CounterSpell
  • IncreaseColouredCost
  • DecreaseCost
  • IncreaseAbilityCost
  • DecreaseColouredCost
  • IncreaseAbilityColouredCost
  • DecreaseAbilityCost
  • IsBlocking
  • DecreaseAbilityColouredCost
  • IsBlocked
  • IsAttacking
  • GetBlockVictim
  • WasBlocked
  • CalcScore
  • NumAttacksThisTurn
  • GetPlayerAttacked
  • CalcPotentialScore
  • IsTargeting
  • GetPlaneswalkerAttacked
  • UseCopiableValues
  • StoreCopiableValues
  • WasCast
  • IsToken
  • PlayFreeFromAnywhere
  • CanBePlayed
  • GetDataChest
  • GrantPseudoFlash
  • WasKicked
  • IsEnchanted
  • WasPaidForWithColour
  • GetKickedCount
  • BecomeMonstrous
  • GetPaidX
  • GetMonstrosity
  • IsMonstrous
  • AddScore
  • MarkForFilter

Filter

  • Add
  • Clear
  • AddSubFilter_And
  • AddSubFilter
  • Set_And
  • AddSubFilter_Or
  • SetFilterType
  • Set_Or
  • Count
  • SetZone
  • SetHint
  • CountStopAt
  • SetReversePortion
  • SetPortion
  • SetUnique
  • SetStackObjectType
  • SetUnmarkedObjectsOnly
  • SetMarkedObjectsOnly
  • EvaluatePlayers
  • EvaluateObjects
  • GetNthEvaluatedPlayer
  • GetNthEvaluatedObject
  • ThrowAwayAllButNRandomObjects
  • GetRandomEvaluatedObject
  • Invalidate
  • ChromaCount

SubFilter

  • Clear
  • Set_Or
  • Set_And
  • AddSubFilter_Or
  • AddSubFilter_And
  • AddSubFilter
  • Add

MTG

  • EffectDataChest
  • DecreaseCurrentCost
  • EffectController
  • GetCurrentObject
  • IncreaseCurrentCost
  • GetStep
  • DuelDataChest
  • GetTurnNumber
  • GetPhase
  • TakeAdditionalPhase
  • GetTurnID
  • SkipPhase
  • SkipStep
  • GetCountersType
  • ReverseTurnOrder
  • PlusOnePlusZeroCounters
  • PlusOnePlusOneCounters
  • MinusOneMinusOneCounters
  • PlusZeroPlusOneCounters
  • PutTokensOntoBattlefieldTapped
  • PutTokensOntoBattlefield
  • PutTokensOntoBattlefieldUntappedAndAttacking
  • PutTokensOntoBattlefieldTappedAndAttacking
  • PutPTTokensOntoBattlefield
  • PutTokensOntoBattlefieldBlocking
  • PutTokenCopiesOntoBattlefieldTappedAndAttacking
  • PutTokenCopiesOntoBattlefield
  • PutTokenCopiesOntoBattlefieldBlocking
  • PutTokenCopiesOntoBattlefieldUntappedAndAttacking
  • GetNthPlayer
  • GetNumberOfPlayers
  • GetNthStartingPlayer
  • GetNumberOfStartingPlayers
  • GetNumberOfTeams
  • GetPlayerByGlobalIndex
  • GetGameType
  • GetNthTeam
  • DropIntoDebugger
  • GetCurrentCharacteristics
  • GetActionRepCount
  • GetCurrentTeam
  • CreateDelayedTrigger
  • FireTrigger
  • OverrideEvent
  • RemoveDelayedTrigger
  • MessageAllPlayers
  • ReportStatsEvent
  • RandomNumberBetween
  • SetPlanarDiceNothingOverload
  • CounterStackObject
  • ClearFilterMark
  • GetStackObjectController
  • GetStackObjectCard
  • SetTargetCount
  • IsMainDuel
  • SetTargetTag
  • SetTargetAnswerer
  • ReevaluateContinuousEffects
  • ClearInterrogationQuery
  • Bool_Get
  • Bool_Set
  • BESPOKE_Retether_SetOnlyCreaturesCanBeEnchantedFlag

Data Chest

  • Get_Int
  • Set_Int
  • Int_Sub
  • Int_Add
  • Set_Float
  • Get_Float
  • Float_Sub
  • Float_Add
  • Get_PlayerPtr
  • Set_PlayerPtr
  • Set_TeamPtr
  • Get_NthPlayerPtr
  • Set_CardPtr
  • Get_TeamPtr
  • Get_NthCardPtr
  • Get_CardPtr
  • LKIShield_CardPtr
  • Protect_CardPtr
  • Remove_RandomCardPtr
  • QueryUnselect_CardPtr
  • Get_CardType
  • Set_CardType
  • Get_SubType
  • Set_SubType
  • Get_Supertype
  • Set_Supertype
  • Get_Colour
  • Set_Colour
  • Get_Damage
  • Set_Damage
  • Get_Targets
  • Make_Targets
  • AttachTargetDefinition
  • Get_NthTargets
  • Get_Chest
  • Make_Chest
  • Free_Compartment
  • Get_SharedChest
  • GetType Clear
  • CopyFrom
  • Count
  • Set_Assignment
  • Get_Assignment

Damage

  • GetAmount
  • GetReceivingObject
  • GetSource
  • IsCombat
  • GetReceivingPlayer
  • PreventAmount
  • PreventAll
  • Add
  • Multiply
  • RedirectAmountTo
  • RedirectAllTo

Object Characteristics

  • Bool_Get
  • Int_Get
  • Bool_Set
  • Power_Get
  • Int_Add
  • Power_Add
  • Power_Set
  • Toughness_Set
  • Toughness_Get
  • SwitchPowerToughness
  • Toughness_Add
  • CantBlock_Set
  • CanBlock_Set
  • CanBlock_Clear
  • CanOnlyBlock_Set
  • CanOnlyBlock_Clear
  • CantBlock_Clear
  • CantBeBlockedExceptBy_Set
  • CantBeBlockedBy_Set
  • CanOnlyBeBlockedBy_Clear
  • CantBeBlockedBy_Clear
  • MustBlockCreature
  • MustAttackPlayer
  • SubType_Add
  • SubType_GetWritable
  • SuperType_Add
  • SubType_SetOnly
  • CardType_Add
  • SuperType_GetWritable
  • GrantAbility
  • CardType_GetWritable
  • LoseAllAbilities
  • AbilityOrigin
  • CanLookAtWhileFaceDown
  • CanBlockAdditionalCreature
  • AI_SetDamageImmune
  • AI_SetWorthless
  • Colour_Get
  • SetGFXController
  • Colour_Add
  • Colour_Set
  • AddColourChoiceBadge

Colour

  • TestAny
  • Test
  • TestAll
  • Add
  • Set
  • GetNumColours
  • Clear

Interrogation

  • Clear (not listed by sumomole but I think there should be?)
  • Count (not listed by sumomole but I think there should be?)
  • SetPlayer
  • SetSecondaryObject
  • Test
  • SetObject
  • SetPhase
  • SetFromZone
  • SetSecondaryPlayer
  • SetType
  • SetColour
  • SetNonTokenOnly
  • SetToZone
  • SetZoneChangeFlags
  • SetCountEventsOnly
  • SetUniqueDamageSources
  • SetCombatOnly
  • SetCreatureOnly

Card types

  • Clear
  • Add
  • IsPermanent
  • Test

Card sub-types

  • Add
  • Set
  • Clear
  • ClearAllOfType