Random Hero Tavern

Sivert

New Member
Reaction score
0
I'm having trouble with a trigger about random heroes.. With these triggers I somehow get the same hero each time I buy "random hero" ..

Anyone know what to do?

Code:
Set stuff Copy
Events
Map initialization
Conditions
Actions
Set Random_Count = 7
Set Hero_Array[1] = Druid of the Talon
Set Hero_Array[2] = Ugly Hunter
Set Hero_Array[3] = Shadow Caster
Set Hero_Array[4] = Secret Keeper
Set Hero_Array[5] = Wolf Rider
Set Hero_Array[6] = Tauren Chieftain
Set Hero_Array[7] = O.o Panda
Trigger:
Code:
Random
Events
Unit - A unit Sells a unit
Conditions
(Unit-type of (Sold unit)) Equal to Random Hero
Actions
Unit - Create 1 Hero_Array[(Random integer number between 1 and Random_Count)] for (Owner of (Sold unit)) at ((Owner of (Sold unit)) start location) facing Default building facing degrees
Item - Create Scroll of Town Portal at ((Owner of (Last created unit)) start location)
Hero - Give (Last created item) to (Last created unit)
Item - Create |cff530080Horn of Cenarius at ((Owner of (Last created unit)) start location)
Hero - Give (Last created item) to (Last created unit)
Game - Display to (All players) for 15.00 seconds the text: ((Name of (Owner of (Last created unit))) + ( has randomed + (Name of (Last created unit))))
Selection - Select (Last created unit) for (Owner of (Last created unit))
Player - Set (Owner of (Last created unit)) Current lumber to 0
 

Pyrogasm

There are some who would use any excuse to ban me.
Reaction score
134
Uncheck the option "use fixed random seed" in your World Editor preferences pane.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top