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

Random Item Merchant

Status
Not open for further replies.
Level 25
Joined
May 11, 2007
Messages
4,650
A unit buys an item
Item equal random item
set temp_Integer to random number between 1-6.
if temp_integer == 1
create item X and give it to hero.

if temp_integer == 2
create item Y and give it to hero.

Repeat.
 
Level 2
Joined
Jul 29, 2009
Messages
12
Doesnt work

OK it doesnt work Look correct me if im wrong but i dont think only 1 integer/variable exists,only form #-# does
  • Event:
    • Unit- Unit Aquires an item
  • Condition:
    • (Item-type of (last created item)) Equal to Random item
  • Action:
    • Set Temp_integer=(Random integer number between 1 and 10)
    • For each (integer Temp_Integer)from 1 to 1, do (Actions)
      • Loop - Actions
        • Item - Create (Variable/item) at (center of (Playable map area))
        • Hero - Give (Last created item) to (buying unit)
Then copies from there - 10
 
Level 2
Joined
Jun 28, 2009
Messages
9
I don't think this thread should be here, cause this is the Introductions forum, I vote for move.
 
Last edited:
Status
Not open for further replies.
Top