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
 
HomePortalCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | .
 

 Card scripts

View previous topic View next topic Go down 
AuthorMessage
ultrarotom




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

PostSubject: 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)
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
View user profile
StormWing0




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

PostSubject: 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. Razz

_________________
Own Archetypes being worked on: RoseHarpie, OrbLit, Crystal Elemental (No cards yet on the last one).

Current Hamachi Room that isn't full:
Name: StormWing120V3
Pass: 1234

Discord Channel: Instant Invite Let me know if this fails to work right.  If it fully works it'll replace the Hamachi above.

Keep in mind these below are just estimates and even if it says 100% it only means what is needed for the main dueling deck is done
RoseHarpie 50% finished but no code or images
OrbLit 80% finished some images but no code
Crystal Elemental 0% finished
Back to top Go down
View user profile
AoO

avatar


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

PostSubject: Re: Card scripts   Sun 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^^

_________________

Keep going, keep experiencing, keep learning AND: NEVER STOP!! >.<

Yugioh Custom Cards/ Decks/ Duels: https://www.youtube.com/channel/UCPil2ljKCm4HBhNT7wcNl-Q
Back to top Go down
View user profile
ultrarotom




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

PostSubject: Re: Card scripts   Sun May 18, 2014 11:44 pm

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





PostSubject: Re: Card scripts   

Back to top Go down
 

Card scripts

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

 Similar topics

-
» New Payment Method - Credit/Debit Card
» [Card Review Article] Card Sneak-a-Peek: Herald of Perfection
» Card Ruling at Diamond Dude?
» Yugioh card game
» Virtual Birthday Card for Gerry via gerardbutler.net

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