Re: A guide to the AI of planeswalkers using ability factori
I believe Chandra Nalaar is scriptable now as well.
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=52&t=5545
Wouldn't we need a:friarsol wrote:I believe Chandra Nalaar is scriptable now as well.
It's scriptable. Take a look at Flame Wave.jeffwadsworth wrote:Wouldn't we need a:friarsol wrote:I believe Chandra Nalaar is scriptable now as well.
DB$ DamageAll | ValidCards$ Creature.TargetedPlayerCtrl
for the Ultimate?
Unless you know of another way?
I get an error when commenting out the Jace code. Here is a script that someone can test if they wish. Not tested at all due to that error.
What kind of error do you get?jeffwadsworth wrote:I get an error when commenting out the Jace code. Here is a script that someone can test if they wish. Not tested at all due to that error.
Hey Jeff, where's Tez? If you did any local work with Tez, maybe it's part of why you have an error with Jace 2.0?jeffwadsworth wrote:I will add it tomorrow unless someone else does it. Sleep beckons.slapshot5 wrote:and Tezzeret the Seeker
final ArrayList<Card> definedSources = AbilityFactory.getDefinedCards(saMe.getSourceCard(),
params.get("DamageSource"), saMe);
for (final Card source : definedSources){
for (final Object o : tgts) {
Yeah, I was looking at this. (Haven't done any code though.) Another trick is you can decide (per dragon) if it damages Player or gets redirected to the Planeswalker. We currently don't support this, so an EachDamage AF is at least as good as what we've got.friarsol wrote:3rd Ability: "Each Dragon creature you control deals damage" I don't believe this supported right now either. We do have Repentance scripted, so maybe if the DamageSource returns multiple Sources, we just loop through the tgts and have multiple assignings of damage.Actually this doesn't quite work since each Dragon is capable of doing different amount of damage. The damage would need to be recalculated per Source. This area would need some additional code. If it was written in a more general manner, Wave of Reckoning might be scriptable after this work is completed.
- Code: Select all
final ArrayList<Card> definedSources = AbilityFactory.getDefinedCards(saMe.getSourceCard(),
params.get("DamageSource"), saMe);
for (final Card source : definedSources){
for (final Object o : tgts) {
That sounds like a checkstyle error/warning not a compile error. I'd say just delete the whole block.jeffwadsworth wrote:The error is weird. Something about too many lines in the class, default is 150. Anyway, I will fool with it in the morning. Good to see the Tez script finally get added.
Uhh, No, I don't think so. I swear I copied something for that. But, I don't see what that would have been in a current search. I'll revert until it can be done.friarsol wrote:slapshot, did you make code changes in AF_Sacrifice to support the second ability? http://cardforge.org/bugz/view.php?id=543
I said up above it couldn't be scripted yet :-dslapshot5 wrote:Uhh, No, I don't think so. I swear I copied something for that. But, I don't see what that would have been in a current search. I'll revert until it can be done.friarsol wrote:slapshot, did you make code changes in AF_Sacrifice to support the second ability? http://cardforge.org/bugz/view.php?id=543
-slapshot5