| 11-13-2002, 09:16 PM | #1 |
Guest | The WE has a HUGE amounts of flaws. I dunno if there's any updated that has fixed this, but if not, here's what I'd like to be added: Event: Unit - Unit type Event (There's Unit - Specific Unit Event and there's Unit - Player Owned Unit Event. I want to be able to trigger on the death of a unit of type wisp. I can't. One solution would be to add "Any player" to the list of players, that would solve a whole bunch. And while you're at it, add Forces in the preset player lsit too) Does this exist? Tell me! And I don't wanna hear anything about adding 12 different events... :gfu: |
| 11-13-2002, 09:20 PM | #2 |
The only solution is the one you don't want to hear about. |
| 11-13-2002, 09:54 PM | #3 |
I bet it's possible to do, You might need to do Custom Text though. My Favorite. |
| 11-13-2002, 11:26 PM | #4 |
I think this would work. But i havent tested it in multiplayer it work in single. As DKSlayer said with Custom Text it might be possible. THe code aint too hard loop all player and do the action on the matching player. function Trig_Wisp_Conditions takes nothing returns boolean if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'ewsp' ) ) then return false endif return true endfunction function Trig_Wisp_Actions takes nothing returns nothing call DisplayTextToForce( GetPlayersAll(), "Hejsan" ) endfunction //================================================ function InitTrig_Wisp takes nothing returns nothing local integer i=0 set gg_trg_Wisp = CreateTrigger( ) call TriggerAddCondition( gg_trg_Wisp, Condition( function Trig_Wisp_Conditions ) ) call TriggerAddAction( gg_trg_Wisp, function Trig_Wisp_Actions ) loop exitwhen i>=12 call TriggerRegisterPlayerUnitEventSimple( gg_trg_Wisp, Player(i), EVENT_PLAYER_UNIT_DEATH ) set i=i+1 endloop endfunction |
| 11-14-2002, 01:53 AM | #5 |
Instead of using forces in triggers you can use groups that you make urself in the variable editor. the nyou have 2 add the players into the groups, you can also change the menbers of the group later. works better then forces if you ask me. And that damn cusotm script, it's just as si ple as reading a book in chinese. I think that there's a condition that you could use too something like: Event: -----A unit owned by random player i group1 dies Condition: -----dying unit equal to unit type wisp. im not sure but it would be a huge flaw if u cant do this without custom text which only 1% of the mappers actually understand |
