HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Select a unit and change its owner?

01-09-2005, 04:04 PM#1
BattleBotv8.2
I cannot seem to find how to make it so once you have selected a unit, it will change the unit's owner to the player who selected him. How do I do that?
01-09-2005, 06:50 PM#2
iNfraNe
Code:
Events
        Player - Player 1 (Red) Selects a unit
        etc
    Conditions
    Actions
        Unit - Change ownership of (Triggering unit) to (Triggering player) and Change color
01-09-2005, 11:50 PM#3
Guest
Are you sure Triggering Unit works? I tried to do the same once, but it only recognized the Triggering Player.. The Triggering Unit wasn't set.

I solved it by using "pick unit in <units currently selected by currentplayer>" back then.
01-10-2005, 01:33 AM#4
luckyownz92
add a condition

Code:
Event - Player 1 Selects A Unit
Conditions - Triggering Unit Is Paladin
Actions - Change Ownership Of Triggering Unit To Triggering Player
01-10-2005, 06:26 AM#5
Guest
Code:
Events
Player - Player 1 (Red) Selects a unit
etc
Conditions
Actions
Unit - Change ownership of event  [color=red](event responce - selected unit)[/color]  to (Triggering player) and Change color

Nearly right, toot...
01-10-2005, 06:05 PM#6
iNfraNe
Quote:
Originally Posted by Jorak
Nearly right, toot...
seeing the event itself says:
Code:
Use 'Event Response - Triggering Unit' to reger to the unit being selected or deselected
I am entirely right.
Furthermore "Event Response - selected unit" doesnt even exist so I suggest if you want to correct someone, do it with facts.
01-10-2005, 08:30 PM#7
Guest
Quote:
Originally Posted by toot
seeing the event itself says:
Code:
Use 'Event Response - Triggering Unit' to reger to the unit being selected or deselected
I am entirely right.
Furthermore "Event Response - selected unit" even exist so I suggest if you want to correct someone, do it with facts.


I'm not sitting in front of world editor right now, but I do recall using event response - selected unit in the map I'm making currently. Perhaps this event response is only available in WE Unlimited which is what I am using?

EDIT: I forgot to add - I think using triggering unit probably won't work because the event is Player-player selects a unit. Triggering player, yes, but of course that doesn't help the case here...
01-10-2005, 08:36 PM#8
iNfraNe
hmm, thats pretty weird... I check on WEU and it isnt there we me either (sorry jorak is I might have insulted u a little ;))

what does the event say @ u guys?
01-10-2005, 11:34 PM#9
Guest
Quote:
Originally Posted by toot
hmm, thats pretty weird... I check on WEU and it isnt there we me either (sorry jorak is I might have insulted u a little ;))

what does the event say @ u guys?

Ok Toot, my humblest apologies, you were perfectly correct - my memory is a bit hazy. :\ I got a friend to check for me, given my myriad technical troubles, and the picture says it all - use "triggering unit" for the event selects a unit.

EDIT: I guess it would help to attach the pic!
01-11-2005, 12:54 PM#10
Guest
Quote:
Originally Posted by toot
hmm, thats pretty weird... I check on WEU and it isnt there we me either (sorry jorak is I might have insulted u a little ;))

what does the event say @ u guys?
Does'nt matter...^_^

But.... It exists in my WE and that's just the normal 1.17a.....?!


Jorak.
01-11-2005, 08:06 PM#11
Guest
Quote:
Originally Posted by Jorak
Does'nt matter...^_^

But.... It exists in my WE and that's just the normal 1.17a.....?!


Jorak.

That should be the case - under Event: Player Selection Event (player x selects a unit); with the unit selected being referred to as the "triggering unit"
01-20-2005, 05:51 PM#12
Guest
Quote:
Originally Posted by RogueKnight
That should be the case - under Event: Player Selection Event (player x selects a unit); with the unit selected being referred to as the "triggering unit"
Sorry Guys....
My memory is too "a little bit hazy"

You are right...!
But i can remember something like this:
"selection event - selected unit"
not sure, it might be an action:
"selection event - select unit"

Correct me (i think i'm wrong, but that's kind of normal^_^ now...)


JoraK