Page 58 of 141

Re: Card Development Questions

PostPosted: 16 Sep 2011, 20:26
by Iran
Phyrexian Unlife combos well with Melira, Sylvok Outcast (Added recently to SVN)

Re: Card Development Questions

PostPosted: 16 Sep 2011, 20:37
by Sloth
Iran wrote:Exists one Trigger that triggers when a I would lose the game? (Trying to script Lich's Mirror)
Lich's Mirror has a replacement ability, not a triggered one (it starts with "if..." and not with "when..." or "as...").

Re: Card Development Questions

PostPosted: 17 Sep 2011, 06:26
by Iran
About auras that enchant player. Is possible to script them in forge?
Cards like Wheel of Sun and Moon, Paradox Haze and the new cards Curse of the innistrad will by possible to script.

Thanks

Re: Card Development Questions

PostPosted: 17 Sep 2011, 13:51
by friarsol
Iran wrote:About auras that enchant player. Is possible to script them in forge?
Cards like Wheel of Sun and Moon, Paradox Haze and the new cards Curse of the innistrad will by possible to script.
Not quite yet. Although the Attach structure has a fair amount of code in place for this, there's still a few more strings to tie up for it to actually work. I'll take a look this weekend and see if I can add it.

Re: Card Development Questions

PostPosted: 17 Sep 2011, 21:24
by friarsol
Iran wrote:About auras that enchant player. Is possible to script them in forge?
Cards like Wheel of Sun and Moon, Paradox Haze and the new cards Curse of the innistrad will by possible to script.
Alright. I added support for this today. Lemme know if something seems weird with it.

Re: Card Development Questions

PostPosted: 18 Sep 2011, 22:37
by ArsenalNut
friarsol wrote:
Iran wrote:About auras that enchant player. Is possible to script them in forge?
Cards like Wheel of Sun and Moon, Paradox Haze and the new cards Curse of the innistrad will by possible to script.
Alright. I added support for this today. Lemme know if something seems weird with it.
I am trying to script Curse of the Bloody Tome from the Innistrad set. To get the phase trigger to work, I need a way to tell which player is enchanted. I added supported for "EnchantedPlayer" to matchesValid in Trigger.java. Is there another way to do this without adding code? If not, I think I also need to add support for "EnchantedPlayer" to getDefinedPlayers.

Re: Card Development Questions

PostPosted: 18 Sep 2011, 23:05
by friarsol
ArsenalNut wrote:
I am trying to script Curse of the Bloody Tome from the Innistrad set. To get the phase trigger to work, I need a way to tell which player is enchanted. I added supported for "EnchantedPlayer" to matchesValid in Trigger.java. Is there another way to do this without adding code? If not, I think I also need to add support for "EnchantedPlayer" to getDefinedPlayers.
It needs to be added. The only thing I did was enable support for Attaching to the Player, not interacting with the Attached player.

Re: Card Development Questions

PostPosted: 20 Sep 2011, 04:02
by ArsenalNut
friarsol wrote:
ArsenalNut wrote:
I am trying to script Curse of the Bloody Tome from the Innistrad set. To get the phase trigger to work, I need a way to tell which player is enchanted. I added supported for "EnchantedPlayer" to matchesValid in Trigger.java. Is there another way to do this without adding code? If not, I think I also need to add support for "EnchantedPlayer" to getDefinedPlayers.
It needs to be added. The only thing I did was enable support for Attaching to the Player, not interacting with the Attached player.
Any chance you could look at attachAuraOnIndirectEnterBattlefield? If this worked for player targets, I think I could script Bitterheart Witch.

Re: Card Development Questions

PostPosted: 20 Sep 2011, 14:58
by friarsol
ArsenalNut wrote:Any chance you could look at attachAuraOnIndirectEnterBattlefield? If this worked for player targets, I think I could script Bitterheart Witch.
Sure I'll take a look tonight. It looks the AI is mostly setup, so it's just about grabbing the right human choices before giving the dialog.

Re: Card Development Questions

PostPosted: 20 Sep 2011, 21:09
by Iran
Trying to script Wheel of Sun and Moon.

Wheel of Sun and Moon | Open
Name:Wheel of Sun and Moon
ManaCost:GW GW
Types:Enchantment Aura
Text:Enchant player
A:SP$ Attach | Cost$ GW GW | ValidTgts$ Player
T:Mode$ ChangesZone | Defined$ EnchantedPlayer | Origin$ Any | Destination$ Graveyard | ValidCard$ Card | Execute$ TrigLib | TriggerDescription$ If a card would be put into enchanted player's graveyard from anywhere, instead that card is revealed and put on the bottom of that player's library.
SVar:TrigLib:AB$ChangeZone | Cost$ 0 | Defined$ TriggeredTarget | Origin$ Graveyard | Destination$ Exile
End


This script is correct?

thanks

Re: Card Development Questions

PostPosted: 20 Sep 2011, 21:21
by friarsol
Well, Wheel of Sun and Moon isn't a trigger. It's a replacement ability. We don't really have scripted replacement abilities.

Re: Card Development Questions

PostPosted: 21 Sep 2011, 01:48
by Iran
friarsol wrote:Well, Wheel of Sun and Moon isn't a trigger. It's a replacement ability. We don't really have scripted replacement abilities.
Oh, it's true

thanks

Re: Card Development Questions

PostPosted: 22 Sep 2011, 14:17
by Iran
I see in forge not exists cards like Comet Storm, Conflagrate, Rock Slide, Magmatic Core, Meteor Shower, etc...
Cards that deals X damage divided as you choose among any number of target creatures (and/or players)

Exists any impediments to script then?

Thanks

Re: Card Development Questions

PostPosted: 22 Sep 2011, 14:56
by jeffwadsworth
Iran wrote:I see in forge not exists cards like Comet Storm, Conflagrate, Rock Slide, Magmatic Core, Meteor Shower, etc...
Cards that deals X damage divided as you choose among any number of target creatures (and/or players)

Exists any impediments to script then?

Thanks
Check out the java-coded Fireball. No way to script these just yet.

Re: Card Development Questions

PostPosted: 22 Sep 2011, 16:28
by friarsol
jeffwadsworth wrote:
Iran wrote:I see in forge not exists cards like Comet Storm, Conflagrate, Rock Slide, Magmatic Core, Meteor Shower, etc...
Cards that deals X damage divided as you choose among any number of target creatures (and/or players)

Exists any impediments to script then?

Thanks
Check out the java-coded Fireball. No way to script these just yet.
Fireball is actually a different scenario since the number is divided evenly. (I think Fireball might be actually scriptable)

The cards Iran is talking about are "Divide as you choose." We do have a few cards that "fake" this like Pyrotechnics, but this only works for a known amount of damage. It'd be nice to have a "Divided" parameter for Damage and for any other AF that uses it. (PutCounter I think, maybe Pump)