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

Can remove some steps

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, friarsol, Blacksmith, KrazyTheFox, Agetian, 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: 7575
Joined: 15 May 2010, 04:20
Has thanked: 242 times
Been thanked: 956 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: 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