• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[General] Reference Using Player of Goblin Lab's Reveal.

Status
Not open for further replies.
After discussion and research it was found, at least among us that this effect isn't really possible in any straightforward means. However; this map, generously provided by: BloodSoul achieves the effect in a round about way. While it doesn't narrow down which unit purchased the service it will return the purchasing player. (This is done through a handful of gold detection triggers in a specific order of operation)
 

Attachments

Hello, I have been dealing with a very similar problem, and fortunately (thanks to @-Phoenix- for some leads) have found a way to detect the player using the ability.


Create triggers such as these for all your players

  • P1
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Marketplace
    • Actions
      • Set P = Player 1 (Red)
  • P2
    • Events
      • Player - Player 2 (Blue) Selects a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Marketplace
    • Actions
      • Set P = Player 2 (Blue)
  • P3
    • Events
      • Player - Player 3 (Teal) Selects a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Marketplace
    • Actions
      • Set P = Player 3 (Teal)
The trigger fires when a unit is selected, then the condition makes sure that it was the specific neutral unit you want to detect the usage of

The variable "P" in this case stores the player which uses the marketplace, goblin laboratory, or other neutral structure
 
Hello, I have been dealing with a very similar problem, and fortunately (thanks to @-Phoenix- for some leads) have found a way to detect the player using the ability.


Create triggers such as these for all your players

  • P1
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Marketplace
    • Actions
      • Set P = Player 1 (Red)
  • P2
    • Events
      • Player - Player 2 (Blue) Selects a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Marketplace
    • Actions
      • Set P = Player 2 (Blue)
  • P3
    • Events
      • Player - Player 3 (Teal) Selects a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Marketplace
    • Actions
      • Set P = Player 3 (Teal)
The trigger fires when a unit is selected, then the condition makes sure that it was the specific neutral unit you want to detect the usage of

The variable "P" in this case stores the player which uses the marketplace, goblin laboratory, or other neutral structure
Why would you do this when you could just do this:

  • Detect something
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
      • Player - Player 3 (Teal) Selects a unit
      • Player - Player 4 (Purple) Selects a unit
      • Player - Player 5 (Yellow) Selects a unit
      • Player - Player 6 (Orange) Selects a unit
      • Player - Player 7 (Green) Selects a unit
      • Player - Player 8 (Pink) Selects a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Marketplace
    • Actions
      • Set p = (Triggering player)
 
Im no master at the editor, if I had known it would work I would've done it, there's always room for improvements, thanks for pointing this out
 
Status
Not open for further replies.
Back
Top