Lose Trigger for my map

Do you need World Editor help? Ask here!
Forum rules
Before making a new topic:
First, check if your question has already been answered in the Tutorials section.
If you didn't find a solution, use the search function.
If searching didn't help either, you can make a new topic.

Topic title & content:
You must use a descriptive title. (Help plz is not good) (Need help with Dialog buttons is good)
Go into much detail when posting. You should post attachments. Like screenshots of the problem, the map you are making, replays of the error. Or you could even make a screencast (video) of your problem and upload it here.

Spelling:
Grammar seems to be a serious problem amongst teenagers, so use a spell checker or you will get no love.
Read your posts twice, before pressing the reply button.
And do not use profanity. Chatspeak (y r u nub) and Leetspeak (1 C4N S33 H4X) are not welcome here either.

Only World Editor related questions are allowed here!
(Click for Battle.net help) (Click for World Editor help)
User avatar
eenan
Posts: 48
Joined: Tue Jul 08, 2008 9:43 pm
Realm: US East
Account: eenan
Location: Texas,USA

Lose Trigger for my map

Unread post 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
The King: PREPARE FOR THE SEIGE!
Cale'anon:Have you seen a little girl-
Prince: I'm Afraid now is not the time to indulge in your desires, brother.
Cale'anon: No, i'm not-
Prince: You are an amusingly odd fellow, Cale'anon, my hope that the vulii kill you swiftly before remvoing your skin.
Cale'anon:WORST
---------------------PORTAL
-------------------------------EVER!!!!!!

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Lose Trigger for my map

Unread post 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
Last edited by 3ICE on Sat Jan 17, 2009 2:39 pm, edited 1 time in total.
Reason: The [t][/t]
ImageImageImageImageImage
Image
ImageImage

User avatar
eenan
Posts: 48
Joined: Tue Jul 08, 2008 9:43 pm
Realm: US East
Account: eenan
Location: Texas,USA

Re: Lose Trigger for my map

Unread post 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?
The King: PREPARE FOR THE SEIGE!
Cale'anon:Have you seen a little girl-
Prince: I'm Afraid now is not the time to indulge in your desires, brother.
Cale'anon: No, i'm not-
Prince: You are an amusingly odd fellow, Cale'anon, my hope that the vulii kill you swiftly before remvoing your skin.
Cale'anon:WORST
---------------------PORTAL
-------------------------------EVER!!!!!!

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Lose Trigger for my map

Unread post 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.
ImageImageImageImageImage
Image
ImageImage

User avatar
eenan
Posts: 48
Joined: Tue Jul 08, 2008 9:43 pm
Realm: US East
Account: eenan
Location: Texas,USA

Re: Lose Trigger for my map

Unread post 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 1040 times
The King: PREPARE FOR THE SEIGE!
Cale'anon:Have you seen a little girl-
Prince: I'm Afraid now is not the time to indulge in your desires, brother.
Cale'anon: No, i'm not-
Prince: You are an amusingly odd fellow, Cale'anon, my hope that the vulii kill you swiftly before remvoing your skin.
Cale'anon:WORST
---------------------PORTAL
-------------------------------EVER!!!!!!

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Lose Trigger for my map

Unread post 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.
ImageImageImageImageImage
Image
ImageImage

User avatar
eenan
Posts: 48
Joined: Tue Jul 08, 2008 9:43 pm
Realm: US East
Account: eenan
Location: Texas,USA

Re: Lose Trigger for my map

Unread post 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. . .
The King: PREPARE FOR THE SEIGE!
Cale'anon:Have you seen a little girl-
Prince: I'm Afraid now is not the time to indulge in your desires, brother.
Cale'anon: No, i'm not-
Prince: You are an amusingly odd fellow, Cale'anon, my hope that the vulii kill you swiftly before remvoing your skin.
Cale'anon:WORST
---------------------PORTAL
-------------------------------EVER!!!!!!

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Lose Trigger for my map

Unread post 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.
ImageImageImageImageImage
Image
ImageImage

User avatar
eenan
Posts: 48
Joined: Tue Jul 08, 2008 9:43 pm
Realm: US East
Account: eenan
Location: Texas,USA

Re: Lose Trigger for my map

Unread post 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
Last edited by eenan on Thu Aug 14, 2008 4:32 pm, edited 1 time in total.
The King: PREPARE FOR THE SEIGE!
Cale'anon:Have you seen a little girl-
Prince: I'm Afraid now is not the time to indulge in your desires, brother.
Cale'anon: No, i'm not-
Prince: You are an amusingly odd fellow, Cale'anon, my hope that the vulii kill you swiftly before remvoing your skin.
Cale'anon:WORST
---------------------PORTAL
-------------------------------EVER!!!!!!

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Lose Trigger for my map

Unread post 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
ImageImageImageImageImage
Image
ImageImage

Post Reply

Who is online

Users browsing this forum: No registered users and 126 guests