a place for all your custom card needs you can post scripts pics and request for card to be made also please donate to the funding for a new server made for custom card duels
 
HomePortalLatest imagesSearchRegisterLog in

Share
 

 Card scripts

View previous topic View next topic Go down 
AuthorMessage
ultrarotom




Member Title : merdaman
Posts : 22
Join date : 2014-04-25

Card - Card scripts Empty
PostSubject: Card scripts   Card - Card scripts Icon_minitimeSun 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)
end


But 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/3kayel

So, how do i put my scripts to work and how do i do a c???????? file?
Back to top Go down
StormWing0




Member Title : Over Creative Card Ideas
Posts : 451
Join date : 2013-07-14
Age : 32
Location : Tacoma, WA

Card - Card scripts Empty
PostSubject: Re: Card scripts   Card - Card scripts Icon_minitimeSun 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. Razz
Back to top Go down
AoO

AoO


Member Title : Noob4ever
Posts : 241
Join date : 2014-04-25
Location : I only know that it is dark :/

Card - Card scripts Empty
PostSubject: Re: Card scripts   Card - Card scripts Icon_minitimeSun May 18, 2014 4:03 pm

The windows editor is not the best programm to show script files. It would be better if you use lua.edit.
If you have a script you have to save it in the folder "scripts" and call it "cXXXXXXXX"
("XXXXXXXX" = ID of your card).

http://www.ygopro.co/Forum/tabid/95/g/posts/t/120/Adding-cards-to-YGOPro--Tutorial----Scripting-video-Added#post381

This link includes all programms you need (also lua.edit) + a tutorial how to add cards to ygopro or rather mackpro Wink
I recommend you to watch it, it will help you for sure^^
Back to top Go down
ultrarotom




Member Title : merdaman
Posts : 22
Join date : 2014-04-25

Card - Card scripts Empty
PostSubject: Re: Card scripts   Card - Card scripts Icon_minitimeSun May 18, 2014 11:44 pm

Thanks, will try when i have time
Back to top Go down
Sponsored content





Card - Card scripts Empty
PostSubject: Re: Card scripts   Card - Card scripts Icon_minitime

Back to top Go down
 

Card scripts

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Can somebody give me all the card scripts in Ygopro?
» Some Custom Card support for the Numeron archetype (images, no scripts)
» If Konami ever decided to build an archetype around an old card(s), which card(s) would you want it to be?
» Help with the scripts
» Devpro scripts

Permissions in this forum:You cannot reply to topics in this forum
Mackpro :: MackPro :: MackPro Discussion-