Create account / Log in

Sending additional commands when a card is discarded

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Sending additional commands when a card is discarded

Postby Xelvonar » May 2nd, 2018, 3:23 am

I am working on a module where layers can be applied to a card from a deck. I would like all these layers removed automatically when the card is discarded. Can someone give some quick tips or point me at a module that implements this effectively?
Xelvonar
 
Posts: 9
Joined: January 1st, 2009, 2:05 am

Re: Sending additional commands when a card is discarded

Postby DrNostromo » May 2nd, 2018, 5:37 pm

By removed, I'm assuming you mean the layers should be reset.

If that's the case, the Layer traits has a reset command (unless you're having it follow an Expression). If it does have an option for a reset command, I would imagine you could use the same command you're using to discard the card.

If you are right-clicking a card to discard it, then apply the Discard menu command to a Trigger Action and have it send a command to the Layers to reset and another command to discard it.
User avatar
DrNostromo
 
Posts: 969
Joined: December 21st, 2007, 3:54 am
Location: Wine Country, Cal. USA

Re: Sending additional commands when a card is discarded

Postby Xelvonar » May 2nd, 2018, 8:50 pm

Perfect. That's exactly what I needed to know.
Xelvonar
 
Posts: 9
Joined: January 1st, 2009, 2:05 am


Return to Module Design

Who is online

Users browsing this forum: No registered users and 1 guest