It is currently 11 Sep 2025, 22:27
   
Text Size

Auto accept/decline @Hellfish

Post MTG Forge Related Programming Questions Here

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

Auto accept/decline @Hellfish

Postby Forger » 18 Sep 2011, 14:55

Hi, I noticed you added this function in 10450, sounds great but how does it exactly work? Right clicking/middle mouse doesnt seem to do anything when one pops up. No context menu or anything.

*Added a context menu to the stack items of optional triggers that lets you specify wether to always accept them,always decline them or always ask(default). Just right click! (The choice you make resets at the start of each game)
Forger
 
Posts: 23
Joined: 20 Aug 2011, 21:21
Has thanked: 3 times
Been thanked: 1 time

Re: Auto accept/decline @Hellfish

Postby Hellfish » 18 Sep 2011, 15:17

Works fine for me. :S What card was the trigger from? Was the item on the stack marked with "(OPTIONAL)"?

There is a possibility that some hardcoded triggered optional abilities aren't marked to use this functionality as they should be.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: Auto accept/decline @Hellfish

Postby Forger » 18 Sep 2011, 16:37

Yes that was the case here, first card I tested it with Sylvan Library, but it indeed works with cards that show "(OPTIONAL)".

Thanks for the quick answer and implementing this in the first place!
Forger
 
Posts: 23
Joined: 20 Aug 2011, 21:21
Has thanked: 3 times
Been thanked: 1 time

Re: Auto accept/decline @Hellfish

Postby Hellfish » 18 Sep 2011, 16:44

No problem, I will take a look through our hardcoded triggers to fix this. :)

EDIT: My mind has completely gone, the system didn't cater to hardcoded triggers in the first place.. Nevertheless, I will attempt to fix this!

EDIT: Hardcoded triggers that can be converted to using Trigger objects should be no problem. Sylvan Library is fixed for instance.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 25 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 25 users online :: 0 registered, 0 hidden and 25 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 25 guests

Login Form