HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I Need A Few Triggers

01-12-2005, 04:01 AM#1
Ethnar
Hello my name is Ethnar i am working on a map that is almost finished and i need
a trigger.

there 3 triggers i need are
1: i need a gold generating triger that doesnt lag based of property of a player
2: i need a give units system where a player clicks on a unit and types give blue etc
3:i need a "sell this unit" trigger that doesnt need much space

thnkyou if you can get me eitherof these give me your war3 east and west screen name for credit or it will go under "people and wc3campaigns"

thnx
01-12-2005, 04:13 AM#2
yuripro84
1
when reds gold comes more than or equal to XXX

give red XXXX

2
red says XXXX

CONDITION-XXunit is selcted(make a unit for gold exchange for each player)

(not sure, im guessing)give triggering player XX gold

EXEPTION FOR #2
When red says -Give (player color) XX gold

Give (player color) XX gold

3.cant answer, have no idea

if you know nothing about triggers, i could better explain these
01-12-2005, 05:28 PM#3
Milkman
#2: So easy, go look it up in another please. Not to be rude but i don't feel like writing it all here.

#3: A trigger that sells a unit? In what way? Like typing sell and adding the pointvalue of the unit to the triggering player? Elaborate please.
If it's the case i described above, something like this would do, for 1 player that is.

Player 1 types -sell unit
Add point value of selected unit to player 1 reds current gold
Game Display message: Unit sold for <Point value of selected unit>
Remove selected unit from the game

This is just a very simple trigger and as always it can be modified to suit your personal needs, but it's not my map and this will work, even though it's not very neat or nice or anything of the like.
01-12-2005, 09:49 PM#4
Guest
lol now i see how you get those triggers elgard
01-13-2005, 01:36 AM#5
Ethnar
here let me clarify number 2

in dobrp player blue can place a unit click on it and type "give red" and it will give the unit to red i need a trigger like that pls :)
01-13-2005, 02:19 AM#6
Guest
Quote:
Originally Posted by Ethnar
here let me clarify number 2

in dobrp player blue can place a unit click on it and type "give red" and it will give the unit to red i need a trigger like that pls :)

This is my guess, it's done in two triggers. I'm not sitting with WE in front of me, so below is only a sketch of the trigger. It is assuming of course, that Player Blue is Player 2, unless my memory fails me...and I'm assuming that the unit selected is, or was, owned by player 1 (red).

Trig 1-

Event:
Player 2 types a chat message -takered as an exact match

Action:
Trigger - Turn on Trig 2
You may want to add a time limit so that the player 2 has to select the unit to take within a specified time period, note that if player 2 does select and take a unit, the trigger will be turned off (see trigger 2) eg Wait x seconds, Trigger-Turn off Trig 2


Trig 2:

Event:
Player - Player 2 selects a unit

Conditions:
Triggering unit is owned by player 1 red (player comparison)
Add other conditions as necessary eg if only heroes can be taken or whatever...

Action:
Unit-Change owner of triggering unit to Player 2 and change colour
Trigger-Turn off this trigger


Hope this can be suited to your needs.
01-13-2005, 01:55 PM#7
Guest
.............