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

respwan item table

Status
Not open for further replies.
Level 30
Joined
Feb 18, 2014
Messages
3,623
You can also use itempools if you want : Itempools Guide

  • Neutral Hostile Drop Item
    • Events
      • Unit - A unit owned by Neutral Hostile Dies
    • Conditions
    • Actions
      • -------- Set Variables --------
      • Custom script: local unit u = GetDyingUnit()
      • Custom script: local real ux = GetUnitX(u)
      • Custom script: local real uy = GetUnitY(u)
      • -------- Create Itempool --------
      • Custom script: local itempool ip = CreateItemPool()
      • Custom script: call ItemPoolAddItemType(ip, 'phea', 1) // Potion of Healing -- Drop Chance: 20%
      • Custom script: call ItemPoolAddItemType(ip, 'pman', 2) // Potion of Mana -- Drop Chance: 40%
      • Custom script: call ItemPoolAddItemType(ip, 'none', 2) // Nothing -- Drop Chance: 40%
      • -------- Place Itempool --------
      • Custom script: call PlaceRandomItem(ip,ux,uy)
      • -------- Destroy Itempool --------
      • Custom script: call DestroyItemPool(ip)
      • -------- Reset Variables --------
      • Custom script: set ip = null
      • Custom script: set u = null
 
Last edited:
Status
Not open for further replies.
Top