• 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.

Shop trigger where people see different items

Status
Not open for further replies.
Level 2
Joined
May 17, 2009
Messages
9
Is it possible to make a trigger where people with different variables and such see different items in the same shop? :vw_wtf:
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
maybe u can hide unit with GetLocalPlayer() and show shop only to x player, idk if this cause dc or no but maybe a option
->
Hiding a unit with GetLocalPlayer() is a guaranteed disconnection.

That's what I tryed to explain in your thread shadowvzs, about the unit visibility but that case was different.

So no possible way then?
You could make dummy units of the shops and check which player selected the shop (see what variables that player has assigned) and then make that player select the dummy shop for that setup...
But then you would need to create a dummy shop for every possibility in variation of items. It could be easy doing this using LUA object generation in order to loop through the creation of the dummy shops.
It's not impossible, hell it might be rather simple. But it will take a lot of effort ;)
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
->


That's what I tryed to explain in your thread shadowvzs, about the unit visibility but that case was different.

right, this is why i used 2 maybe in that row :D

but another side also its dcing if u try create something for hide the unit, so u make something above unit and not hide the unit directly or another thing, invisibilty also make dc if u hide unit that way?
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
right, this is why i used 2 maybe in that row :D

but another side also its dcing if u try create something for hide the unit, so u make something above unit and not hide the unit directly or another thing, invisibilty also make dc if u hide unit that way?

If you're doing this:

JASS:
if GetLocalPlayer() == Player(0) then
call ShowUnit(whichUnit, false)
endif

Then yes that would cause a desynchronization. I tested this myself.
I'm not sure if this is what you meant though...
 
Status
Not open for further replies.
Top