Who is planning to do what?
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
62 posts
• Page 2 of 5 • 1, 2, 3, 4, 5
Re: Who is planning to do what?
by Max mtg » 15 Sep 2011, 12:07
these are not bosses - otherwise they would be avaliable once every N battles without a possibility to skip them
Mission - maybe. Will be especially good when you have objectives like 'win duel without using any instants in 10 turn'
I like 'challenges' most.
I also think that my next assignment will be those challenges improvement - to be able to setup the whole battle with needed restrictions to get challenges like "here's the table, win in 1 turn" as it was in DotP 2010
However, I'll have to wait Doublestrike to commit his changes to quest challenges, since he is working on QuestAssignment as well.
Mission - maybe. Will be especially good when you have objectives like 'win duel without using any instants in 10 turn'
I like 'challenges' most.
I also think that my next assignment will be those challenges improvement - to be able to setup the whole battle with needed restrictions to get challenges like "here's the table, win in 1 turn" as it was in DotP 2010
However, I'll have to wait Doublestrike to commit his changes to quest challenges, since he is working on QuestAssignment as well.
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: Who is planning to do what?
by Sloth » 15 Sep 2011, 12:54
Future feature?Max mtg wrote:these are not bosses - otherwise they would be avaliable once every N battles without a possibility to skip them
Yes, 'challenges' sounds good.Max mtg wrote:Mission - maybe. Will be especially good when you have objectives like 'win duel without using any instants in 10 turn'
I like 'challenges' most.
This sounds like the Puzzle mode we got lots of requests for. We can incorporate it into (but not exclusively) the quest mode by giving out some prices the first time a riddle is solved.Max mtg wrote:I also think that my next assignment will be those challenges improvement - to be able to setup the whole battle with needed restrictions to get challenges like "here's the table, win in 1 turn" as it was in DotP 2010
It should be made clear though, whether the player plays with his own deck or everything is set.
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Who is planning to do what?
by Max mtg » 15 Sep 2011, 13:14
Oh, really? Is that the puzzle mode? very well then. 
After implementing the mechanics I think both options will be possible: start with everything set up as well as use your own deck to meet some conditions during the challenge.
But let me write the code first.
After implementing the mechanics I think both options will be possible: start with everything set up as well as use your own deck to meet some conditions during the challenge.
But let me write the code first.
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: Who is planning to do what?
by Doublestrike » 16 Sep 2011, 00:19
Challenges it is, then. That renaming will have to wait a bit for a future commit, since there's other priorities at the moment.
@Max - when you have a look at the architecture when my commit finally happens, puzzle mode should be easy to integrate. Will talk later.
Am planning to commit in about 10 hours after work. Have to fix a few errors, and who knows what will pop up, but hoping all is OK.
@Max - when you have a look at the architecture when my commit finally happens, puzzle mode should be easy to integrate. Will talk later.
Am planning to commit in about 10 hours after work. Have to fix a few errors, and who knows what will pop up, but hoping all is OK.
---
A joke is a very serious thing.
A joke is a very serious thing.
-

Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
Re: Who is planning to do what?
by friarsol » 16 Sep 2011, 02:01
Right click, Refactor, Rename. All done!Doublestrike wrote:Challenges it is, then. That renaming will have to wait a bit for a future commit, since there's other priorities at the moment.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Who is planning to do what?
by Doublestrike » 16 Sep 2011, 03:05
Would work but there's some variable names that use "quest" or "qq" or something.friarsol wrote:Right click, Refactor, Rename. All done!
---
A joke is a very serious thing.
A joke is a very serious thing.
-

Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
Re: Who is planning to do what?
by Hellfish » 19 Sep 2011, 16:37
Starting to work on the Haunt keyword now, unless anyone objects with their own plans/already made progress.
EDIT:Initial commit done! Couldn't do Orzhov Pontiff for the same reasons we can't do the NPH Exarchs but otherwise got all Haunt cards working.
EDIT:Initial commit done! Couldn't do Orzhov Pontiff for the same reasons we can't do the NPH Exarchs but otherwise got all Haunt cards working.
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
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
-

Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Who is planning to do what?
by Max mtg » 20 Sep 2011, 17:35
I still cannot understand the whole mechanics for the spells pipeline, so I'll switch to deckbuilding. I would like to implement a special form for import: you copy-paste a deck as seen on some website to the left part of the form and see what forge has understood in a list on the right.
If a deck is well-recognized, player hits accept, otherwise tries to correct the text or enter cards manually (by selecting them from a list)
If a deck is well-recognized, player hits accept, otherwise tries to correct the text or enter cards manually (by selecting them from a list)
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: Who is planning to do what?
by friarsol » 20 Sep 2011, 19:15
Hellfish, I don't think the Haunting card needs to be a creature when it dies to haunt things. http://wiki.mtgsalvation.com/article/HauntHellfish wrote:Starting to work on the Haunt keyword now, unless anyone objects with their own plans/already made progress.![]()
EDIT:Initial commit done! Couldn't do Orzhov Pontiff for the same reasons we can't do the NPH Exarchs but otherwise got all Haunt cards working.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Who is planning to do what?
by Sloth » 20 Sep 2011, 19:37
@Hellfish: I've looked at your Radiance code and it seems that the spells target all the cards (not just the first) which is not correct. The whole implementation is not necessary anyway, Cleansing Beam was already scripted:
- | Open
- Code: Select all
Name:Cleansing Beam
ManaCost:4 R
Types:Instant
Text:no text
A:SP$ DealDamage | Cost$ 4 R | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumDmg$ 2 | SubAbility$ SVar=DBDamageAll | RememberTargets$ True | ForgetOtherTargets$ True | SpellDescription$ Radiance - CARDNAME deals 2 damage to target creature and each other creature that shares a color with it.
SVar:DBDamageAll:DB$DamageAll | NumDmg$ 2 | ValidCards$ Remembered.Creature+Other+SharesColorWith | SubAbility$ DBCleanup
SVar:DBCleanup:DB$Cleanup | ClearRemembered$ True
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/cleansing_beam.jpg
SetInfo:RAV|Uncommon|http://magiccards.info/scans/en/rav/118.jpg
SetInfo:COM|Uncommon|http://magiccards.info/scans/en/cmd/116.jpg
Oracle:Radiance - Cleansing Beam deals 2 damage to target creature and each other creature that shares a color with it.
End
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Who is planning to do what?
by Hellfish » 20 Sep 2011, 20:21
@Sol, if you're referring to the comment in the postFactoryKeywords Haunt-block Saying "First, create trigger that runs when the haunter dies (if it's a creature)", that's just poorly worded. I meant to say "(if it's a creature with haunt as opposed the instants/sorceries with haunts)". The Instants/Sorceries don't get that trigger. So if the Haunting creature gets turned into an enchantment or whatever and then go to the graveyard the trigger will still go off. 
@Sloth Cleansing Beam, Leave No Trace & Wojek Embermage work,yes but they're such kludgy workarounds, IMHO. Much better to just specify a parameter in the first ability.The targeting bit is my mistake, will fix ASAP:
EDIT:Actually, the targeting bit is correct already. The "Radiated" cards (Cards not targeted but sharing a color with the target) are not targeted as much as added to the list of targets after the fact. You can test this with a deck with Phantasmal Dragon,another blue creature and Wojek Siren. Cast Wojek Siren on the other blue creature and Phantasmal Dragon correctly gets +1/+1 without being sacrificed.
@Sloth Cleansing Beam, Leave No Trace & Wojek Embermage work,yes but they're such kludgy workarounds, IMHO. Much better to just specify a parameter in the first ability.The targeting bit is my mistake, will fix ASAP:
EDIT:Actually, the targeting bit is correct already. The "Radiated" cards (Cards not targeted but sharing a color with the target) are not targeted as much as added to the list of targets after the fact. You can test this with a deck with Phantasmal Dragon,another blue creature and Wojek Siren. Cast Wojek Siren on the other blue creature and Phantasmal Dragon correctly gets +1/+1 without being sacrificed.
Last edited by Hellfish on 20 Sep 2011, 20:29, edited 1 time in total.
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
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
-

Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Who is planning to do what?
by friarsol » 20 Sep 2011, 20:27
Perfect, I was just skimming the code and noticed the wording, so I wasn't sure if you were checking it or not. So it got me curious enough to look it up.Hellfish wrote:@Sol, if you're referring to the comment in the postFactoryKeywords Haunt-block Saying "First, create trigger that runs when the haunter dies (if it's a creature)", that's just poorly worded. I meant to say "(if it's a creature with haunt as opposed the instants/sorceries with haunts)". The Instants/Sorceries don't get that trigger. So if the Haunting creature gets turned into an enchantment or whatever and then go to the graveyard the trigger will still go off.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Who is planning to do what?
by Sloth » 20 Sep 2011, 20:41
But what if the first blue creature gets removed before Wojek Siren resolves, will it fizzle? What if Phantasmal Dragon has protection from white?Hellfish wrote:@Sloth Cleansing Beam, Leave No Trace & Wojek Embermage work,yes but they're such kludgy workarounds, IMHO. Much better to just specify a parameter in the first ability.The targeting bit is my mistake, will fix ASAP:
EDIT:Actually, the targeting bit is correct already. The "Radiated" cards (Cards not targeted but sharing a color with the target) are not targeted as much as added to the list of targets after the fact. You can test this with a deck with Phantasmal Dragon,another blue creature and Wojek Siren. Cast Wojek Siren on the other blue creature and Phantasmal Dragon correctly gets +1/+1 without being sacrificed.
(and even if everything works now, you have to make everything future proof)
EDIT: I've just checked the rulings and you should even be able to change the color of the targeted card before the resolution of the radiance spell to change the effect. The implementation of Cleansing Beam is no workaround it's exactly what it should do.
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Who is planning to do what?
by Hellfish » 20 Sep 2011, 20:56
1.Yes, Wojek Siren will fizzle if the first blue creature in the example dies while Wojek Siren is on the stack. Try this: With two Phantasmal Dragon s out, cast Wojek Siren on one of them. The targeted Phantasmal Dragon will be sacrificed, Wojek Siren will fizzle and the other Phantasmal Dragon will not get a pump.
2.The radiated cards are grabbed as part of the resolution, so if the color of the target changes before then, the grabbed cards changes as well.
Thanks for examining this, a second set of eyes always help!
EDIT: Forgot to say, I didn't miss your Protection from White-point, I will delve deeper into it tomorrow morning though, damn weeknights..
2.The radiated cards are grabbed as part of the resolution, so if the color of the target changes before then, the grabbed cards changes as well.
Thanks for examining this, a second set of eyes always help!
EDIT: Forgot to say, I didn't miss your Protection from White-point, I will delve deeper into it tomorrow morning though, damn weeknights..
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
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
-

Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Who is planning to do what?
by Sloth » 20 Sep 2011, 21:03
Ah I see. This sounds much safer now. Thank you for the explanation Hellfish.Hellfish wrote:2.The radiated cards are grabbed as part of the resolution, so if the color of the target changes before then, the grabbed cards changes as well.
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
62 posts
• Page 2 of 5 • 1, 2, 3, 4, 5
Who is online
Users browsing this forum: No registered users and 80 guests