It is currently 05 Jun 2020, 22:46
   
Text Size

UPDATE_Play a Horde Magic frmt using a custom Vanguard avata

Post MTG Forge Related Programming Questions Here

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

UPDATE_Play a Horde Magic frmt using a custom Vanguard avata

Postby Xanxer » 07 Jan 2020, 01:54

Hello,

My name is xanxer and I've been making custom Vanguard avatars to try and get other formats to work (or at least a variant of other formats) and have been working on a Horde format Vanguard avatar. I've added some additional abilities to the format to make it more challenging as well as modular.
There are abilities you can enable and disable to customize the overall game by either adding a # sign or deleting it next to the card script block.

I would like I am trying to optimize this some how. I am new to programming and enjoy picking at existing code to try and get ideas to work.

Any help or suggestions are welcome.

I have also made a 100 card test deck but you make your own as well.
Decks are typically tribal themed with 60/100 being tokens of a main creature tyoe and the other 40/100 being whatever you would like that the Ai is able to play. The Ai seems to play the deck well and as expected.

This is the Description info with what is enabled and not enabled.

###############################
######## GAME STARTS ##########
#
### SURVIVORS CARD BAN LIST ###
Description$ Your opponents can't cast Grafdiggers Cage.
Description$ Your opponents can't cast Silent Gravestone.
Description$ Your opponents can't cast Ashes of the Abhorrent.
Description$ Your opponents can't cast Void Winnower.
Description$ Your opponents can't cast Kunoros, Hound of Athreos.
#
### SURVIVORS GAIN SOME ###
####### EXTRA LIFE ########
#
Description$ When the game starts each survivor gains 25 life.
#
##### THE HORDE GATHERS #####
### FROM OUTSIDE THE GAME ###
#
#Description$ When the game starts, the Horde gathers from outside.
#
#### IF HORDE STARTS IT SKIPS NEXT TWO TURNS ####
## IF SURVIVOR STARTS THEY GET TWO EXTRA TURNS ##
#
Description$ •When the game starts, if the Horde wins the flip it will skip its next two turns, Otherwise you start with two extra turns while the Horde gathers.
#
###############################
### SURVIVORS RNDM. BENIFIT ###
########### EMBLEM ############
#
#Description$ When the game starts, the Surviors get a Surviors Random Benefit emblem."
#Description$ The Survivors get an emblem with "A stumbling luck. On R1, Draw a card. On R2, Skip your next untap step. On R3, Skip your next combat phase."
#
#################################
## THE HORDES INFECTION EMBLEM ##
#################################
#
Description$ When the game starts, the Horde gets a The Horde Infection emblem.
SpellDescription$ You get an emblem with "If the Hode has two infection counters Each creature the Horde controls gain Haste."\n"If the Horde has three infection counters each non-Token creature the Horde controls attack each combat if able."\n"If the Horde has six infection counters Creatures you control have "Whenever CARDNAME blocks, it gets +2/+0 until end of turn."".\nIf the Horde has seven infection counters Other creatures have "CARDNAME fights target creature. (Each deals damage equal to its power to the other.)"".\n APOCALYPSE!, if the Horde has twelve or more infection counters it removes all INFECTION counters and destroys each non land permanent and each Survivor discards his or her hand and draws five cards.
#
################################
## ENDLESS HORDE EBLEM SCRPIT ##
################################
#
#Description$ •When the game starts, the Horde gets a Liliana, the Last Hope emblem.
#SpellDescription$ You get an emblem with "At the beginning of your end step, create X 2/2 black Zombie creature tokens, where X is two plus the number of Zombies you control."
#Description$ At the beginning of your end step, create X 2/2 black Zombie creature tokens, where X is two plus the number of Zombies you control.
#
### TRADITIONAL HORDE ##
##### TURN SCRIPT ######
#
Description$ •The Horde reveals the top card of its library until it reveals a nonZombie of the Horde card, casts that card and puts all Zombie of the Horde creatures onto the battlefield.
#
###############################
###### HORDES OMEN SCRIPT #####
###############################
#
Description$ •At the beginning of each player's draw step, that player exiles the top card of their library. If it's a land card, the player puts it onto the battlefield. Otherwise, the player casts it without paying its mana cost if able.
#
################################
### RNDM EQUIPMENT GEN. WHEN ###
### SURVIVOR CASTS CREATURE ####
#
Description$ •Equipment enters the battlefield under the control of an opponent of your choice.
Description$ •Whenever a creature enters the battlefield under the Survivors control,the Survivors create a token that's a copy of a random Equipment card with converted mana cost less than that creature's converted mana cost. Attach that Equipment to that creature.
#
### NOOSEGRAF MOB ###
#### HAS PERSIST ####
#
#HiddenDescription$ •Each Noosegraf Mob creatures the Horde control have Persist.
#
####### LANDS THE HORDE ######
## CONTROL HAVE VANISHNIG:2 ##
#
HiddenDescription$ •Lands the Horde controls have Vanishing:2.
#
#### HORDE CAN'T LOSE FOR ####
## HAVING ZERO or LESS LIFE ##
#
Description$ •The Horde can't lose the game for having 0 or less life.
#
#Description$ You can't get poison counters.
#
Description$ •The Horde can't lose the game for having 10 or more poison counters.
#
### THE HORDE CAN'T DRAW CARDS ###
#
HiddenTriggerDescription$ •The Horde can't draw cards.
#
##################################
####### THE HORDE CAN PLAY #######
### ZOMBIES FROM ITS GRAVEYARD ###
#
### ZOMBIES AND DEVILS ###
### COST ZERO TO CAST ####
#
HiddenDescription$ •The Horde may pay {0} rather than pay the mana cost for Zombie creature spells it casts.
HiddenDescription$ •The Horde may pay {0} rather than pay the mana cost for Devil creature spells it casts.
#
###############################
### OVERSOLD HORDE CEMETERY ###
#
Description$ At the beginning of the Hordes upkeep, if it has four or more creature cards in its graveyard, the Horde may return target creature card from its graveyard to the battlefield.
#
##################################
## HORDES OMNISCIENCE INVENTION ##
#
Description$ You may cast zombies from your graveyard without paying their mana costs and can cast no more than two spells each turn.
#
Description$ You may cast spells from your hand without paying their mana costs and can cast no more than two spells each turn.
#
Description$ You may cast spells from your hand without paying their mana costs and can cast no more than two spells each turn.
#
#### THE HORDE DIGS 1 DURING ###
## DRAW PHASE INSTEAD OF DRAW ##
#
Description$ •At the beginning of the Hordes draw phase, the Horde puts the top card of its library into its hand.
#
#### WHEN HORDE LOSES ANY LIFE ###
## IT GETS AN INFECTION COUNTER ##
#
HiddenTriggerDescription$ •Whenever the Horde loses life, it gets an INFECTION counter.
#
#########################################
### WHENEVER CREATURE HORDE CONTROLS ####
### DIES TRGT SURVIVOR GAIN ONE LIFE ####
#
Description$ •Whenever another creature the Horde control dies, target Survivor gains 1 life.
#
## WHEN A NON TOKEN CREATURE HORDE CONTROL DIES ##
######## HORDE GETS AN INFECTION COUNTER #########
#
HiddenTriggerDescription$ •Whenever a nontoken creature the Horde control dies, the Horde gets an INFECTION counter.
#
### APOCALYPSE ###
##### SCRIPT #####
#
Description$ •APOCALYPSE!, if CARDNAME has twelve or more charge counters it removes all INFECTION counters and destroys each non land permanent and each Survivor discards his or her hand and draws five cards.
#
## IF CREATURE GOES TO GY FROM HORDES LBRY ##
######## THE HORDE CREATES ZOMBIE TKN #######
#
HiddenTriggerDescription$ •Whenever one or more creature cards are put into the Horde's graveyard from its library, it creates a 2/2 black Zombie creature token.
#
###### WHENEVER A CREATURE THE HORDE #######
############ CONTROLS DIES IT ##############
########## CREATES A SPIRIT TKN ############
### ENABLE WHICH ONE AND CHANGE EXECUTE$ ###
#
HiddenTriggerDescription$ •Whenever a nontoken creature the Horde control dies, it creates a 1/1 colorless Spirit creature token.
#
#### WHEN HORDE CAST CREATURE FROM GRAVEYARD ####
######### HORDE CREATES ZOMBIE TKN #############
#
HiddenTriggerDescription$ •Whenever the Horde casts a creature spell from its graveyard, it creates a 2/2 black Zombie creature token.
#
#######################################
######## WIN CONDITION SCRIPT #########
#######################################
#
#Description$ •You can't lose the game.
Description$ •Opponents can't win the game.
Description$ •At the end of your turn, if the Horde controls no permanents and has no cards in its library and graveyard. You have surived the game.
#
Oracle:Hand -5, Life +80\n If the Horde controls no permanents and has no cards in its library and graveyard. You will surive the game.\nCan you survive?

