One side, multiple leaders, seperate recruits
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.
Go with the right-click method. You will have to put in the recruits manually, but you can do it fairly simply. This code should give a simple unit recruit dialog. I have not filtered it, however... 
I have not tested this code yet, but it should work.
Code: Select all
[event]
name=start
[set_menu_item]
id=recruit
description= _ "Recruit Special"
[command]
[message]
speaker=narrator
message= _ "Pick a unit to recruit..."
[option]
message= _ "Merman Hunter"
[command]
[unit]
type=Merman Hunter
x,y=$x1,$y1
[/unit]
[gold]
amount=-16
side=$side_number
[/gold]
[/command]
[/option]
[option]
message= _ "Merman Fighter"
[command]
[unit]
type=Merman Fighter
x,y=$x1,$y1
[/unit]
[gold]
amount=-15
side=$side_number
[/gold]
[/command]
[/option]
[/message]
[/command]
[/set_menu_item]
[/event]


-
- Posts: 676
- Joined: July 20th, 2006, 4:45 pm
- Location: Germany
It's possible, and should be (fairly) easy, if you're willing to ignore the corner case of having both leaders on a keep at the same time. If you're not, well, it gets rather more difficult...
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
And I hate stupid people.
The World of Orbivm