New Era Duel Academy
We all have moved to

http://www.ygogen.com

Smile waiting you all there...

-RsS.YuGi
New Era Duel Academy
We all have moved to

http://www.ygogen.com

Smile waiting you all there...

-RsS.YuGi


New Era Duel Academy
 
HomeLatest imagesSearchRegisterLog in
Dueling Arenas
Battle Arena Rules
Shadow Arena Rules
Unlimited Arena Rules
Hunting Arena
BA Ranking
BA Ranking List
Latest topics
» test request
Need Help at LUA script Emptyby Rainbow Sorcer Wed Aug 21, 2013 3:15 pm

» PDA is back
Need Help at LUA script Emptyby DarkLove Thu Jul 11, 2013 4:22 am

» Lords Of Darkness ~¤The Era Of Destruction begins¤~
Need Help at LUA script Emptyby Unees Sun Jun 30, 2013 12:20 am

» Royal Knights archtype by gunsmaker [intro][WIP]
Need Help at LUA script Emptyby gunsmaker Sat Jun 29, 2013 11:57 pm

» test request ismenne 29/6/13 -- Results Up
Need Help at LUA script Emptyby Jakester390 Sat Jun 29, 2013 4:47 pm

» Just got here but still real life goes first
Need Help at LUA script Emptyby Rai-Jinn Sat Jun 29, 2013 1:03 pm

» Infernities Reborn: Lightsworn Vengeance
Need Help at LUA script Emptyby Unees Sat Jun 29, 2013 4:49 am

» MY FIRST YU-GI-OH DECK: “FEATHER GRID”
Need Help at LUA script Emptyby Guest Sat Jun 29, 2013 4:46 am

» Big Mess, Big decision
Need Help at LUA script Emptyby gunsmaker Sat Jun 29, 2013 3:18 am

» Daily Yugioh Related Quiz.
Need Help at LUA script Emptyby DoomTemplarKnight Fri Jun 28, 2013 10:41 pm

» Slifer Attendance.
Need Help at LUA script Emptyby Metagamereaper Fri Jun 28, 2013 9:36 pm

» Hello There
Need Help at LUA script Emptyby Icingsugar Fri Jun 28, 2013 5:40 pm

» PDA Main Shop [V2]
Need Help at LUA script Emptyby Guest Fri Jun 28, 2013 5:33 am

» No more time
Need Help at LUA script Emptyby Metagamereaper Fri Jun 28, 2013 2:24 am

» i bad mouthed (69) a member in this academy, please ban meh :'(
Need Help at LUA script Emptyby gunsmaker Thu Jun 27, 2013 10:28 pm

Statistics
We have 883 registered users
The newest registered user is crash3011

Our users have posted a total of 8495 messages in 659 subjects
Who is online?
In total there are 2 users online :: 0 Registered, 0 Hidden and 2 Guests

None

Most users ever online was 156 on Sat Apr 17, 2021 5:42 am

Share
 

 Need Help at LUA script

View previous topic View next topic Go down 
AuthorMessage
gunsmaker
War Manager

gunsmaker

War Manager

Posts : 356

Rank : 20


Need Help at LUA script Empty
PostSubject: Need Help at LUA script   Need Help at LUA script EmptyFri May 24, 2013 9:01 am

Please help at LUA script

script b4 edit:
has no errors, but the eff become too OP, it can add any card from deck to hand, so i fix the filter and it has the error.

script after fix:
it has error msg like Need Help at LUA script Lgt5f36

i got confused since i just change filter to thfilter and got error like that, if i change thfilter to filter, the eff cant activate.
Back to top Go down
Jakester390
Mod/Teacher

Jakester390

Mod/Teacher

Posts : 258

Age : 30

Rank : 0

Need Help at LUA script 2XQi5iR

Need Help at LUA script Empty
PostSubject: Re: Need Help at LUA script   Need Help at LUA script EmptyFri May 24, 2013 10:28 am

I believe I would be correct in assuming that you made the set code in the database 258?

The lua scripts use HEX rather than base 10, so in the filter rather than being 0x258, it should be 0x102.

Here is a fixed script, which I also did some cleaning up and compression on.
Spoiler:
(You had 3 filters doing the same thing, and one function that wasn't doing anything. The error was probably occurring because you wouldn't be able to select a search target, causing tc=Duel.GetFirstTarget() to pull a null value. I've also revised your script to be more accurate to Yugioh rules, as it no longer targets the card in the deck.)
Back to top Go down
gunsmaker
War Manager

gunsmaker

War Manager

Posts : 356

Rank : 20


Need Help at LUA script Empty
PostSubject: Re: Need Help at LUA script   Need Help at LUA script EmptyFri May 24, 2013 5:01 pm

firstly, thanks for helping
the 258 is the hex number of the archtype, that i put in #600,

i thought that one condition must have one filter, XD
and i've tried on your revised script, it has no errors, but it can banish anything to add "Grand Chasers" monster from deck, it must be banish only a spell, or maybe i should add another filter?
Need Help at LUA script Lgt757d
Back to top Go down
gunsmaker
War Manager

gunsmaker

War Manager

Posts : 356

Rank : 20


Need Help at LUA script Empty
PostSubject: Re: Need Help at LUA script   Need Help at LUA script EmptyFri May 24, 2013 5:14 pm

nvm, i fixed it,

before fix:
found that rmfilter is no longer exist, so i try to change it to costfilter and works fine without errors,

after fix:

and thanks for helping, maybe i'll ask again about the script, coz i still beginner at this, XD
Back to top Go down
Jakester390
Mod/Teacher

Jakester390

Mod/Teacher

Posts : 258

Age : 30

Rank : 0

Need Help at LUA script 2XQi5iR

Need Help at LUA script Empty
PostSubject: Re: Need Help at LUA script   Need Help at LUA script EmptyFri May 24, 2013 5:23 pm

Not a problem, I enjoy debugging, and I'd be happy to help. Learning to code this is mostly trial-and-error and copy-and-paste to begin with, but you gradually develop an internal dictionary for it. You seem to be doing fairly good though.
Back to top Go down
Sponsored content




Need Help at LUA script Empty
PostSubject: Re: Need Help at LUA script   Need Help at LUA script Empty

Back to top Go down
 

Need Help at LUA script

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

Permissions in this forum:You cannot reply to topics in this forum
New Era Duel Academy :: Academics And Others :: Off Topic-