Skip to content

Duel.SSet ​

Source Code | Usage Examples | Duel Functions

Sets a card(s) to the Spell & Trap Zone or Field Zone. Can be used to Set Spells/Traps, as well as monsters with an effect that allows them to be Set in the Spell & Trap Zone (e.g. the "Artifact" monsters).

Signature ​

Duel.SSet(int player, Card|Group targets, [int target_player = player, bool confirm = true]) → int

lua
Duel.SSet(player,targets,target_player,confirm)

Parameters ​

  • int player ​

    The player that is Setting the card(s).

  • Card|Group targets ​

    The card(s) to Set.

  • int target_player ​

    Optional. Defaults to player.

    The player in whose field the card(s) will be Set.

  • bool confirm ​

    Optional. Defaults to true.

    Determines whether the Set card(s) will be shown to the opponent or not after being Set. Should be set to false if the effect can Set any Spell/Trap (e.g. "Ariane the Labrynth Servant" or "Dust Tornado", but not "Ancient Gear Drill").

Returns ​

  • int ​

    The number of cards successfully Set.