• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Unit Indexer merge (JASS)

Status
Not open for further replies.
Level 9
Joined
May 19, 2016
Messages
163
Hello,

Iam currently trying to implement 2 awesome Systems from Hive in my Map but i have a problem with the Indexer. I know there can only be ONE Unit Indexer but i am not able to deleted one and merge both Systems.
Maybe someone can help me get the ''Is Unit Moving'' (Bribe) working in the ''Yu'lon Hero Concept'' (Chopinski) Map.
I need both of them together somehow ;;
(Iam using retail)



THANKS :)
 
You would have to replace all usage of its API (Indexer by Chopinski) with Bribes API. Everything else should be the same.

JASS:
    function RegisterUnitIndexEvent takes code c returns nothing
        call TriggerAddCondition(Indexer.onIndex, Filter(c))
    endfunction
-->
  • Game - UnitIndexEvent becomes Equal to 1.00

JASS:
    function RegisterUnitDeindexEvent takes code c returns nothing
        call TriggerAddCondition(Indexer.onDeindex, Filter(c))
    endfunction
-->
  • Game - UnitIndexEvent becomes Equal to 2.00

JASS:
    function GetIndexUnit takes nothing returns unit
        return Indexer.unit
    endfunction
-->
  • UDexUnits[UDex]
 
Nice! thanks for the quick answer. But i dont really know what to change.
because the Event with Bribes System is ''equal 1 and 2'' and Chopsinski has a script with ''Index'' and ''Deindex''
Sorry for being silly but i dont really know how to change it with your example >.<
 
Wow thank you for the Example Map.
Now i added the ''Is moving'' and everythings works!


Thanks alot :)
 
Status
Not open for further replies.
Back
Top