Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use dummy in-deck sequence for MSG_SELECT_* #564

Merged
merged 5 commits into from
May 4, 2024

Conversation

purerosefallen
Copy link
Collaborator

An alternative of Fluorohydride/ygopro-scripts#2359

When players select card from the deck, the sequence of the deck would be fixed, not revealing the actual deck sequence that players should not see.

For cards like Kashtira Ogre that should reveal the deck sequence, a function Duel.PreserveSelectDeckSequence is added, to deal with those effects. An example is as follows.

Duel.PreserveSelectDeckSequence(true)
local g=Duel.GetDecktopGroup(tp,5):Select(tp,1,1,nil) -- this selects the card as the old fashion way, revealing the deck sequence
Duel.PreserveSelectDeckSequence(false)

@salix5
Copy link
Collaborator

salix5 commented Mar 3, 2024

564.zip

@purerosefallen
Copy link
Collaborator Author

564.zip

Fixed the seq of the faceup cards. Now it should work fine, as faceup deck cards would always be in the beginning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants