• 🏆 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!

respwan item table

Status
Not open for further replies.
Level 28
Joined
Feb 18, 2014
Messages
3,580
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