It is currently 21 Oct 2018, 23:00
   
Text Size

Help Writing a Card Script (Almost Working)

Post MTG Forge Related Programming Questions Here

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

Help Writing a Card Script (Almost Working)

Postby pongox » 18 Sep 2018, 22:29

Hi, I'm trying to piece together a script for the new, unreleased card Etrata, the Silencer. I've gotten it to be unblockable, exile a creature defending player controls when it hits, and put a counter on it (I'm using egg counters as the program had problems with hit counters.) I'm currently stuck on checking the number of creatures in exile with egg counters on them and using the number I get back from that to cause the defending player to lose the game. Any help would be appreciated. I attached the txt file below. Thank you!

(I know it doesn't shuffle itself in yet with my script, I was waiting until I got the loss trigger right for time purposes.)
Attachments
Save.txt
(1.44 KiB) Downloaded 6 times
pongox
 
Posts: 1
Joined: 18 Sep 2018, 22:22
Has thanked: 0 time
Been thanked: 0 time

Re: Help Writing a Card Script (Almost Working)

Postby austinio7116 » 24 Sep 2018, 20:15

I think it may be the Card.DefenderOwns - perhaps it should be DefenderCtrl - I cannot see any other script that contains DefenderOwns anywhere, so it may not be an option.
User avatar
austinio7116
 
Posts: 380
Joined: 10 Mar 2017, 11:59
Has thanked: 47 times
Been thanked: 123 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 4 guests


Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 4 guests

Login Form