It is currently 29 Oct 2025, 21:50
   
Text Size

The doctor is in

Post MTG Forge Related Programming Questions Here

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

The doctor is in

Postby Hellfish » 07 Jun 2013, 06:59

I just made a Bad Moon pump blue creatures instead of black using a slightly incorrect but working Trait Doctoring...Oh yeah.

I can't create a branch for it til work's over but in the meantime I can do research :) Keyword handling will need to be altered for keywords that contain card types, basic land types or colors to match even if thatext is changed.Are there any such keywords outside of -walk/protection?

It's looking like only valids(done?), keywords and a couple of AF's need changing to begin with before getting to mucking with spell text.

Oh, and when all is said and done this should all work as a StaticAbility. It currently doesn't because debug.
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
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: The doctor is in

Postby swordshine » 07 Jun 2013, 09:12

Wow! Glad to hear we are implementing the last card of RTR block. =D>
The other keywords containing colors are:
K:CantBeBlockedBy Creature.Red (Barrenton Cragtreads,Sacred Knight)
K:Enchant red or green creature (Controlled Instincts,Mind Harness)
K:CARDNAME can't be blocked by red creatures.(Elder Spawn,Fylamarid)
K:CARDNAME can't be the target of red spells or abilities from red sources.(Suq'Ata Firewalker)
K:Permanents don't untap during their controllers' untap steps:Creature.Red(Wrath of Marit Lage)
K:CantBlock Creature.Black(Gibbering Hyenas,Orcish Veteran)
K:CARDNAME can't be the target of black spells.(Karplusan Strider)
K:CARDNAME can't attack unless defending player controls a blue permanent.(Whimwader)
and cost in the keyword K:Flashback tapXType<3/Creature.White/white creature> (Battle Screech,Hundred-Talon Strike,Prismatic Strands,Veil of Secrecy)

basic land types:
K:CARDNAME enters the battlefield tapped unless you control a Mountain or a Plains.(Clifftop Retreat)
K:TypeCycling:Plains:2(Eternal Dragon)
K:Enchant Plains(Genju of the Fields)
K:CARDNAME can't attack unless defending player controls an Island.(Armored Galleon)
K:Permanents don't untap during their controllers' untap steps:Island(Choke)

keyword with cost, K:Morph:Return<2/Island>(Fathom Seer,Walk the Aeons)
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: The doctor is in

Postby Hellfish » 07 Jun 2013, 09:37

Thanks! It looks like most of those are handled by the changes to valids already :-D
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
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: The doctor is in

Postby timmermac » 07 Jun 2013, 12:47

Is it just me, or does this sound like we're a step closer to Magical Hack?
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: The doctor is in

Postby friarsol » 07 Jun 2013, 13:04

timmermac wrote:Is it just me, or does this sound like we're a step closer to Magical Hack?
Since Trait Doctor is a non-permanent combination of Magical Hack and Slight of Mind, adding this card should allow a bunch more.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: The doctor is in

Postby Hellfish » 07 Jun 2013, 17:55

Hmm, I thought we had a way to determine wether a spellability is intrinsic to a card or not?
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
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: The doctor is in

Postby Max mtg » 07 Jun 2013, 17:58

Which revision number?
Or is it just an announce?
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: The doctor is in

Postby Hellfish » 07 Jun 2013, 18:02

I will create a branch either when I get an interaction worked out (the fact that granted abilities and keywords shouldn't get their text replaced) or when I turn in for the night. Either way I'll post here. :)

EDIT:They *shouldn't* get their text replaced.Derp.
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
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: The doctor is in

Postby Hellfish » 07 Jun 2013, 21:27

Alright, err, I have *attempted* a branch but I don't know if it went through alright, net's really weird about it. Try it out and see :P *crosses fingers*
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
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: The doctor is in

Postby Max mtg » 07 Jun 2013, 23:07

looks like you've added only the changed files into the branch.

I've seen a fourth parameter to isValid(...) and that makes me upset. I am totally confused with all that intrinsic (wish I've spelled the word correctly) and external abilities, and failed to understand how it works.
If it was the moment of initial design I would never keep any abilities granted by other (external) static abilities on the same card.

It looks like I can't be of any help (or just welcome the changes) - ok, we'll clean it up later... probably.
It also looks like I need to write Forge code less and breath fresh air more, so I'd better take a vacation for the next week.
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: The doctor is in

Postby Hellfish » 08 Jun 2013, 08:49

Well, damn it, that didn't work... Try 2 sometime this weekend hopefully.

EDIT: OK, Change of plans, Will introduce IC ardTrait wich will be implemented by triggers, replacementseffetcts, spellabilities, keywords (they will be turned into objects) and expose methods that returns if the trait is intrinsic and its sourcecard. Traits will then pass themselves instead of a card and a player into isValid.This preserves previous functionality while giving text replacement what it needs and avoids cluttering
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
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 21 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form