HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Stock Statrt Delay

09-25-2006, 02:04 AM#1
n13astra
Hi guys,

In my current Battle Tanks MG map i have item stock start delay, which makes the item unavailable for a xxx period of time when the game starts. Now, the game has an option to start with a lot of money, and i want to be able to make the items that have a stock start delay purchasable if this mode is selected from the start.

Can anyone suggest something?
09-25-2006, 02:42 AM#2
The_AwaKening
I'm thinking that you'll just have to add the item to stock via Trigger instead. If a certain rule is selected, then add at that time; otherwise add to stock after Time Elapsed.

Collapse JASS:
native AddItemToAllStock            takes integer itemId, integer currentStock, integer stockMax returns nothing
native AddItemToStock               takes unit whichUnit, integer itemId, integer currentStock, integer stockMax returns nothing