Page 1 of 1

TriggerController

PostPosted: 02 Apr 2012, 13:58
by Sloth
After much thought i brought myself to add this parameter for triggers.

What is it for?
It can be used for permanents with triggers like "When CARDNAME dies,..." or "When CARDNAME leaves the battlefield,...". Without this parameter the owner will control the ability (because the card is already in the graveyard when the trigger triggers).

Example:
| Open
Code: Select all
Name:Aven Fisher
ManaCost:3 U
Types:Creature Bird Soldier
Text:no text
PT:2/2
K:Flying
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.Self | OptionalDecider$ TriggeredCardController | TriggerController$ TriggeredCardController | Execute$ TrigDraw | TriggerDescription$ When CARDNAME is put into a graveyard from the battlefield, you may draw a card.
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 1
.

Why can't this be solved in a way that doesn't require a change of scripts?
While the triggers mentioned above all need this change, some triggers do not. For example "When CARDNAME is put into your graveyard from the battlefield,..." was implemented correctly and wouldn't work correctly anymore if the owner is not the controller.

What needs to be done?
I'm afraid all cards with "When CARDNAME dies,...", "When CARDNAME leaves the battlefield,..." and some similar triggers need to be changed. :-D

Re: TriggerController

PostPosted: 02 Apr 2012, 14:28
by moomarc
Thanks Sloth. As soon as I've got my RL work out the way I'll help convert these. I'll also be able to post the script by Squee for Sylvan Hierophant which suffered from the lack of this feature. You rock! :supz:

Re: TriggerController

PostPosted: 03 Apr 2012, 02:28
by jeffwadsworth
.Necrotic Plague comes to mind.

Re: TriggerController

PostPosted: 06 Jan 2017, 15:33
by vinnie
Ehy, this parameter is not documented:
http://www.slightlymagic.net/wiki/Forge_Trigger

Re: TriggerController

PostPosted: 06 Jan 2017, 15:46
by friarsol
vinnie wrote:Ehy, this parameter is not documented:
http://www.slightlymagic.net/wiki/Forge_Trigger
The great thing about Wikis is that anyone is able to fix things like that.

Re: TriggerController

PostPosted: 06 Jan 2017, 16:57
by vinnie
Yep but my english and even more my knowledge of card script is to low, I am an user not a developer