ultrarotom
Member Title : merdaman Posts : 22 Join date : 2014-04-25
| Subject: Card scripts Sun May 18, 2014 3:13 pm | |
| So, people were giving me scripts like this: function cXXXXXXXX.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(XXXXXXXX,0)) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_BATTLE_DESTROYING) e1:SetCondition(cXXXXXXXX.reccon) e1:SetTarget(cXXXXXXXX.target) e1:SetOperation(cXXXXXXXX.activate) c:RegisterEffect(e1) end function cXXXXXXXX.reccon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local bc=c:GetBattleTarget() return c:IsRelateToBattle() and bc:IsLocation(LOCATION_GRAVE) end function cXXXXXXXX.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():GetFlagEffect(XXXXXXXX)==0 end e:GetHandler():RegisterFlagEffect(XXXXXXXX,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_DAMAGE,0,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,1-tp,1) end function cXXXXXXXX.activate(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if Duel.Draw(1-tp,1,REASON_EFFECT)==0 then return end local tc=Duel.GetOperatedGroup():GetFirst() Duel.ConfirmCards(tp,tc) end Duel.ShuffleHand(1-tp) endBut in my folder they all appear like this and when i try those that people give me they dont work. Look, how mine appear: http://prntscr.com/3kayelSo, how do i put my scripts to work and how do i do a c???????? file? |
|
StormWing0
Member Title : Over Creative Card Ideas Posts : 451 Join date : 2013-07-14 Age : 32 Location : Tacoma, WA
| Subject: Re: Card scripts Sun May 18, 2014 3:59 pm | |
| First you have to replace the XXXXXXX with the card's ID code. Next make sure the text file is saved as .lua and not .lua.txt or .txt. Turn on Show File extensions if you have to for checking. |
|
AoO
Member Title : Noob4ever Posts : 241 Join date : 2014-04-25 Location : I only know that it is dark :/
| Subject: Re: Card scripts Sun May 18, 2014 4:03 pm | |
| |
|
ultrarotom
Member Title : merdaman Posts : 22 Join date : 2014-04-25
| Subject: Re: Card scripts Sun May 18, 2014 11:44 pm | |
| Thanks, will try when i have time |
|
Sponsored content
| Subject: Re: Card scripts | |
| |
|