tag:blogger.com,1999:blog-889604442512373664.post1181692115678755601..comments2023-10-31T08:28:52.391-07:00Comments on Computer Programming and Magic: The Gathering: Static AbilitiesForgehttp://www.blogger.com/profile/15838286606081721333noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-889604442512373664.post-78391015777079514092009-01-01T21:05:00.000-08:002009-01-01T21:05:00.000-08:00HiThis is something I am totally having trouble wi...Hi<BR/><BR/>This is something I am totally having trouble with. State-based effects, such as creatures being destroyed when they have 0 toughness, are all meant to be checked any time the stack is empty. But effects from cards like Glorious Anthem, they are continuous. I can't think of a good time to update their effect, except after any event. <BR/><BR/>For spells and abilities I will use method calls; for triggered abilities I will use something like a mouseMotionListener, but for magicEvents; but for static abilities? I just don't know yet. I hope I can figure out a good way...<BR/><BR/>z.Unknownhttps://www.blogger.com/profile/12232327223837493042noreply@blogger.comtag:blogger.com,1999:blog-889604442512373664.post-29225140576098381362008-01-20T13:56:00.000-08:002008-01-20T13:56:00.000-08:00Hi!I know this is an older post of you, and maybe ...Hi!<BR/><BR/>I know this is an older post of you, and maybe you have got a better solution already. I also want to make a magic computer game, partly for playing, but mostly for the challenge.<BR/><BR/>my attemp on glorious anthem and so on would be to modify how p/t is determined. the p/t that is "printet" isn't modified. just when the opponent, the view or a state-based effect wants to know its power, all cards are asked if the want to modify the returned valueAnonymousnoreply@blogger.com