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

[General] Tavern/Barracks

Status
Not open for further replies.
Level 17
Joined
Nov 13, 2006
Messages
1,814
Hi all,

Do you know how to remove unit from sell list? By a trigger of course.

but why u want remove it?

u can put just huge replenish stock time, and for this u dont need trigger etc

check the picture


u tryed the map what i send? its still give error? :p
 

Attachments

  • 1.jpg
    1.jpg
    87.2 KB · Views: 91
Level 17
Joined
Nov 13, 2006
Messages
1,814
It makes few errors.
1st. You made '-random' function, so other players still can pick.
2nd If they can pick that means they can pick same hero that I randomed so its able to double heroes.

@Jay the Editor
Thanks a lot.

1. its -ar, and other player cannot take same hero worked well for me even somebody pick a hero, but i can insert something
work well if u use market place not tavern
call RemoveUnitFromAllStock( udg_THeroes[r] )
2. thats right if u do with stock replenish still can use with normal pick

let me ask something? why dont use market place with tavern model file?

witha simple trigger without pick u can add and remove unit types
 

Attachments

  • 2.JPG
    2.JPG
    36.4 KB · Views: 70
Level 17
Joined
Nov 13, 2006
Messages
1,814
I have making some test and reconized that you ar is not random at all. In 10 hits I randomed same hero. Or will it change with more heroes/players?

1st of all, 1st what i made for u its randomized, same player cant take again same hero but u said u dont want 2 player get same hero also 1 player can use -ar only 1x.

this last script work like that, when a player use -ar then get a random hero what not owned by other players yet
 
Status
Not open for further replies.
Top