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:
^Doesn't that look like a cool way to register new types of trades? 
Those triggers that you're running would be doing something along the lines of this:
This makes it super dynamic. It makes it a real, worthwhile system 
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)
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)