AI specific SVars
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
3 posts
• Page 1 of 1
AI specific SVars
by Sloth » 04 Nov 2010, 07:35
This list is a reminder for all developers and other people who want to add cards.
SVar:RemAIDeck:True
This SVar will prevent the card from appearing in random decks (also the humans). It is not only applicable for cards the AI can't use at all like Dark Ritual, but also for cards that the AI could use, but only ineffectively like Tortoise Formation and cards that are too narrow for random decks like Root Cage or Into the North.
SVar:PlayMain1:TRUE
The AI will play cards with this SVar in its first main phase. The AI will not play any spells without this in Main1 (exceptions see below). Remember that some keywords have this "build in" like enPump, spPump, etbDestroy, spDestroy and Haste. Applicable for Lords (Kaysa), etb effects (Joraga Bard) or unconventional removal (Journey to Nowhere).
SVar:BuffedBy:[ValidCards]
If a permanent with this SVar is on the battlefield under its control the AI will play the specified cards in Main1. Applicable for creatures with a P/T setting static ability (Kithkin Rabble) or additional buffes (Radiant, Archangel).
SVar:AntiBuffedBy:[ValidCards]
If a permanent with this SVar is on the battlefield under your control the AI will play the specified cards in Main1. Applicable for cards like Heart Sliver or Timid Drake.
SVar:EquipMe:[Multiple]/[Once]
Creatures with "Multiple" in this SVar will always be prefered when the AI equippes (Myr Adapter), creatures with "Once" only if they are not equipped already (Kor Duelist).
SVar:EnchantMe:[Multiple]/[Once]
Creatures with "Multiple" in this SVar will always be prefered when the AI enchants (Rabid Wombat), creatures with "Once" only if they are not enchanted already (Gate Hound).
SVar:RemAIDeck:True
This SVar will prevent the card from appearing in random decks (also the humans). It is not only applicable for cards the AI can't use at all like Dark Ritual, but also for cards that the AI could use, but only ineffectively like Tortoise Formation and cards that are too narrow for random decks like Root Cage or Into the North.
SVar:PlayMain1:TRUE
The AI will play cards with this SVar in its first main phase. The AI will not play any spells without this in Main1 (exceptions see below). Remember that some keywords have this "build in" like enPump, spPump, etbDestroy, spDestroy and Haste. Applicable for Lords (Kaysa), etb effects (Joraga Bard) or unconventional removal (Journey to Nowhere).
SVar:BuffedBy:[ValidCards]
If a permanent with this SVar is on the battlefield under its control the AI will play the specified cards in Main1. Applicable for creatures with a P/T setting static ability (Kithkin Rabble) or additional buffes (Radiant, Archangel).
SVar:AntiBuffedBy:[ValidCards]
If a permanent with this SVar is on the battlefield under your control the AI will play the specified cards in Main1. Applicable for cards like Heart Sliver or Timid Drake.
SVar:EquipMe:[Multiple]/[Once]
Creatures with "Multiple" in this SVar will always be prefered when the AI equippes (Myr Adapter), creatures with "Once" only if they are not equipped already (Kor Duelist).
SVar:EnchantMe:[Multiple]/[Once]
Creatures with "Multiple" in this SVar will always be prefered when the AI enchants (Rabid Wombat), creatures with "Once" only if they are not enchanted already (Gate Hound).
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: AI specific SVars
by Chris H. » 04 Nov 2010, 12:37
Thank you, Sloth. Good job btw.
I made this topic a sticky.
I made this topic a sticky.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: AI specific SVars
by mtgrares » 04 Nov 2010, 16:54
SVars looks very useful. I especially like AntiBuffedBy, which is a vague idea that I've had in my mind but I couldn't quite pin it down enough to code it. SVars should help the AI alot.
- mtgrares
- DEVELOPER
- Posts: 1352
- Joined: 08 Sep 2008, 22:10
- Has thanked: 3 times
- Been thanked: 12 times
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 75 guests