Skip to content

Card.Setcode

Source Code | Usage Examples | Card Functions

Returns the card's original archetype(s).

Signature

Card.Setcode(Card c) → int ...

lua
c:Setcode()

Parameters

  • Card c

    The card to get the original archetype(s) of.

Returns

  • int ...

    The setcode values of the card's original archetypes.

Overload

Card.Setcode(Card c, IntArray setcodes) → nil

lua
c:Setcode(setcodes)

Replaces a card's archetype(s) with a table of setcode values.

Parameters

  • Card c

    The card to change the archetype(s) of.

  • IntArray setcodes

    A table of setcode values to set as the card's new archetype(s).

Overload

Card.Setcode(Card c, int ...) → nil

lua
c:Setcode(...)

Replaces a card's archetype(s) with any number of setcode values.

Parameters

  • Card c

    The card to change the archetype(s) of.

  • int ...

    Setcode values to set as the card's new archetype(s).