Where to put files:
add the files Zombie of the Horde and BtH-ZOMBIEv2 in a new folder where the /res/cardsfolder/cardsfolder.zip is and import the BtH-ZombiesTstDeck in DeckManager.
Attachments
Zombie of the Horde.txt
A creature for the Horde Format
(206 Bytes) Downloaded 80 times
BtH-ZOMBIESv2.txt
Custom Vanguard Avatar
(22.35 KiB) Downloaded 82 times
BtH-ZombiesTstDeck.txt
Test Deck
(1.14 KiB) Downloaded 83 times
Last edited by Xanxer on 19 Feb 2020, 20:22, edited 1 time in total.
Xanxer
 
Posts: 3
Joined: 11 Jun 2019, 23:09
Has thanked: 0 time
Been thanked: 1 time

Re: Play a Horde format using a custom Vanguard avatar

Postby rikimbo » 02 Feb 2020, 21:25

This is a really cool idea! It's clever how you solved the problem of having "token" cards in the deck by creating custom cards, and using an Avatar to script the Horde rules.

I used what you shared here to make a simpler version of your extensive set of rules/events, to codify just the base Horde rules from the Horde Magic wiki page. I'll share my version in this post.

Here's some of the changes I made from your version:
- Changed the Horde turn's upkeep trigger to create token copies of the revealed Horde cards, instead of putting them directly onto the battlefield. (I wanted them to still be tokens, mechanically.)
- Whenever a "Horde" card goes into the graveyard, exile it. (Avoid a pile of tokens in the graveyard pumping up Soulless One.)
- Made creatures the Horde controls have haste, attack each turn is able, and can't block.
- Changed win condition to count cards in library and creatures only (as opposed to permanents).
- Used "you can't lose" and "you can't win" conditions to blanket cover all of the reasons the horde could lose (0 life, poison counters, commander damage, etc).
- Tweaked the "setup turns" implementation. Horde skips its first two turns. If the Horde goes first, it ends the turn immediately. (Not perfect... Means as the player you always want to go 2nd to get the extra card draw.)
- Made Horde cards for 2/2 Zombie token and 5/5 Zombie Giant token. Slightly different names than yours, and set to "no cost" for mana cost.
- Added a dummy Survivor Avatar that has no abilities.
- Created an edition file for the Horde avatars and tokens to make setting pictures easier (Horde.txt).

