Re: Community Wad
Silumgar's Command could not count noncreature spells. And Harmless Offering did not work
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=109&t=15783
I coded Harmless Offering and it was working for me when I tested it. I will test it again tomorrow. Do you remember what type of permanent you tried to control and it didn't work? I tested it with creatures and it worked, but maybe you were trying another type?tmxk2012917 wrote:Silumgar's Command could not count noncreature spells. And Harmless Offering did not work
Demonic PactSplinterverse wrote:I coded Harmless Offering and it was working for me when I tested it. I will test it again tomorrow. Do you remember what type of permanent you tried to control and it didn't work? I tested it with creatures and it worked, but maybe you were trying another type?tmxk2012917 wrote:Silumgar's Command could not count noncreature spells. And Harmless Offering did not work
Player:Graveyard_GetNth(i) will get the card in slot i of Player's graveyard.Splinterverse wrote:Death Spark is missing it's check for cards above it in the graveyard. The AI is playing the card over and over without this check. I'm not sure how to check cards above/below or I would try to fix it. If there is a way to do it, that means we can also code Krovikan Horror.
local iCount = Player:Graveyard_Count()
for i=0,iCount-1 do
local oCard = Player:Graveyard_GetNth(i)
if oCard == EffectSource() and i > 0 then
-- Make sure it's not the top card.
-- Now, you know that card 'i' is this card, so card 'i-1' needs to be a creature.
local oCardAbove = Player:Graveyard_GetNth(i-1)
-- Now return whether it's a creautre or not.
return oCardAbove ~= nil and oCardAbove:GetCardType():Test(CARD_TYPE_CREATURE)
end
endI'm not sure what's wrong, but I'm 100% sure it's on your end. I just checked using incognito mode and by sending the link to a friend and they checked also. The art wads were updated in May, with the art update being updated just a few days ago (and will be again tonight, since I added a few art files and splinterverse did too). The core was updated today.nachonal986 wrote:Hey there, months that I didnt touch this excelent game, and Im a little confused...
All the arts show as last modified on feb 2016, and I didn't find de core file as before...
What happen?
local testedName = TriggerObject():GetCardName()
filter:Add(FE_CARDNAME, OP_NOT, testedName)
filter:Add(FE_POWER, OP_GREATER_THAN_OR_EQUAL_TO, testedPower)local oTriggerObject = TriggerObject()
if oTriggerObject ~= nil then
local oFilter = ClearFilter()
oFilter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
oFilter:Add(FE_CARD_INSTANCE, OP_NOT, oTriggerObject)
oFilter:Add(FE_POWER, OP_GREATER_THAN_OR_EQUAL_TO, oTriggerObject:GetCurrentPower())
if oFilter:Count() >= 1 then
local oPlayer = oTriggerObject:GetController()
oPlayer:BeginNewMultipleChoice()
oPlayer:AddMultipleChoiceAnswer("CARD_QUERY_SELVALA_HEART_OF_THE_WILDS_OPTION_DRAW")
oPlayer:AddMultipleChoiceAnswer("CARD_QUERY_SELVALA_HEART_OF_THE_WILDS_OPTION_DONT_DRAW")
oPlayer:AskMultipleChoiceQuestion("CARD_QUERY_SELVALA_HEART_OF_THE_WILDS", EffectSource())
end
end