It is currently 16 Apr 2024, 16:27
   
Text Size

Help Writing a Card Script (Almost Working)

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, 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 182 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: 451
Joined: 10 Mar 2017, 11:59
Has thanked: 47 times
Been thanked: 169 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 78 guests


Who is online

In total there are 78 users online :: 0 registered, 0 hidden and 78 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 78 guests

Login Form