On my map there are 3 teams. And each team has 4 players, 1 comp and 3 human. I need to know how to make it so all the human players can buy items from the computer's shops, but I tried once, and everyone from any team could buy from the shop, I just want players from that team to be able to shop from there.
To the second part, I need to figure out how to hire mercenaries, but not just one at a time. I want like a choice in the shop for "Mercenaries" and then when you click it, 5 or so mercenaries spawn just outside the shop.
And thirdly, I'm having the shops be upgradable. I also want to have a warning system everytime a team loses an outpost, which are where these shops are. But I have a thing where when an outpost is destroyed, any team may set up a new base there. How do I make it so whenever an outpost, be it new or from the start, is destroyed that it keeps telling people it was destroyed and not just the first time. If I'm making sense? Also, I tried a method, but would run into problems when someone upgrade's their outpost base, 'cause then it'll say the base was destroyed, if anyone catches how I did that.
I've come up with this trigger when I buy a unit from the shop:
Events Unit - A unit enters (Playable map area) Conditions (Unit-type of (Triggering unit)) Equal to Black Spider Actions Unit - Change ownership of (Last created unit) to Player 1 (Red) and Change color Unit - Create 2 Black Spider for Player 1 (Red) at (Position of (Triggering unit)) facing Default building facing degrees Unit - Create 2 Spitting Spider for Player 1 (Red) at (Position of (Triggering unit)) facing Default building facing degrees
But when I purchase the unit, the game seems to freeze. Anyone know what's wrong with this trigger? To me it seems perfect...but I guess not. Any thoughts?[/b]
Wow, I realize now that that trigger loops, and keeps making spiders, so that's why it freezes. Bleh. Well what I want to do is be able to choose to hire mercenaries from a base and then it doesn't give the group of mercenaries to you, it gives it to your computer ally. If you see that's what I tried to do. But now I find this trigger won't do at all, any help please?
Your loop problem is that you make the units and they appear on the map, so it makes infinite units and crashes the game.. I'm pretty sure you could do it by having the purchasing of the original unit as an event.
Not quite sure what kind of event buying a unit is considered, but you may want to try substituting generic unit events such as "A unit finishes training" or "A unit sells a unit" for "A unit enters playable map area".
If you still haven't figured out how to make the shops only be usable by allies, what you could try is going into the abilities, finding the "Select Hero" or "Select Unit" abilities and setting the targets allowed to friends only.
Your trigger is kinda strange way to do it but you can stoop the looping by: (First action)Trigger - Turn off this trigger . . . . (last action)Trigger - turn on this trigger
it doexs turn the trigger back on, but that i not a problem:
e.g.
a spider is bought -> your trigger is active and starts you turn the trigger off you spawn a spider -> nothing happens(the trigger is off) you reactivate the trigger
now, the next time a spider is bought it will trigger again - once