HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I need a trigger done for me...

03-17-2004, 12:25 PM#1
BuRnInSpartan
hey map makers... i need a trigger done for me. I need one so when you type a message like -neutral give, the units you currently selected will be given given to neutral passive.
03-17-2004, 02:51 PM#2
Frozzt
You can do like this:

Event:
Player - A player types a message containing -neutral as an exact match
Condition:

Action:
If triggering player equal to player 1 red, then: Unit-Pick every unit selected by player 1 red, Unit change owner of picked unit to neutral passive.


May have som troubles but it should work
03-17-2004, 08:05 PM#3
BuRnInSpartan
if it works you can give me your b-net name and i will give you credit... If you want your name in color also, i will do that. Plz tell me what color also. Thanks again.
03-18-2004, 11:39 AM#4
BuRnInSpartan
srry but it didn't work. Anyways i need all the units you selected to go under neutral's command
03-18-2004, 11:47 AM#5
Nieffed
It gos something like this:

Events:player01 types in as an exact match nuetral give
Conditions:
Actions: units in selected area change owner ship and color to [red]
03-18-2004, 12:20 PM#6
1Z1KaosAngel1Z1
Quote:
Originally Posted by BuRnInSpartan
hey map makers... i need a trigger done for me. I need one so when you type a message like -neutral give, the units you currently selected will be given given to neutral passive.


Hmm Some Weird Replies There, But Neways Heres What You Do;
Event:
Player 1 Red (or watever player you want) Types -neutral give as an exact match
Action:
Pick Every Unit In Units Selected By Triggering Player And Do Give Picked Units To Neutral Pasive.
03-18-2004, 12:24 PM#7
Frozzt
The only problem with doing like this is that if you are player 1 red and selects a unit owned by player 2 blue and red enters "-neutral give" the unit owned by blue will change owner. A big problem I would say
03-18-2004, 12:28 PM#8
BuRnInSpartan
na don't worry condtion, units selected by player1 = to player 1
03-18-2004, 12:34 PM#9
BuRnInSpartan
i still don't know if this is gonna work but

Event- Player types -neutral give as an exact match

Condition- Owner of (triggering unit) =to player 1 (red)

Action- Unit- Change ownership of (picked unit) to player 1 (red) and change color.

hope it works
03-18-2004, 12:36 PM#10
Frozzt
It won't work, cuz the trigger has no idea of were the triggering unit comes from. if you have a unit that comes within range of another unit then it knows who is the triggering unit.
03-18-2004, 12:44 PM#11
BuRnInSpartan
have you ever played create your own story? well i'm making a create your own story... and i need to have the triggers like in that. when you type
-units give (ALL) the units selected go to neutral hostile (i've maneged to get one to work). and when you type -remove (ALL) the units you have selected are removed.