HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit Selection System

07-13-2005, 06:47 PM#1
Toast.Theif
Im sure most of you know if you give a unit the select unit, or hero ability, specifically the select unit and set interaction type to any, any player can now use that heroes abilities.

So I thought I could make a selection system sorta like Lord Vexorian's, but I like doing things on my own. So I give each selectable unit a base roar ability that does nothing. Then havea trigger, that when the roar abil is used, fires. It SHOULD determine who clicked it, like which player, but I have no clue how to do that as get triggering player returns the owning player, neutral passive, player 16.

So what I need is a way to determine which player actually clicked the button, if that's possible.
07-14-2005, 04:04 AM#2
Guest
Could you please clear this up for me? I have trouble understanding

thanks, w00ty
07-14-2005, 09:11 AM#3
thedevil
I have done it long ago after see vex selection system,this really a good way to create hero for player just with few trigger.I dont quite see what r u mean but i guess what's u need is one of something below:

Event:A unit begin casting an ability
Condition:And all condition equal to true
+Ability being cast equal to roar
+Hero_have[player number owner of triggering unit] equal to false
Ation:
+Create 1 unit type of triggering unit for owner of triggering player at [region] facing default facing.
+Set Unit_Playerhero[player owner of lastcreated unit]=lastcreated unit
+Set Hero_have[player number owner of triggering unit] equal to true.
07-14-2005, 12:16 PM#4
Peekaboo
I think i know what you mean, that triggering player always returns player 16 regardless of who clicked it, i had the same problem on my map, but in the end i just gave up. However i've just come up with a new idea, give the unit the shop purchase item ability and make it sell an item called 'select this hero' or whatever, then you can use 'unit buys an item' and 'owner of triggering unit' havn't tested this out but i don't see why it wouldnt work
07-14-2005, 01:17 PM#5
Toast.Theif
I found out its most likely impossible from a few good triggerers in my clan. I also thought of the item thing, but the thing is I wanted it to be the unit u were gonna pick there, if I gave him a sell item ability, it just wouldnt work. And it's NOT a hero selection system, the units are meant to be mass produced after being bought, so it'd be a little annoying to go thru my spawning system and add 6 checks (more later) for each buyable unit....

Guess it's back to the drawing board.

EDIT: Testing somthing with the item idea now, it might work yet =P
07-14-2005, 04:24 PM#6
Guest
Could you use feral spirit with dummy units summoned for 0.01 seconds instead of battle roar? Then maybe you could use the Owner of Summoned Unit function.
07-14-2005, 05:47 PM#7
Peekaboo
The owner of the summoned unit wouldn't be the person who pressed it, it would be the owner of the unit again
07-14-2005, 07:48 PM#8
thedevil
>_< dont u see what i'm just posted??use ''player number of lastcreated unit'' to store it as varriable,its work very well im use it alot and if u want i can send u 1 of my map using my selection system but its need 3 trigger to work,one to change owner when player select hero,one to change owner when player deselect,another to create hero.
...I'm not good with english so hope u can see what i mean ^^
07-14-2005, 07:55 PM#9
Taur
Use channel instead
07-15-2005, 10:10 AM#10
mogmiester
why dont you just change the unit to the selecting player, but keep the same colour?
07-15-2005, 05:26 PM#11
Toast.Theif
Quote:
Originally Posted by thedevil
Event:A unit begin casting an ability
Condition:And all condition equal to true
+Ability being cast equal to roar
+Hero_have[player number owner of triggering unit] equal to false
Ation:
+Create 1 unit type of triggering unit for owner of triggering player at [region] facing default facing.
+Set Unit_Playerhero[player owner of lastcreated unit]=lastcreated unit
+Set Hero_have[player number owner of triggering unit] equal to true.

TRIGGERING player does NOT work...it give it to the owner, not the button presser. And once again, this is a UNIT system, not HERO, so the stuff after that doesn't matter.

Quote:
Originally Posted by darkhorde
Use channel instead

How would this do anything?

As for the Feral Spirit thing, it would still give the owner, not the button presser.

And the use change owner thing, I probally will since this wont work =/