HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

need a gun trigger 4 campaign!

03-30-2004, 02:06 PM#1
Crypt_Lord41
I am making a Resident Evil campaign (look at sig.) and need a trigger to run outta 1 ammo every shot. can n e 1 help me??
03-30-2004, 02:17 PM#2
BattleBotv8.2
I got a old version up in my sig. Though I am going to enter an uptated one where you can have multiple weapons in a contest.
04-08-2004, 05:59 AM#3
Lu Baihu
I've got one of my own, based on Grater's Orb Ammo System; want me to PM you the details? (I've further modified it, since I'm making a modern war map that uses essentially the same combat system as Resident Evil.)
04-08-2004, 11:54 AM#4
johnfn
Check here (if you dont already have it)
http://www.wc3campaigns.com/showthread.php?t=48025
04-08-2004, 12:28 PM#5
Sir-Stoned-Alot
OK i have one its pretty basic (Beacuse i made it myself)
You will need to copy it and change certain things for each player

VARIABLES NEEDED
PlayerAmmo(Integer Array)(X)
x=number of players

TRIGGER 1

EVENTS:A units is attacked

CONDITIONS:Player Ammo[1] is greater then 0
Owner of(Attacking Unit) Equal to Player 1 Red

ACTIONS: Set Player Ammo[1]=Player Ammo[1]-1
Run (TRIGGER 2) ignoring conditions
-----------------------------------------------
TRIGGER 2

EVENTS:(None)

CONDITIONS:(None)

ACTIONS: Set Player 1 current lumber to PlayerAmmo[1]-0
-----------------------------------------------------------
TRIGGER 3

EVENTS: A unit is attacked

CONDITIONS: PlayerAmmo[1]=0
Owner of attacking unit=Player1 Red

ACTIONS: Unit-Order Attacking Units to Stop
Game-Display text for Player Group- Player 1 Red "You have no ammo"
------------------------------------------------------------
your lumber is your ammo

all you will need to do is make a trigger so when you pick up ammo it adds x to PlayerAmmo where x is how much ammo you picked up.

while you can have more then 1 gun under this it uses 1 ammo type for all