HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ammo trigger

06-17-2004, 11:26 PM#1
DoN_Rpg
ok this trigger has me stumped but i need it for my new map im making and you are a marine hero...a trigger where you have a leaderboard that shows 100 for ammo...every time u attack this goes down by 1...once it hits 0 u turn into a marine with a combat knife and retain old level and stuff..

the only part im having trouble on is how the hell do you get an event for every attack...i know there is a "unit is attacked" even but that is different....that signifies that a unit just locks on to another unit....but i need it to be every time he actually HITS it goes down by 1.....does this include jass or am i making a careless mistake????

one thing i noticed in the events is "a unit takes damage" event....i could make that work by putting

event: marine000 takes damage
condition:none
action: set value of leaderboard of owner of attacking unit to minus 1

you see that would work but i would have to make like a million events like....marine000 takes damage, marine001 takes damage, marine002 takes damage, and so on for every unit on the map....i need a way to do this withoute making like 800 events (thats how many units are in the map)
06-18-2004, 06:47 AM#2
Deathperception
Man that didn't make sense I gotta stop stayin up late it made sense to me last night when I was tired :\ . Sry about that :( .
06-18-2004, 02:10 PM#3
th15
Uhh depth, maybe im just dense, but your reply didn't make any sense at all.

DoN, you can use specific unit events by using an action to add the event to a trigger. Take a look at this demo map for an example of the method.

BTW you'll need the latest version of WEU to view this properly.
06-18-2004, 06:35 PM#4
DoN_Rpg
could u give me a link for the latest WEU?
06-18-2004, 07:57 PM#5
xGT4x
Look the stickied thread in Forum for WEU, or a link:
WE Unlimited
06-19-2004, 02:48 AM#6
DoN_Rpg
ok this is wierd...i downloaded WEU but i still cant open the map in editor? whats up with that
06-19-2004, 03:17 AM#7
Deathperception
Now heres something I can answer :D you have to click the WEU world editor icon and not try to click the warcraft game file itself (if you store your warcraft games on the desktop like I do) you cannot click them they will initialize the original world editor. The WEU world editor icon is in your start menu.

If you are in the WEU world editor you should see the new splash screen when it starts up. If you are in it and the file doesn't load odds are it is corrupted :\ .
06-19-2004, 10:35 PM#8
DoN_Rpg
i know how to start up the WEU im not an idiot....if u mis understood me this is what i meant....th15 put up a "launch rocket" map that i dled....he said it requires latest WEU...i dled WEU and opened it up but the launch rocket map still doesnt load...says missing trigger....and i know im in WEU cause the custom splash screen DOES come up and i see the new triggers and stuff....th15, are u sure that the map requires WEU and not another custom world editor???
06-20-2004, 03:14 AM#9
linkmaster23
Don't worry, if it will save you from downloading a stupid USELESS third party editor. I will do it for you.
06-20-2004, 04:35 AM#10
DoN_Rpg
lol...sure if u know how....but first check out the "switching guns" thread and see my main problem at the moment