Staredit Network > Forums > SC2 Assistance > Topic: Ammunition pick-up trigger
Ammunition pick-up trigger
Sep 1 2010, 6:21 am
By: Alzarath  

Sep 1 2010, 6:21 am Alzarath Post #1

Praetor

So, I have this Trigger... Here's what it's supposed to do:

Guy walks up to a pickup item
Item vanishes
Guy gets +5 ammo on whichever ability they have (it's selectable at the beginning of the map)
Item respawns after a while.

Problem is, it doesn't give the ammo. to any of the abilities.

EDIT: I think the ability doesn't use ammo, it uses charges, but I have no idea how to add charges. :\

Post has been edited 1 time(s), last time on Sep 1 2010, 6:53 am by Artanis186.



None.

Sep 1 2010, 7:58 am Temp Post #2



You add charges with the Add Charge Used For Unit Ability trigger, just set the number to a negative.



None.

Sep 1 2010, 9:22 am Alzarath Post #3

Praetor

Quote from Temp
You add charges with the Add Charge Used For Unit Ability trigger, just set the number to a negative.

Tried that already, didn't do anything. Do I have to put something in the 'Charge: ""' thing? Cuz I have no idea what I'd type...



None.

Sep 1 2010, 4:07 pm Biophysicist Post #4



First thing to try: Make sure that the trigger actually runs when you think it should. Put a display text message action somewhere in there and see if it's displayed.

I've never worked with charges before so I don't know what else to tell you. >.>



None.

Sep 1 2010, 4:38 pm Alzarath Post #5

Praetor

Well, as I suspected, I did have to add something to the 'Charge: ""' field. You actually have to put the abilities link, not the ID, the link, in that field. I got it working (afaik).

Oh, and I already knew it was working, otherwise the item wouldn't have vanished.

A rather complicated thing. I actually had to check in the campaign map to see how they did it with Raynor's grenades, and even that didn't give me all the info I needed.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:24 pm]
Apos -- :wob:
[04:16 am]
NudeRaider -- files in c:\program files\ are protected
[08:11 pm]
Symmetry -- why can't I seem to make eud editor change flingy.dat D:
[04:33 pm]
Ultraviolet -- :wob:
[2026-7-10. : 11:00 pm]
Vrael -- :wob:
[2026-7-10. : 5:18 pm]
IskatuMesk -- :wob:
[2026-7-10. : 7:29 am]
Zycorax -- :wob:
[2026-7-10. : 3:48 am]
O)FaRTy1billion[MM] -- :wob:
[2026-7-10. : 3:14 am]
Symmetry -- :wob:
[2026-7-10. : 1:03 am]
IskatuMesk -- that's a loaded sentence if I ever snorted one
Please log in to shout.


Members Online: NudeRaider, Excalibur