It is currently 26 Apr 2024, 14:24
   
Text Size

card script detailed docs

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

card script detailed docs

Postby Jessica » 01 Mar 2019, 23:38

Hi

Is there anybody who can make a complete detailed website or document that explains all options of a Forge card script?
________________________________________
May the Forge be with you, young Planeswalker!
User avatar
Jessica
 
Posts: 106
Joined: 07 Feb 2019, 16:17
Has thanked: 6 times
Been thanked: 0 time

Re: card script detailed docs

Postby friarsol » 02 Mar 2019, 01:18

friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: card script detailed docs

Postby NYO » 13 Mar 2019, 11:33

friarsol wrote:https://www.slightlymagic.net/wiki/Forge_API
Thanks!
May I ask where can I find detailed scripts that how/when should AI activate certain abilities?

For example, I have a Creature that has the following abilitiy:

A:AB$ ChangeZone | Cost$ ExileFromGrave<1/Card.Wizard+cmcGE4> | Origin$ Battlefield | Destination$ Hand | IsPresent$ Card.Land+YouCtrl | PresentCompare$ GE4 | TargetMin$ 0 | TargetMax$ X | ValidTgts$ Permanent.OppCtrl | TgtPrompt$ Select target permanent | References$ X | SpellDescription$ Return up to X target permanents opponent control to their owners' hands. Where X equals to the number of Wizards you control. Activate this ability only if you control four or more lands.
SVar:X:Count$TypeYouCtrl.Wizard

Oracle:Exile a Wizard card from your graveyard: Return up to X target permanents opponent control to their owners' hands. Where X equals to the number of Wizards you control. Activate this ability only if you control four or more lands.



May I ask how should I code if I want the AI to activate this ability when the AI has three or more Wizards on the battlefield?

(Because the AI will keep activate the ability even when it control only one wizard)


Thanks veryWizard (And sorry for my bad English and Oracle)
NYO
 
Posts: 10
Joined: 10 Jun 2018, 15:21
Has thanked: 0 time
Been thanked: 1 time


Return to Forge

Who is online

Users browsing this forum: No registered users and 172 guests

cron

Who is online

In total there are 172 users online :: 0 registered, 0 hidden and 172 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 172 guests

Login Form