HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Advanced Trigger Problem...

04-26-2003, 09:44 PM#1
Tearsong
I'm trying to utilize some sort of ammo system for the Halo mod, but keep getting stuck on various things. I want it to be done through the use of a leader board.

Custom Items
MA5B Clip

Triggers

A leaderboard is created that keeps track of the ammo for Unit X. When unit X fires his weapon, I want the counter on the leaderboard to decrease from 60 to 59, then when he fires again it should decrease by one and so on and so forth.

When the counter reaches zero he should no longer be able to fire his weapon. But when he uses an item (the MA5B Clip) find in his inventory, the leaderboard is replenished to 60 and he can resume firing.

I think that covers it, and any help is appreciated. If I remember anymore, I'll post it up. Thanks.
04-26-2003, 10:05 PM#2
Earth-Fury
unit owned by CREEPS is attacked
leaderboard: minus 1
integer(amo) -1

every 2.00 secs
if integer =< 0
unit: replace *same unit, but wittout attack*

player owneed unit event (one for every olayer)
condition manipulated item == amo reload
intiger add 60
leaderboard set to 60


ok yall? yw
04-26-2003, 10:10 PM#3
Tearsong
You've lost me... could you try and clean it up a little so I could understand it more?

The scripts also have to be able to work with 12 units, and each unit has different ammo, variables, etc.
04-27-2003, 12:35 AM#4
SektorGaza
here I did something like he said