• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Random Item Merchant

Status
Not open for further replies.
Level 25
Joined
May 11, 2007
Messages
4,651
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