It is currently 12 Dec 2018, 12:22
   
Text Size

Coding Reference

Moderators: Xander9009, CCGHQ Admins

Coding Reference

Postby 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():*)

    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():*)

    Bool_Get
    Bool_Set
    Power_Get
    Power_Set
    Power_Add
    Toughness_Get
    Toughness_Set
    Toughness_Add
    CanBlock_Set
    CantBlock_Set
    CanOnlyBlock_Set
    CanBlock_Clear
    CantBlock_Clear
    CanOnlyBlock_Clear
    CantBeBlockedBy_Set
    CanOnlyBeBlockedBy_Set
    CantBeBlockedBy_Clear
    CanOnlyBeBlockedBy_Clear
    Badge_Set
    Badge_Clear
    Badge_Test
    FX_Set

Last edited by Yanna on 28 Aug 2010, 16:30, edited 5 times in total.
Image
User avatar
Yanna
 
Posts: 137
Joined: 03 Mar 2009, 14:52
Has thanked: 0 time
Been thanked: 1 time

Coding Reference - FILTERS

Postby 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():*)

    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.
Image
User avatar
Yanna
 
Posts: 137
Joined: 03 Mar 2009, 14:52
Has thanked: 0 time
Been thanked: 1 time

Coding Reference - CARD TAGS

Postby Yanna » 28 Aug 2010, 16:14

Here's a list of available Card Tags with their allowed arguments.

<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.
Image
User avatar
Yanna
 
Posts: 137
Joined: 03 Mar 2009, 14:52
Has thanked: 0 time
Been thanked: 1 time

Coding Reference

Postby Yanna » 28 Aug 2010, 16:15

*** reserved for future use ***
Image
User avatar
Yanna
 
Posts: 137
Joined: 03 Mar 2009, 14:52
Has thanked: 0 time
Been thanked: 1 time


Return to Documentation

Who is online

Users browsing this forum: No registered users and 1 guest


Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 1 guest

Login Form