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.
[03:08 pm]
Sylph-Of-Space -- woah! nice! thank you!
[2024-5-20. : 4:05 am]
O)FaRTy1billion[MM] -- the setting exists, it's just hidden in a weird place
[2024-5-20. : 4:04 am]
O)FaRTy1billion[MM] -- instead change "Microtile Overlay" to "Impassable"
[2024-5-20. : 4:04 am]
O)FaRTy1billion[MM] -- er, wait, idk why i was looking for height
[2024-5-20. : 4:03 am]
O)FaRTy1billion[MM] -- below the minimap should be a thing that says "Overlay Settings" with a little + button in the corner, press the + to expand it, uncheck Use Defaults, then change "Tile Overlay" to "Height"
[2024-5-20. : 3:57 am]
Sylph-Of-Space -- Unless I'm dum (possible)
[2024-5-20. : 3:57 am]
Sylph-Of-Space -- It would be so so so nice if SCMDraft had some kind of dedicated "walkability" view for the tilesets.
[2024-5-20. : 3:53 am]
Sylph-Of-Space -- :'( dont cry for me cat-gentina
[2024-5-19. : 9:18 pm]
Ultraviolet -- 🔪🐈
[2024-5-19. : 12:34 pm]
NudeRaider -- curiosity kills the cat!
Please log in to shout.


Members Online: golcykq51