HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger help

11-07-2002, 08:23 AM#1
Guest
ok i need a help with a trigger for my map ok i am making a Re map (Re = Resident Evil) and i am going to use limited ammo ammo being ether gold or lumber havnt desided yet.... any ways i want to do it like this when a player runs outa ammo i dont remove or kill the hero but just move it to a dif spot in the map and give it to a nuetral player and give the player a un- armed unit... Only trouble i am having is how to get it back it player get gold see i cant have present hero because i have it set up like class instead of one person get the hero i cant figger this out can ne one help me? i though of useing varible but that whould take fo rever to use cause i whould have to set one of for each player and there 5 classes and 8 players.... i really neeed help if you could put it in a txt file and attach it i would be much thankfull...


thx..:infth: :infth: :santa: :saddened:
11-07-2002, 08:35 PM#2
weaaddar
WRONG FORUM...
A REPOSITORY IS FOR STORAGE
There fore I won't help you and move your post where Somebody MIGHT help you.
11-07-2002, 11:03 PM#3
Guest
well god this is my first post in this section of the forum how the **** was i sopost to know jeez....you didnt have to ****ing go psycho just tell me to the delete that dam thing or move it....:nono: ***
11-08-2002, 01:18 AM#4
Kerry
hmm can u describe a little better, i get all confused of that...

but i dont understand why it could be hard... isnt it just to set a variable to true when ur out of ammo and then when u set a trigger that is started when a player got more than 1 gold/lumber and when that variable is true you get your hero back and then u set that variable back to false.
11-08-2002, 01:31 AM#5
The_Cyberdemon1
Ok, the way you are doing this is the hard way. Let's start anew.

Ammo:

-When fired, subtract lumber or whatever you are using. That you probably have
-Make a single variable (array) and name it... um... Ammo(Weapon). Type=Integer. Make one for every weapon (not every weapon for every player, just every weapon type). I know this is not what you wanted to do, but it's the fastest way.
-When weapons switch, make an action that says
Set Variable - Set Variable Ammo(Weapon)[1] = Player Property (Player (Triggering Player) Current Gold) Replace the 1 with Player Number of (Triggering Player)). This will store the weapon's ammo for the player who is switching.
-When restoring the weapon, just use the same trigger again, sort of... Make this action - Player Property - Set (Triggering Player) Current gold to (Ammo(weapon)[(Player number of (Triggering Player)). That will set it to what it was before.
THIS TRIGGER WILL NEED TO BE CREATED FOR EACH WEAPON (unfortunately)

Weapon switching:

-When switching weapons, instead of putting the unit off to the side, you could do the same thing as above. Make a variable for each weapon, for its life.
-If you don't want to do that, we can do the ol' StarCraft method of putting them off to the side. Do this.
Region - Center region (whatever you want) on (random unit owned by (triggering player) of type (weapon type))
Unit - Move (random unit owned by (triggering player) of type (weapon type) instantly to (storage region).
Unit - Change ownership of (random unit of type (weapon type) in region (where weapons are stored.) to player (The neutral player)
Unit - Move (random unit of type (weapon type to be switched to) in location (player's unit storage)) to region (the region that we centered)
Unit - Change ownership of (random unit owned by (The Neutral Player) at region (the centered region) to (triggering player).
-After you do that, use the trigger from above for setting the ammo.

Some of the triggers can be changed to make it easier for you (i don't know what your map is like, so i can't do it. It depends on how units are placed and stuff). You will have to figure that otu yourself. This is the easiest way to do it (i think), and I hope this answered your question.

-The_Cyberdemon
11-08-2002, 03:35 AM#6
Guest
OK this is how i have it set up

If (Players) Current Gold Less then 1 then do

Center Region X on random unit owned by (Player) then do Move Random unit owner by (Player) to Region X2 And chAnge owner shit of Random unit owner by (player) to NP Player.

Create One Umbrella Corp. Unarmed soldier at Region X

i think that should work the problem is if the player get over 0 gold i cant get the other guy back and send the Umbrella Corp. Umarmed Soldier away.... need help with thatemote_confused emote_confused

i will try your way first Mon but really hard to read those glowing letter so leme copy paste on word pad and try it out

Also, there only 1 weapon Machine gun i am thinking of give umarmed person a Field Knife but there not weapons i have them set up in Class: Like this Medic , Soldier , Engineer , and Commander. so i dont have more then 1 main weapons instead i am doing custom spell for them because thats more fun to do

THx
11-08-2002, 08:13 AM#7
Draco
Lol, weaaddar, everyone gets pissed at someone pointing out thier error(s).

Oh, and when you explain something, don't use the glow text.

<> i.e. <>

Person 1 - I need this trigger.
Person 2 - Here ya go!
Person 1 - Ahhhh, my eyes. It burns!!!
Person 2 - Hmmm.... perhaps I need a stronger glow...
Person 1 - Oh, the pain.....

- - - Bye - - -