View Full Version : Diplomacy-Like Trigger Problem
tomduo
12-06-2004, 12:07 PM
Ok, I am making a diplomacy map, but I am having trouble with a hero trigger.
Basically, if one commands two capitals that make a firebat hero, the game either freaks out and makes one and does a lil error message for the other, or it makes 2 heros instead of just one.
I want it to be like the diplomacy maps, where it will make one hero, but if you're massing troops, then it will kick out two heros randomly.
My string for the trigger is:
Conditions
Current Player commands at least 1 firebat
Current Player commands at least 1 building in Zone One
Foes command at most 0 buildings in Zone One
Allies command at most 0 buildings in Zone One
Action
Center *special location* on Firebat anywhere
Remove Firebat at *special location*
Create Firebat Hero at *special location*
Perserve Trigger
Hawthorne
12-06-2004, 4:06 PM
Now that I'm aware of switches I can explain:
Conditions:
Switch 1 is cleared
Switch 2 is set
Actions:
bla bla make 1 unit bla bla
Preserve trigger
Conditions:
Switch 1 is set
Switch 2 is cleared
Actions:
mass attack ...
make 2 units ...
preserve trigger
Simply it's like you've got 2 options,if oyu mass attack you get 2 units but when you don't attack you'll get 1 firebat.
That's about it....
tomduo
12-06-2004, 7:29 PM
Now that I'm aware of switches I can explain:
Conditions:
Switch 1 is cleared
Switch 2 is set
Actions:
bla bla make 1 unit bla bla
Preserve trigger
Conditions:
Switch 1 is set
Switch 2 is cleared
Actions:
mass attack ...
make 2 units ...
preserve trigger
Simply it's like you've got 2 options,if oyu mass attack you get 2 units but when you don't attack you'll get 1 firebat.
That's about it....Um... what? That isn't quite clear, and how does that help me, exactly?
IceFlare
12-06-2004, 8:07 PM
I am going to refer to Diplo Gold since its the most popular and most played diplo map. When the creator, GgG Criminal created it, he randomly selected the hero Terran ghosts in a specefic order. Im not sure but through past experiences, the Swiss rifleman was the best, it was Alexei Stukov. So if you controlled Soviet and Swiss, you would get the Swiss Rifleman since it was bettre than the Soviet rifleman, I think but Im not sure.
tomduo
12-06-2004, 8:31 PM
Yeah, how do you do that? I want it to be like diplo gold. I dun wanna unprotect the map, since it's wrong... And I've tried all yesterday to get the trigger right.
IceFlare
12-06-2004, 8:59 PM
just so have it that if u control the country with the best ghost/unit, create that one only.
tomduo
12-06-2004, 10:32 PM
o.o
How would I do that? An override switch? (gets what you mean, but unsure on how to impliment it)
IceFlare
12-06-2004, 11:12 PM
Command 0 ??? at Swiss
Command 1 ??? at Soviet
Command 0 ??? at Turkey
Command 0 ??? at austral
Create Soviet
Command 1 ??? at Swiss
Command 1 ??? at Soviet
Command 1 ??? at Turkey
Command 1 ??? at Austria
Create Swiss
Im doing it in this order because Im pretty sure in diplo the order of best ghosts is swiss, soviet, austria, turkey. And now u just figure out all the possible variables
tomduo
12-07-2004, 12:12 AM
I'm still not getting what the trigger would look like.
Hawthorne
12-07-2004, 5:07 AM
Tomduo here's the best I can make:
Conditions:
Switch 1 is set (set=true or in your case not mass attacking)
Actions
Create 1 Swiss Rifleman at "middle" every second
Preserve trigger
Conditions:
Switch 1 is cleared(cleared=false or in oyur case "player is mass attacking")
Actions:
Create 2 swiss riflemat at "middle" every 1 second(1000 miliseconds)
Preserve trigger
(I think it should be something like this but I'm not 100% shure)
IceFlare
12-07-2004, 8:29 AM
Theres no mass attack in diplo though. Ill try and explain thru words. Lets assume the rank of ghosts from best to worst is
Swiss
Soviet
Austria
Turkey
So if you command 0 soviet, 0 swiss but u control 1 austra and 1 turkey, then create 1 austrian rifleman @ austria because Austrian are better than turkey. If you command 0 swiss, 1 soviet, 1 austria, 1 turkey, then create 1 soviet because soviet is better than austria or turkey. If you command all the capitals with ghost specials, than create 1 swiss rifleman because swiss rifleman are the best.
tomduo
12-07-2004, 3:33 PM
Why would a diplomacy style map have a mass attack trigger? o.o
IceFlare
12-07-2004, 6:55 PM
It sure would come in handy wen ur syria and have amassed 400 rines.
tomduo
12-07-2004, 9:35 PM
yeah, but what if 100 are on the egyptian border as the Algierians get alwfully too armed. :p But to each his own.
Command 0 ??? at Swiss
Command 1 ??? at Soviet
Command 0 ??? at Turkey
Command 0 ??? at austral
Create Soviet
Command 1 ??? at Swiss
Command 1 ??? at Soviet
Command 1 ??? at Turkey
Command 1 ??? at Austria
Create Swiss
Im doing it in this order because Im pretty sure in diplo the order of best ghosts is swiss, soviet, austria, turkey. And now u just figure out all the possible variables
So if you command 0 soviet, 0 swiss but u control 1 austra and 1 turkey, then create 1 austrian rifleman @ austria because Austrian are better than turkey. If you command 0 swiss, 1 soviet, 1 austria, 1 turkey, then create 1 soviet because soviet is better than austria or turkey. If you command all the capitals with ghost specials, than create 1 swiss rifleman because swiss rifleman are the best.
Right, so what trigger string would do that, and thanks alot for the help. I am also trying to get in touch with the creators of the diplomacy maps, but I emailed the webmaster by accident ^^;
IceFlare
12-08-2004, 8:30 AM
Use the Bring condition.
tomduo
12-08-2004, 3:51 PM
Oki, lemme try it out. If it works, you shall be my hero XD
tomduo
12-08-2004, 11:55 PM
That didn't work. I just got more "Cannot place units" error >.<
IceFlare
12-09-2004, 8:27 AM
Then theres nothing I can do about it, theres too many units on ur map.
tomduo
12-09-2004, 2:22 PM
O.o I doubt there's too many units on the map. The total is only 974, most diplo maps double or triple that number.
The trigger string was the following:
Current player commands at least 1 building in Pydna (Greek Special)
Foes command at most 0 buildings in Pydna
Allies command at most 0 buildings in Pydna
Current player commands at least 1 building in Daskillion (Turkish special)
Foes command at most 0 buildings in Daskillion
Allies command at most 0 buildings in Daskillion
-
Center Greek special location on Firebat
Remove Firebat
Create Greek Hero Firebat
Now that would cause a Greek Hero firebat, but then the same error would come up.
Cannot place unit (4096, 4096) with the lil razz.
I also made a third trigger that added Memphis (Egyptian Capital) the same way Daskillion was added, and it just made the error come up twice.
IceFlare
12-09-2004, 4:16 PM
Current Player brings 1 building to Geneva (capital?)
Allies bring 0 building to Geneva
Enemies bring 0 building to Geneva
Current Player brings 1 building to Turkish capital
Allies bring 0 building to Turkish capital
Enemies bring 0 building to Turkish capital
Center Location 'Herotizer' on all rifleman at anywhere
Remove 1 Rifleman at Herotizer
Create 1 Swiss rifleman at herotizer
Preserve Trigger
tomduo
12-09-2004, 6:38 PM
yep, it don't work, try it yourself.
tomduo
12-12-2004, 2:16 PM
So no one can help?
MidnightGladius
12-12-2004, 2:25 PM
I don't see how you get the "Unplaceable Unit" warning, unless you did something really weird with the terran and locations (you are using a 1x1 location for the "Herotizer" location, right?).
EDIT: I tried it. It works...
IceFlare
12-12-2004, 4:13 PM
For the capitals make sure its a 4x4 location centered over the doodad. 8x8 for capitals I think and 4x4 for cities. Then just to be safe make the herotizer 2x2 since reavers cannot fit in a 1x1
Hawthorne
12-13-2004, 6:16 AM
By the way I have a side question I'd like to ask:
Does anyone know how the invisible bunker trick works 'cus all the maps I've got with it are protected and I can't view it...
tomduo
12-13-2004, 2:42 PM
I don't see how you get the "Unplaceable Unit" warning, unless you did something really weird with the terran and locations (you are using a 1x1 location for the "Herotizer" location, right?).
EDIT: I tried it. It works...
It doesn't work. I've tried it three seperate times. Wanna meet me on Bnet and see my map? All my Heros are 1x1 since I am not using reavers.
IceFlare
12-13-2004, 7:45 PM
If you want to herotize a ghost, you center location named 'herotizer' and then remove ghost and then create 1 hero ghost at herotizer
tomduo
12-20-2004, 4:40 PM
And that's fine, but what happens when you have 2 capitals that heroize the same unit?
IceFlare
12-20-2004, 7:59 PM
*sigh* its basically what I said in my past few posts. You have to select 1 hero class to be better than the other
tomduo
01-03-2005, 9:13 PM
Could you send me a map with a working trigger that does so then, so I can see what I did wrong? It doesn't have to be a real one, just a test one would work.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.