Log in

Forge Target

There are currently two different ways to handle Target. Basic Targeting and Valid Targeting.

Contents

Basic Targeting

Basic targeting doesn't require extra parameters and has three options. In AbilityFactory it will appear like this: Tgt$<TgtOption>

TgtCP

Allows you to target a Creature, Player or Planeswalker. This is most commonly found in DealDamage abilities.

TgtC

Allows you to target a Creature. This can be found in many abilities including DealDamage and Pump.

TgtP

Allows you to target a Player or Planeswalker. This is most commonly found in DealDamage

Valid Targeting

This checks the Validity of the Types provided by the Ability. If you attempt to select an invalid type, the targeting will give you a helpful note that the type may be incorrect.

When using Target with AbilityFactory, the first required parameter is ValidTgts$. The second is TgtPrompt$

ValidTgts

This lists the valid type(s) the card is looking to target.

TgtPrompt

This String will be placed into the target Dialog box to inform the player what is targetable by this Ability.

Example

In AbilityFactory it may appear like this:

ValidTgts$Creature.nonBlack|TgtPrompt$Target a non-black Creature