Paying mana on triggers?

For all your questions regarding Image Card Coding.
Please read the Image Posting Guideline & Index before posting in this forum.
Forum rules
DO NOT POST BUG REPORT IN THIS FORUM !!

Please read carefully the forum rules related to the card coding section : viewtopic.php?f=21&t=1545

All post will be edited to follow forum rules.
Locked
User avatar
Bas
Posts: 425
Joined: Sat Dec 26, 2015 10:55 pm
Location: Germany

Paying mana on triggers?

Post by Bas »

Hiho!

Currently working on getting some cards to work with my config.
Got some issues with extort and serene Guard, as I am not prompted to pay mana and the effect simply gets activated.
Codelines:
auto=@movedto(*|mystack):pay({WB}) life:-1 opponent && life:1 controller

Was wondering, could I force a menu with something like this, which asks the user to pay mana? I read here that triggers might not allow to pay mana (https://github.com/WagicProject/wagic/w ... 20triggers).

auto=@movedto(*|mystack):pay({WB}) life:-1 opponent && life:1 controller
auto=...what should I write for a cancel effect?

Hm...but kinda looks like this wont work anyways? Or got any other ideas?
Forums are down atm.

Please join the discord server in order to not miss stuff and be reachable:
https://discord.gg/JHK5pVaK5p

(You are not required to install the software, you can use it in a browser as well, albeit I recommend installing)
i-am-not-one
Posts: 304
Joined: Fri Dec 07, 2012 4:36 am

Re: Paying mana on triggers?

Post by i-am-not-one »

Bas I hate to be "That guy" but..

I don't have Serene Steward but I added Basilica Guards to my Black/White deck and they worked perfectly in 726.

Is there early cards, something like Blood Crypt from dissension? It has a pay life maybe it could work with mana?

or Abolish which has the other= as a way of paying for the card. Might be modified for your ends
User avatar
Bas
Posts: 425
Joined: Sat Dec 26, 2015 10:55 pm
Location: Germany

Re: Paying mana on triggers?

Post by Bas »

Yeah, but that is on cast, not on triggers. I want to do that dialogue when triggers happen.
E: viewtopic.php?p=96443#p96443
Having the same issue. This is the reason why I am wondering about such a workaround.
Forums are down atm.

Please join the discord server in order to not miss stuff and be reachable:
https://discord.gg/JHK5pVaK5p

(You are not required to install the software, you can use it in a browser as well, albeit I recommend installing)
i-am-not-one
Posts: 304
Joined: Fri Dec 07, 2012 4:36 am

Re: Paying mana on triggers?

Post by i-am-not-one »

Sorry you said extort so I just used the first card I found that used extort. (Basilica Guards) And it worked fine. I guess Serene Steward could be programmed based on this. Might be more difficult with your card codebase
User avatar
Bas
Posts: 425
Joined: Sat Dec 26, 2015 10:55 pm
Location: Germany

Re: Paying mana on triggers?

Post by Bas »

Can you post that Extort-code of yours nonetheless?
Did you watch out that you HAVE TO pay the mana in order to get the effect? Did a choice menu appear?
Forums are down atm.

Please join the discord server in order to not miss stuff and be reachable:
https://discord.gg/JHK5pVaK5p

(You are not required to install the software, you can use it in a browser as well, albeit I recommend installing)
i-am-not-one
Posts: 304
Joined: Fri Dec 07, 2012 4:36 am

Re: Paying mana on triggers?

Post by i-am-not-one »

My code is the same as yours.


Just after paying mana for Lillian Vess this choice menu appears.

[The extension jpg has been deactivated and can no longer be displayed.]

I chose life loss and the Pay the cost instructions is in top left

[The extension jpg has been deactivated and can no longer be displayed.]

I paid white mana and you can see he loses a life I gain a life

[The extension jpg has been deactivated and can no longer be displayed.]

If anyone is wondering I used persecute and won this game.
Locked