YGOPRO Forum

Welcome Guest! To enable all features please try to register or login.
Options
Go to last post Go to first unread
DM999  
#1 Posted : Thursday, May 28, 2020 2:44:09 AM(UTC)
DM999

Rank: Newbie

Joined: 12/1/2015(UTC)
Posts: 26

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
I was making a custom card to shuffle my opponent's cards into their deck based on the number of cards of a specific type I control, but when I tried to use the effect in-game, it returned my opponent's cards to the top of my deck instead of shuffling their cards into their deck. It's probably a simple problem with the target and operation in the lua script, but I didn't know which part to fix. Can someone find out which part is wrong? Here's what it currently looks like:
Hippocampus1901  
#2 Posted : Tuesday, June 02, 2020 1:02:01 AM(UTC)
Hippocampus1901

Rank: Advanced Member

Joined: 12/29/2015(UTC)
Posts: 175

Thanks: 11 times
Was thanked: 41 time(s) in 41 post(s)
Hi DM999,

If you really want to force a deck shuffle, you can insert the command "Duel.ShuffleDeck(1-tp)" inside your tdop function, on the line right below "Duel.SendtoDeck(rg,1,nil,REASON_EFFECT)". Hope that helps!
thanks 1 user thanked Hippocampus1901 for this useful post.
DM999  
#3 Posted : Saturday, June 06, 2020 11:52:50 PM(UTC)
DM999

Rank: Newbie

Joined: 12/1/2015(UTC)
Posts: 26

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: Hippocampus1901 Go to Quoted Post
Hi DM999,

If you really want to force a deck shuffle, you can insert the command "Duel.ShuffleDeck(1-tp)" inside your tdop function, on the line right below "Duel.SendtoDeck(rg,1,nil,REASON_EFFECT)". Hope that helps!


I figured out that was what was wrong some time ago, I looked up the effect for a similar card and copied that onto my script, but thanks anyways.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error