|  |
|  |
08-09-2004, 08:36 PM
|
#1 (permalink)
| BattleForums Member
Join Date: Oct 2003 Location: Hell Age: 28 Posts: 295
| Question I think I might have asked this before but the trigger wasnt correct. I want a trigger that when I select 3 of a unit..lets say a peasant, and type sacrafice, it explodes the peasants and makes a footman. I need an exact trigger as simple as possible. This is my 2nd map so I'm not a pro at it yet. I'll give credit in my map to whoever helps the most.
__________________ |
| | | | Sponsored Links |
08-09-2004, 10:04 PM
|
#2 (permalink)
| BattleForums Senior Member
Join Date: Feb 2003 Location: CA Age: 20 Posts: 3,420
| Well, I tried figure out your problem, ended up writing some triggers in this little box here, but it didn't work out right, so why don't you have them go to an area to ransform their peons to footmen. Again, I triued working thisa out and couldn't a way to do it for multiple units.
If someone else can help him that would be great.
-Frank :cool:
__________________
All brawn and no brains and all those nice things
And you finally got what you want
Someone to look good with and light you cigarette
Is this what you really want?
I've figured out, what you're all about
And I don't think I like what I see, so
I hope I won't be there in the end when you come around
How long will he last before he's a creep in the past
And your alone once again
Will you pop up again and be my special friend
Till the end and when will that be
:halo Kurt Donald Cobain 1967 - 1994 R.I.P. :halo |
| |
08-10-2004, 12:03 AM
|
#3 (permalink)
| BattleForums Addict
Join Date: Oct 2003 Posts: 681
| Player types Sacrifice and An Exact Match
Unit Group - Pick Every Unit in playable map area owned by triggering player and do:
If [BOOLEAN COMPARISON] (Picked Unit) is selected by (triggering player) = true
then: explode - picked unit
unit - create 1 footman at unit - position of picked unit
else: do nothing |
| |
08-10-2004, 06:00 AM
|
#4 (permalink)
| BattleForums Member
Join Date: Oct 2003 Location: Hell Age: 28 Posts: 295
| Events
Player - Player 1 (Red) types a chat message containing sacrafice as An exact match
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is selected by Player 1 (Red)) Equal to True
Then - Actions
Unit - Explode (Picked unit)
Unit - Create 1 Footman for Player 1 (Red) at (Position of (Picked unit)) facing Default building facing (270.0) degrees
Else - Actions
Do nothing
That's it word for word. Will someone tell me what's wrong there because that's not working.
__________________ |
| |
08-10-2004, 06:10 AM
|
#5 (permalink)
| Aya Matsuura is awesome
Join Date: Nov 2002 Location: Trieste, Friuli-Venezia Giulia Age: 20 Posts: 15,282
| Spell sacrifice properly?
...
1) You can't use 'Picked Unit' - The Event is a text-message event.
EVENT: Unit Group - Pick Every Unit in playable map area owned by [Triggering Player] and do
...
[large If statement]
If (([Picked Unit] is selected by [Triggering Player]) and ([Picked Unit] is equal to [Peasant]))
Darimus, do you see the problem? He has three peasants, not one to be selected.
Here, the only thing I can see is variables.....
But I'll need some time to think this one out without having 5-level brackets.
__________________ * IM IN UR WIKI RVRTING UR EDITS |
| |
08-10-2004, 06:34 AM
|
#6 (permalink)
| BattleForums Member
Join Date: Oct 2003 Location: Hell Age: 28 Posts: 295
| haha i actually did check to make sure i spelled sacrafice prperly and i did. anyone else have any ideas as x42 thinks it over?
__________________ |
| |
08-10-2004, 06:41 AM
|
#7 (permalink)
| Aya Matsuura is awesome
Join Date: Nov 2002 Location: Trieste, Friuli-Venezia Giulia Age: 20 Posts: 15,282
| I have one idea. But I'm not sure if it works with multiple selects.
First, is there an event for when a unit is selected?
*unable to check on work machine*
__________________ * IM IN UR WIKI RVRTING UR EDITS |
| |
08-10-2004, 06:46 AM
|
#8 (permalink)
| BattleForums Member
Join Date: Oct 2003 Location: Hell Age: 28 Posts: 295
| theres no event. its ganna be something like when u select 3 peasants and type sacrafice a super unit (in this case a super peasant) appears. my idea is a super peasant would be 2ce as fast as a normal peasant. same idea for every other unit. but to make it simple i said from peasant to footman.
__________________ |
| |
08-10-2004, 06:59 AM
|
#9 (permalink)
| Aya Matsuura is awesome
Join Date: Nov 2002 Location: Trieste, Friuli-Venezia Giulia Age: 20 Posts: 15,282
| I just realised, this involves functions and scripting because I can't see any workaround. :|
Sorry, my WE scripting is zero.
__________________ * IM IN UR WIKI RVRTING UR EDITS |
| |
08-10-2004, 07:16 AM
|
#10 (permalink)
| BattleForums Member
Join Date: Oct 2003 Location: Hell Age: 28 Posts: 295
| anyone else then, ty though x42
__________________ |
| |
08-10-2004, 10:44 AM
|
#11 (permalink)
| BattleForums Senior Member
Join Date: Feb 2003 Location: CA Age: 20 Posts: 3,420
| x42 I don't think this is possible, as simple as it sounds. I tried about 6 different ways suing varibales and just couldn't figure it out.
-Frank :cool:
__________________
All brawn and no brains and all those nice things
And you finally got what you want
Someone to look good with and light you cigarette
Is this what you really want?
I've figured out, what you're all about
And I don't think I like what I see, so
I hope I won't be there in the end when you come around
How long will he last before he's a creep in the past
And your alone once again
Will you pop up again and be my special friend
Till the end and when will that be
:halo Kurt Donald Cobain 1967 - 1994 R.I.P. :halo |
| |
08-10-2004, 11:26 PM
|
#12 (permalink)
| BattleForums Member
Join Date: Oct 2003 Location: Hell Age: 28 Posts: 295
| whats the closest thing i can get to it.
__________________ |
| |
08-10-2004, 11:57 PM
|
#13 (permalink)
| BattleForums Junior Member
Join Date: Apr 2004 Location: Clearwater, Florida Age: 19 Posts: 109
| OMFG do what they said only add the condition
(Number of units in (Units currently selected by Player 1 (Red))) Equal to 3
HOW HARD WAS THAT??!!
__________________ |
| |
08-11-2004, 01:03 AM
|
#14 (permalink)
| BattleForums Member
Join Date: Oct 2003 Location: Hell Age: 28 Posts: 295
| I DID THAT AND IT DOESNT FREKAIN WORK YOU TRY IT!!!
__________________ |
| |
08-11-2004, 04:02 AM
|
#15 (permalink)
| BattleForums Junior Member
Join Date: Apr 2004 Location: Clearwater, Florida Age: 19 Posts: 109
| lol i cant get the rest of the trigger to work....the Picked unit doesnt work but the condition i made does for sure.....ill work on it some
__________________ |
| |
08-11-2004, 05:32 AM
|
#16 (permalink)
| BattleForums Member
Join Date: Oct 2003 Location: Hell Age: 28 Posts: 295
| we can always step it down a notch if we have to, to make it where 3 peasants go to a selected area. peasants die, footman spawns. but that is LAST RESORT and i would love it if we could get the real one or something near it workin first.
__________________ |
| |
08-11-2004, 02:45 PM
|
#17 (permalink)
| Aya Matsuura is awesome
Join Date: Nov 2002 Location: Trieste, Friuli-Venezia Giulia Age: 20 Posts: 15,282
| What I was thinking was scripting, because that is the only way, knowing which units are selected.
One way would be to 'mark' the unit to a variable, loop three times, ignore 'marked' units and detect if three Peasants are selected.
Let me get my thinking cap on overnight.
-.-;
__________________ * IM IN UR WIKI RVRTING UR EDITS |
| |
08-13-2004, 03:18 AM
|
#18 (permalink)
| BattleForums Member
Join Date: Oct 2003 Location: Hell Age: 28 Posts: 295
| come on guys i NEED this trigger its the main one in my game!
__________________ |
| |
08-13-2004, 04:55 AM
|
#19 (permalink)
| BattleForums Junior Member
Join Date: Apr 2004 Location: Clearwater, Florida Age: 19 Posts: 109
| just make a region....A Unit enters region...UR REAGION
Number Of units of type peasant in that reagion equal to 3.
replace triggering units with Footman
__________________ |
| |
08-13-2004, 06:09 AM
|
#20 (permalink)
| BattleForums Member
Join Date: Oct 2003 Location: Hell Age: 28 Posts: 295
| okay that doesnt make sense yet i understand it.. i guess thats what ill have to do.. if you guys CAN find something out, post it here. ill be checking for updates once or 2ce a day.
__________________ |
| | | |  | | | Get rid of all these ads! Take 30 seconds to register. |