Page 1 of 3

Lose Trigger for my map

Posted: Wed Aug 13, 2008 3:08 pm
by eenan
Here is a lose trigger for humans in my Americas Zombie wars Map.
It wont work >.<
t_eve
------ t_uni Unit - A unit owned by Player 1 (Red) Dies
t_co
------ t_if((Number of units in (Units owned by Player 1 (Red) of type )) Equal to 0) and ((Number of units in (Units owned by Player 1 (Red) of type Hero)) Equal to 0)
t_act
------ t_gam Game - Defeat Player 1 (Red) with the message: Dah Zombies Ate ...
------ t_gam Game - Display to (All players) the text: Red has been killed...

This trigger is for all 10 humans.

Here is the one for zombies
t_eve
------ t_uni Unit - A unit owned by Player 11 (Dark Green) Dies
------ t_uni Unit - A unit owned by Player 12 (Brown) Dies
t_co
------ t_if ((Number of units in (Units owned by Player 11 (Dark Green) of type Infested City)) Equal to 0) and ((Number of units in (Units owned by Player 12 (Brown) of type Infested City)) Equal to 0)
t_act
------ t_gam Game - Defeat Player 11 (Dark Green) with the message: The humans 0wn3d yo...
------ t_gam Game - Defeat Player 12 (Brown) with the message: The humans 0wn3d yo...



Please help i would appreciate it


-eenan

Re: Lose Trigger for my map

Posted: Thu Aug 14, 2008 5:29 am
by 3ICE
eenan wrote:of type ))
You left it as empty or the name is a space...
Either way, [ /t] makes your trigger background white :)And if you can't get it to work, please upload the map so we can look at it.

--3ICE

EDIT:
Red lose trigger by 3ICE Red lose trigger by 3ICE
t_eve Events t_uni Unit - A unit owned by Player 1 (Red) Dies t_co Conditions t_if (Number of units in (Units owned by Player 1 (Red))) Equal to 0 t_act Actions t_gam Game - Defeat Player 1 (Red) with the message: You were eliminated.
DG and Brown lose trigger by 3ICE DG and Brown lose trigger by 3ICE
t_eve Events t_uni Unit - A unit owned by Player 11 (Dark Green) Dies t_uni Unit - A unit owned by Player 12 (Brown) Dies t_co Conditions t_if (Number of units in (Units owned by Player 11 (Dark Green))) Equal to 0 t_if (Number of units in (Units owned by Player 12 (Brown))) Equal to 0 t_act Actions t_gam Game - Defeat Player 11 (Dark Green) with the message: You and your ally were eliminated. t_gam Game - Defeat Player 12 (Brown) with the message: You and your ally were eliminated.

--3ICE

Re: Lose Trigger for my map

Posted: Thu Aug 14, 2008 7:51 am
by eenan
There is no reason to upload picture, this is exactly what it says. The blank spot (of type )) ) is my fault. . . i acidentaly made copy of the main building "city" and i deleted the extra.

Bad move.

i did not relize until it was to late, and now im going around asking friends to email me the 1.2 original verison.


but anyway, is there no way but the way you Put in to work?

Re: Lose Trigger for my map

Posted: Thu Aug 14, 2008 12:29 pm
by 3ICE
3ICE wrote:upload the map
I said map, not picture.

I could surely fix whatever the problem is, but I will have to see the map.

Re: Lose Trigger for my map

Posted: Thu Aug 14, 2008 2:03 pm
by eenan
Here is my map. Please also look at the Seige zombies stats. . . there attacks are not effective(dont do damge). Messed with dont undesrtand :( Thx 3ICE
Also i had arleady put you in credits b4 you offerd to look at XD.

-eenan

Americas Zombie Wars[ICE]1.2B.w3m
(174.52 KiB) Downloaded 1054 times

Re: Lose Trigger for my map

Posted: Thu Aug 14, 2008 4:16 pm
by 3ICE
Seige is spelled as Siege (Fix it in your signature and in "Seige zombie")
You left "Combat - Attack 1 Weapon Type" as "NONE", but it should be set to "Normal"

The trigger is bugged because you deleted the 'h004' custom unit, and forgot to update the conditions accordingly.
Simply re-doing those conditions will fix the problem.

--3ICE

EDIT: You also have to fix all Test triggers (Like "Test Copy 2 Copy 4")
The conditiont_if ((Attacked unit) is in (Units of type )) Equal to Truealso refers to the deleted 'h004' custom unit.

Re: Lose Trigger for my map

Posted: Thu Aug 14, 2008 4:19 pm
by eenan
I never had a cutsom unit called "h004". . .and if your talking about custom unit City, I know all the citys got deleted, i re-did and i had put htis trigger in before they were deleted, and had Tried the trigger before the city unit was deleted.


EDIT: And what about the Zombie Trigger? it doesnt work ethir. . .

Re: Lose Trigger for my map

Posted: Thu Aug 14, 2008 4:23 pm
by 3ICE
'h004' is a rawcode. To learn more about rawcodes, you would need to learn JASS.
The rawcode 'h004' was the custom-unit "City" which you deleted. All your triggers that had City in them became bugged, so now that you created a new city, you have to fix the triggers to use the new city in their conditions.

To see these rawcodes I keep talking about, hit CTRL+D in your object editor. You will see the rawcodes then. (To change back to real unit names, simply hit CTRL+D again)

EDIT: super-easy-fix for you here: Copy and paste the City custom unit once and it will fix all triggers.
EDIT2: Then of course you will have to replace all 'h00V' (the city you currently have in the world) with 'h004' (the city you deleted but your triggers still have it) in the map. To do this go to the main editor window and:
Advanced --> Replace Units...

EDIT3: Which zombie trigger? Please be more specific.

Re: Lose Trigger for my map

Posted: Thu Aug 14, 2008 4:27 pm
by eenan
Will having 2 units that are exactly the same mess everything up. . .?



and what . . .about . . . the . . .zomnbie triggere?!?

EDIT:
eenan wrote:Here is a lose trigger for humans in my Americas Zombie wars Map. . .
. . . Here is the one for zombies
t_eve
------ t_uni Unit - A unit owned by Player 11 (Dark Green) Dies
------ t_uni Unit - A unit owned by Player 12 (Brown) Dies
t_co
------ t_if ((Number of units in (Units owned by Player 11 (Dark Green) of type Infested City)) Equal to 0) and ((Number of units in (Units owned by Player 12 (Brown) of type Infested City)) Equal to 0)
t_act
------ t_gam Game - Defeat Player 11 (Dark Green) with the message: The humans 0wn3d yo...
------ t_gam Game - Defeat Player 12 (Brown) with the message: The humans 0wn3d yo...



Please help i would appreciate it


-eenan

Re: Lose Trigger for my map

Posted: Thu Aug 14, 2008 4:30 pm
by 3ICE
No, you can delete the 'h00V' custom-unit after you have replaced it with 'h004' in the world.

and:
3ICE wrote:EDIT3: Which zombie trigger? Please be more specific.
EDIT: of course you only need to do one of the two fixes!
Either { redo all triggers } or { recreate 'h004' and then replace 'h00V' with 'h004' }
Doing both will keep the problem as it was :D Doing one will fix all your City - related - problems