It is currently 30 Oct 2025, 20:11
   
Text Size

Trigger "NewGame"

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, 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: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 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 64 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 64 users online :: 0 registered, 0 hidden and 64 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 64 guests

Login Form