It is currently 29 Oct 2025, 22:30
   
Text Size

Can remove some steps

Post MTG Forge Related Programming Questions Here

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

Can remove some steps

Postby Max mtg » 02 Jun 2013, 00:30

With new phase loop we can remove COMBAT_DECLARE_ATTACKERS_INSTANT_ABILITY and COMBAT_DECLARE_BLOCKERS_INSTANT_ABILITY steps.
Turn-based actions will be executed from onPhaseBegin, and then after triggers are ordered and put on stack the system will give each player priority.

Also, this will make scripting of Odric, Master Tactician easier.
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: Can remove some steps

Postby friarsol » 02 Jun 2013, 00:59

Ah nice. This will require certain cards to update their scripts. But definitely a good change.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Can remove some steps

Postby swordshine » 02 Jun 2013, 01:15

Nice!
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Can remove some steps

Postby Max mtg » 02 Jun 2013, 06:42

I have commited the code that removes the named steps - r21895
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: Can remove some steps

Postby swordshine » 02 Jun 2013, 07:52

Max mtg wrote:I have commited the code that removes the named steps - r21895
Shall we remove all the " - Play Instants and Abilities" in card scripts?
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Can remove some steps

Postby moomarc » 02 Jun 2013, 08:12

Going to have to remove them otherwise the condition checks will fail
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Can remove some steps

Postby Max mtg » 02 Jun 2013, 08:32

swordshine wrote:
Max mtg wrote:I have commited the code that removes the named steps - r21895
Shall we remove all the " - Play Instants and Abilities" in card scripts?
How do you find any of these in scripts?
There are no matches in *.txt files on "INSTANT_ABILITY" case-insensitive search
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: Can remove some steps

Postby swordshine » 02 Jun 2013, 08:37

Max mtg wrote:
swordshine wrote:
Max mtg wrote:I have commited the code that removes the named steps - r21895
Shall we remove all the " - Play Instants and Abilities" in card scripts?
How do you find any of these in scripts?
There are no matches in *.txt files on "INSTANT_ABILITY" case-insensitive search
Just search "Declare Attackers - Play Instants and Abilities" and "Declare Blockers - Play Instants and Abilities" in *.txt
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times


Return to Developer's Corner

Who is online

Users browsing this forum: Timothysow and 20 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 21 users online :: 1 registered, 0 hidden and 20 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: Timothysow and 20 guests

Login Form