TGAP-Trixie
Member Title : Trixie does not even... Posts : 273 Join date : 2014-04-17
| Subject: Counter names Thu Oct 02, 2014 2:53 am | |
| I was copying a script for counters, so I used Cloudian Squall. I've gotten the first part of this effect, but the counters are still Fog counters. I'm trying to change the name to Balloon counters. Card effect and script (so far, only the first effect) are below. The part in italics is the problem. And the part in bold, I actually have no clue how that would be scripted , so I would really appreciate it if someone could help with that. - Text:
1 tuner + 1 or more non-tuner monsters When this card is synchro summoned, place 1 Balloon counter on every face-up monster your opponent controls. Monsters with Balloon counters can only attack other monsters with Balloon counters. This card gains 1,000 ATK and DEF for each Balloon counter on the field.
- Code:
- Code:
-
function c60000061.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) c:EnableReviveLimit() --counter local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_COUNTER) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e1:SetRange(LOCATION_MZONE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c60000061.condition) e1:SetOperation(c60000061.operation) c:RegisterEffect(e1) end function c60000061.condition(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO end function c60000061.operation(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) local tc=g:GetFirst() while tc do tc:AddCounter(0x19,1) tc=g:GetNext() end end
I'm assuming it has to do with the line tc:AddCounter(0x19,1) but i don't know how to make a new "counter archetype" to use for the script. |
|
TGAP-Trixie
Member Title : Trixie does not even... Posts : 273 Join date : 2014-04-17
| Subject: Re: Counter names Sun Oct 26, 2014 7:54 pm | |
| For anyone interested and doesn't already know, you can only edit this by editing strings.conf !counter 0x(X) Y Counter Type it in exactly like that, then change X and Y. X is the number you'd use for the script and Y is the name of the counter that'd show up in game. If you check strings.conf 0x19 is fog counter That takes care of that, but does anyone have any idea of how to script the "Monsters with Balloon counters can only attack other monsters with Balloon counters." bit? |
|