Archive contains the following files:
- HordeAvatar.txt, HordeZombie22.txt, HordeZombieGiant55.txt, SurvivorAvatar.txt: Card scripts to be placed in a folder alongside cardsfolder.zip.
- Horde.txt: Edition file. Goes in res/editions.
- Zombie Horde Original.dck: Zombie Horde deck from the original QuetSpeculation.com article. Place in decks/constructed.
Attachments
riks_zombie_horde.zip
(3.59 KiB) Downloaded 72 times
User avatar
rikimbo
 
Posts: 43
Joined: 25 Mar 2014, 14:15
Location: Winnipeg
Has thanked: 10 times
Been thanked: 4 times

Re:UPDATE_Play a Horde Magic frmt using a custom Vanguard av

Postby Xanxer » 19 Feb 2020, 04:43

Hello all
I've noticed some cards weren't recognized by the Ai and had been misspelled.
about 14 Horde creatures or so and while updating them I have made a another game that involves ricksHordeMagic rules and Planeswalkers coming from the Hordes sideboard.

Inspired by a Mk survival tower feel and using Planeswalkers as the "opponents" in addition to having ricks Horde Magic rules. Calling it "Hunt of the Planeswalkers Horde"
You utilize the side board as a sort of "tower" that can have up to 193 different Planeswalkers that at the start of the game a Planeswalker is randomly chosen from the sideboard and put onto the battlerfield. Whenever a Planewalker the Horde controls leave the battlefield or dies another one will be randomly chosen from the Hordes side board and put onto the Hordes battlefield.

A test deck I used was just adding 5 liliana to the Original Zombie Horde Magic deck.

In this game I've added to the win condition
to ricksHordeMagic rules to include:
if Horde has a Planeswalker in its SideBorde: the Horde cannot win.
and
if Horde has noPlanewalkers in its SideBoard: opponent wins the game("You Have Survived the Game")

Both ricksHordeMagic and "Hunt of the Planeswalkers Horde" are included in the folder as separate game files.

File Locations:
Put Horde folder in /cardsfolder/horde
the same folder that has the cardsfolder.zip
horde.txt file within the /editions/horde.txt
Attachments
ricksZomnbiehordeMagicPlusMoreCreatures_Update.zip
14 horde creatures update
"HuntofThePlanewalkersHorde"
(177.12 KiB) Downloaded 23 times
Xanxer
 
Posts: 3
Joined: 11 Jun 2019, 23:09
Has thanked: 0 time
Been thanked: 1 time


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 7 guests


Who is online

In total there are 7 users online :: 0 registered, 0 hidden and 7 guests (based on users active over the past 10 minutes)
Most users ever online was 1371 on 09 Feb 2020, 16:22

Users browsing this forum: No registered users and 7 guests

Login Form