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

Trade Menu 1.0

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
I made this spell like 1 years ago and I just wanted to share it with you guys ;D
I usually used this for Legit Game exemple, I added the trade menu for all tier 3 in my maps.
Anyway i hope you will like it ;D
--Tutorial in Spell--
Credit goes to: Wezthal for his amazing Icon.
http://www.hiveworkshop.com/forums/icons-541/btnreturnresources2-160064/?prev=search%3Dresources%26d%3Dlist%26r%3D20



Keywords:
Trade Menu, Menu, Trade, Trade Resources, Resources
Contents

Encore une carte Warcraft III (Map)

Reviews
12th Dec 2015 IcemanBo: Too long as NeedsFix. Rejected. 23:58, 26th Nov 2012 Magtheridon96: This is not really a proper system. :/ It's far too hardcoded. The user should be able to implement this system into his map and /easily/ change the...

Moderator

M

Moderator

12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.

23:58, 26th Nov 2012
Magtheridon96: This is not really a proper system. :/
It's far too hardcoded.
The user should be able to implement this system into his map and /easily/ change the system's settings without having to touch your main triggers.
There needs to be a way to "create" a new type of trade.
Arrays could help you pull this one off. A 'trade' is added to the system like this:
  • -------- Create the first method of trade --------
  • Set TradeSystemGold = myGoldAmount
  • Set TradeSystemLumber = myLumberAmount
  • Trigger - Run RegisterTradeLumberToGold <gen> (ignoring conditions)
  • -------- Create the second method of trading --------
  • Set TradeSystemGold = myOtherGoldAmount
  • Set TradeSystemLumber = myOtherLumberAmount
  • Trigger - Run RegisterTradeGoldToLumber <gen> (ignoring conditions)
^Doesn't that look like a cool way to register new types of trades? :D
Those triggers that you're running would be doing something along the lines of this:
  • -------- Inside the RegisterTradeGoldToLumber trigger --------
  • Set GoldToLumber_gold[GoldToLumber_Count] = TradeSystemGold
  • Set GoldToLumber_lumber[GoldToLumber_Count] = TradeSystemLumber
  • Set GoldToLumber_Count = (GoldToLumber_Count + 1)
This makes it super dynamic. It makes it a real, worthwhile system ;)
 
Top