How to remove all of a side's recalls

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
H-Hour
Posts: 222
Joined: April 14th, 2010, 12:27 pm

How to remove all of a side's recalls

Post by H-Hour »

I'm working on a multiplayer campaign with two chapters. When the player finishes the first chapter and starts the second I'd like to clear all unit recalls except the leader units.

I thought I could do this with [unstore] and [kill] but it seems that [unstore] expects a specific unit ID. Is there a way to clear all of their recruits? Ideally, I'd like this to happen at the start of the first scenario of chapter two, so that the player doesn't see their units disappear at the end of chapter one.
User avatar
Ravana
Forum Moderator
Posts: 3009
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: How to remove all of a side's recalls

Post by Ravana »

Dont need to unstore them, just [kill].
H-Hour
Posts: 222
Joined: April 14th, 2010, 12:27 pm

Re: How to remove all of a side's recalls

Post by H-Hour »

Thanks! That was really much simpler than I expected.
Post Reply