Create account / Log in

Order of processing events for a deck

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

Order of processing events for a deck

Postby msoong » September 11th, 2020, 11:11 pm

If I fire a event into a deck, (say the top 12 cards in the deck will receive that event), is it guaranteed by VASSAL that they will receive (and process) the events in order from top to bottom?

I have a game where preserving the card order in that deck is important, so want to make sure that the top card gets processes first, then the 2nd card, etc..

Many thanks in advance.
msoong
 
Posts: 52
Joined: November 18th, 2015, 12:26 am

Re: Order of processing events for a deck

Postby m3tan » September 13th, 2020, 1:21 am

Yes, assuming you set Re-shuffle to Never in the deck's properties. I'd add I had to learn through trial-and-error that the bottom piece of an At-Start Stack, as viewed in the Module Editor, is actually the top of a deck. I also found the UP and DOWN key commands, which sends a piece to the top or bottom of a deck to be very useful for the sort of deck operations you are contemplating.
User avatar
m3tan
 
Posts: 210
Joined: August 12th, 2018, 11:49 pm

Re: Order of processing events for a deck

Postby msoong » September 16th, 2020, 6:20 am

Many thanks
msoong
 
Posts: 52
Joined: November 18th, 2015, 12:26 am


Return to Module Design

Who is online

Users browsing this forum: Google [Bot] and 5 guests

cron