Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Documentation
Coding Reference
Moderator: CCGHQ Admins
Coding Reference
by Yanna » 28 Aug 2010, 16:14
Here's a list of functions that can be used while coding cards.
Some of these are NOT used in actual cards but i assume they are working (providing the correct syntax).
Object or Subject functions (Object():*)
Player functions (pPlayer:*)
MTG functions (MTG():*)
Card Caracteristic functions (pCard:GetCurrentCharacteristics():*)
Some of these are NOT used in actual cards but i assume they are working (providing the correct syntax).
Object or Subject functions (Object():*)
GetOwner
GetPlaneswalkerAttacked
GetPlayerAttacked
AttachmentFilter_Get
UnlikelyToAttack
CalcPotentialScore
CalcScore
GetMultipleChoiceResult
Kicked
GetBlockVictim
WasBlocked
IsBlocked
IsAttacking
IsBlocking
DecreaseColouredCost
IncreaseColouredCost
DecreaseCost
IncreaseCost
CounterSpell
Register_Object_Get
Register_Object_Set
Register_Object_Clear
Register_Player_Get
Register_Player_Set
Register_Player_Clear
Register_Div
Register_Mul
Register_Sub
Register_Add
Register_Dec
Register_Inc
Register_Get
Register_Set
Register_Clear
GetManaX
CountCounters
RemoveCounters
AddCounters
Tapped
Untap
TapAndHold
Tap
PreventNextDamage
PreventDamage
Protection
SetPermanentController
SetController
GuidedReveal
Reveal
PutIntoPlayAttachedTo
PutIntoPlayTapped
PutIntoPlay
PutOnBottomOfLibrary
PutOnTopOfLibrary
PutInLibrary
HasRegeneration
GiveRegeneration
PutInHand
ReturnToOwnersHand
RemoveFromGame
PutInGraveyard
Sacrifice
DestroyWithoutRegenerate
Destroy
Discard
GetNthAuxTargetCard
GetAuxTargetCard
GetNumberOfTargets
ClearTarget
GetTargetType
SetSFXTargetPlayer
SetTargetPlayer
GetTargetPlayer
GetNthTargetCard
SetSFXTargetCard
SetTargetCard
GetTargetCard
GetNumberOfChildren
GetParentalNature
GetParent
Enchant
Fortificate
Attach
DealDamageFullParams
DealCDamage
DealDamage
GetRevealFilter
GetAuxFilter
GetFilter
GetRef
GetCurrentCharacteristics
GetConvertedManaCost
GetCurrentToughness
GetCurrentPower
GetColour
GetErstwhileErstwhileZone
GetErstwhileZone
GetZone
GetSubType
GetSupertype
GetCardType
GetPlayer
GetController
TestAny
TestAll
Test
Player functions (pPlayer:*)
Bool_Get
Bool_Set
RevealCards
GetUniqueID
SimpleTargetingOn
OpponentHasLandOfColour
HasLandOfColour
GetPredominantColour
GetNextPlayerInTeam
GetNextPlayer
GetOpponent
LoseGame
WinGame
GetCurrentCharacteristics
Register_Object_Get
Register_Object_Set
Register_Object_Clear
Register_Player_Get
Register_Player_Set
Register_Player_Clear
Register_Div
Register_Mul
Register_Sub
Register_Add
Register_Dec
Register_Inc
Register_Get
Register_Set
Register_Clear
SorceryTime
IsHuman
IsAI
MyTurn
PreventNextDamage
PreventDamage
Protection
Library_Count
Hand_Count
Hand_GetRandom
Library_GetBottom
Library_GetNth
Library_GetTop
DiscardRandomCard
DiscardNCardsF
DiscardNCards
DrawCard
ShuffleLibrary
GetTeam
DealDamageFullParams
DealCDamage
DealDamage
LoseLife
GainLife
SetLifeTotal
GetLifeTotal
GetChosenColour
ChooseColour
AskMultipleChoiceQuestion
AddMultipleChoiceAnswer
BeginNewMultipleChoice
SetTargetPrompt
GetTargetCount
SetTargetCount
ChooseTargetsWithFlags
ChooseTargetWithFlags
ChooseTargets
MTG functions (MTG():*)
GetStep
GetCurrentTeam
DropIntoDebugger
GetStackCount
FromAIPerspective
GetGameType
GetNthTeam
GetNumberOfTeams
GetNthPlayer
GetNumberOfPlayers
GetCurrentObject
ObtainToken
ChargeCounters
MinusOneMinusOneCounters
PlusOnePlusOneCounters
GetCountersType
Card Caracteristic functions (pCard:GetCurrentCharacteristics():*)
Last edited by Yanna on 28 Aug 2010, 16:30, edited 5 times in total.
Coding Reference - FILTERS
by Yanna » 28 Aug 2010, 16:14
Here's a list of available Methods you can apply to the Object's Filter.
Once again, some of those are'nt used in actual card coding.
Object's filter methods (Object():GetFilter():*)
Once again, some of those are'nt used in actual card coding.
Object's filter methods (Object():GetFilter():*)
Test
Clear
SetNeutral
SetBlockVictim
SetConvertedCostMax
SetConvertedCostMin
SetConvertedCostValue
SetToughnessMax
SetToughnessMin
SetToughnessValue
SetPowerMax
SetPowerMin
SetPowerValue
SetFillFilter
SetStackObjectType
SetPortion
PlayerAntiHint
PlayerHint
AddBadge
AddExtra
AnyAtAll
CountStopAt
Count
May
AllowDuplicates
NotTargetted
AddColour
SetCardInstance
SetCardRef
SetSupertypes
SetFilterType
SetSubTypes
SetSecondCardTypes
SetCardTypes
AddSubType
AddSecondCardType
AddCardType
AddSupertype
SetOwner
SetPlayer
SetControllersTeam
SetController
SetZone
Last edited by Yanna on 28 Aug 2010, 16:30, edited 3 times in total.
Coding Reference - CARD TAGS
by Yanna » 28 Aug 2010, 16:14
Here's a list of available Card Tags with their allowed arguments.
<COLLECTORNUMBER>
<FLAVOURTEXT>
<TITLE>
<FILENAME>
<ARTID>
<ARTIST>
<FRAMECOULOUR>
<RARITY>
<TYPE>
<SUB_TYPE>
<SUPERTYPE>
<CASTING_COST>
<POWER>
<TOUGHNESS>
<LAND_GROUP>
<SFX>
<STATIC_ABILITY>
<SPELL_ABILITY>
<UTILITY_ABILITY>
<TRIGGERED_ABILITY>
<ACTIVATED_ABILITY>
<KEYWORD>
<COST>
<TOKEN_REGISTRATION>
<AI_SCORE_MULTIPLIER>
<AI_PLAY_TIME>
<AI_CUSTOM_SCORE>
<HELP>
<HINT>
<AI_PLAY_SCORE
<COLLECTORNUMBER>
value
<FLAVOURTEXT>
text
<TITLE>
text
<FILENAME>
text
<ARTID>
value
<ARTIST>
name
<FRAMECOULOUR>
name
<RARITY>
metaname
<TYPE>
metaname
<SUB_TYPE>
metaname
<SUPERTYPE>
metaname
<CASTING_COST>
cost
<POWER>
value
<TOUGHNESS>
value
<LAND_GROUP>
value
<SFX>
text
targetting_arrow
<STATIC_ABILITY>
tag
commaspace
zone
layer
influencing_zone
simple_filter
unlikely_to_attack
<SPELL_ABILITY>
tag
commaspace
zone
layer
internal
simple_filter
<UTILITY_ABILITY>
tag
commaspace
<TRIGGERED_ABILITY>
tag
commaspace
zone
layer
internal
pre_trigger
auto_skip
dont_ask
unlikely_to_attack
forced_skip
<ACTIVATED_ABILITY>
tag
commaspace
zone
layer
sorcery_time
during_your_turn
during_opponents_turn
upkeep
combat
non_combat
per_turn_limit
simple_filter
immunity
auto_skip
firebreathing
unlikely_to_attack
forced_skip
<KEYWORD>
tag
help_title
help_body
<COST>
type
cost
points
name
number
qualifier
<TOKEN_REGISTRATION>
type
reservation
<AI_SCORE_MULTIPLIER>
zone
value
<AI_PLAY_TIME>
step
phase
<AI_CUSTOM_SCORE>
zone
<HELP>
title
body
zone
zone_reverse
<HINT>
hint_number
trigger
trigger_value
local_trigger
two_headed_giant_only
<AI_PLAY_SCORE
Last edited by Yanna on 28 Aug 2010, 16:31, edited 5 times in total.
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests