• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Neutral passive buildings

Status
Not open for further replies.

Jampion

Code Reviewer
Level 15
Joined
Mar 25, 2016
Messages
1,327
  • Sell
    • Events
      • Unit - A unit Sells a unit
      • Unit - A unit Sells an item (from shop)
      • Unit - A unit Pawns an item (to shop)
    • Conditions
    • Actions
      • Unit - Kill (Buying unit)
      • Unit - Kill (Selling unit)
I guess buying unit is the unit and selling unit is the building
 

Jampion

Code Reviewer
Level 15
Joined
Mar 25, 2016
Messages
1,327
You can convert the GUI to see what the jass looks like.
These events can be used:

EVENT_PLAYER_UNIT_PAWN_ITEM / EVENT_UNIT_PAWN_ITEM
EVENT_PLAYER_UNIT_SELL / EVENT_UNIT_SELL
EVENT_PLAYER_UNIT_PAWN_ITEM / EVENT_UNIT_PAWN_ITEM

These are functions that can be used with the events:

GetSellingUnit()
GetBuyingUnit()
 
Status
Not open for further replies.
Top