It is currently 07 Jul 2021, 14:47
   
Text Size

Trigger "NewGame"

Post MTG Forge Related Programming Questions Here

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

Trigger "NewGame"

Postby Max mtg » 17 Apr 2013, 05:03

Swordshine has added a new Trigger - TriggerNewGame.
http://svn.slightlymagic.net/websvn/rev ... &peg=21041

How do you think - can we replace all ocurrences of 'MayEffectFromOpeningHand' keyword with it?
Personally I like that trigger more than 'MayEffect....'
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Trigger "NewGame"

Postby friarsol » 17 Apr 2013, 13:06

http://magiccards.info/query?q=o%3A%22opening+hand%22

It would need to be tested, but especially the chancellor's have some funky things going on with themselves so I'm not sure how well it would work. These fake "triggers" would also need to be set as static, since they do not use the Stack. I also am not sure how the AI treats these may abilities, to see how they would react to them.
friarsol
Global Moderator
 
Posts: 7575
Joined: 15 May 2010, 04:20
Has thanked: 242 times
Been thanked: 956 times

Re: Trigger "NewGame"

Postby Max mtg » 17 Apr 2013, 13:35

Then these two methods to perform actions as the game starts have to be unified somehow, don't they?
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 14 guests


Who is online

In total there are 14 users online :: 0 registered, 0 hidden and 14 guests (based on users active over the past 10 minutes)
Most users ever online was 1922 on 07 Jun 2021, 06:01

Users browsing this forum: No registered users and 14 guests

Login Form