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.
[01:15 am]
Symmetry -- There are so many people here I'm surprised we're still online :hurr:
[2026-8-23. : 9:47 pm]
Symmetry -- :wob::wob:
[2026-8-23. : 9:14 pm]
Apos -- I like to :wob:-it :wob:-it.
[2026-8-22. : 11:25 pm]
Zakerozi -- HI
[2026-8-22. : 10:29 pm]
Symmetry -- handledeez nuts
[2026-8-22. : 7:42 pm]
Excalibur -- Its handled.
[2026-8-22. : 6:50 pm]
Praetor -- yo nude or another mod, anyone around rn?
[2026-8-22. : 7:30 am]
NudeRaider -- ultraviolet
[2026-8-22. : 4:42 am]
LoveLess -- ultragod
[2026-8-22. : 4:07 am]
Symmetry -- I'm trying to figure out an end goal for my map. So far the best I've got is "destroy the AI data centers to summon god then kill god"
Please log in to shout.


Members Online: Sie_Sayoka, Moose, lifebot