- Joined
- Nov 5, 2008
- Messages
- 536
Finally I have reached the stage on my map where I can add a techtree system I have come up with. But I can not create the system by myself, so I shall describe it here in this post to let you hear what you think about it.
The resource lumber is renamed into Knowledge and it's icon replaced by a spellbook. The upper-bar now indicates Gold and Knowledge.
A player can build a building called Library.
When a Library is constructed 1 Knowledge (lumber) is added to your storage.
When a Library is destroyed 1 Knowledge is removed.
Knowledge is used as a techtree requierment.
For example, a Knight requires 3 Knowledge to be able to be built.
It does not cost 3 Knowledge to train the Knight, it just requires you to have 3 Knowledge to be able to train the unit.
When you have 3 Knowledge (3 Lumber) in your storage a dummy unit is created at a hidden spot on the map. That unit is simply called 3 Knowledge and it is the real techtree requirement for the Knight.
This means, if a player can have a maximum of 5 Knowledge, then 5 different dummy units named Knowledge 1 - 5 must be created.
This also means that when you lose 1 Knowledge due to a Library is destroyed, then the appropriate Knowledge dummy-unit must be removed.
An other example, just to make it all clear: (You can skip this if you want to)
A Riflemen requires 2 Knowledge and a Knight requires 3 Knowledge.
I have two Knowledge so I can train Riflemen.
I construct my third Library and 1 Knowledge is added to my storage, giving me a total of 3 Knowledge. Two dummy-units have already been created (1 Knowledge and 2 Knowledge) but now as my third Library is finished a third dummy unit is created, called 3 Knowledge.
The 3 Knowledge enables me to train Knights. Later in the game, I lose 1 Library and therefore I only have 2 Knowledge. The 3 Knowledge-Dummy-Unit is removed and I can no longer train Knights until I build a new Library.
The basic reason for this system is that players shall be able to interrupt each other tech by attacking and reducing each other Librarys.
Can this system be created with triggers?
The resource lumber is renamed into Knowledge and it's icon replaced by a spellbook. The upper-bar now indicates Gold and Knowledge.
A player can build a building called Library.
When a Library is constructed 1 Knowledge (lumber) is added to your storage.
When a Library is destroyed 1 Knowledge is removed.
Knowledge is used as a techtree requierment.
For example, a Knight requires 3 Knowledge to be able to be built.
It does not cost 3 Knowledge to train the Knight, it just requires you to have 3 Knowledge to be able to train the unit.
When you have 3 Knowledge (3 Lumber) in your storage a dummy unit is created at a hidden spot on the map. That unit is simply called 3 Knowledge and it is the real techtree requirement for the Knight.
This means, if a player can have a maximum of 5 Knowledge, then 5 different dummy units named Knowledge 1 - 5 must be created.
This also means that when you lose 1 Knowledge due to a Library is destroyed, then the appropriate Knowledge dummy-unit must be removed.
An other example, just to make it all clear: (You can skip this if you want to)
A Riflemen requires 2 Knowledge and a Knight requires 3 Knowledge.
I have two Knowledge so I can train Riflemen.
I construct my third Library and 1 Knowledge is added to my storage, giving me a total of 3 Knowledge. Two dummy-units have already been created (1 Knowledge and 2 Knowledge) but now as my third Library is finished a third dummy unit is created, called 3 Knowledge.
The 3 Knowledge enables me to train Knights. Later in the game, I lose 1 Library and therefore I only have 2 Knowledge. The 3 Knowledge-Dummy-Unit is removed and I can no longer train Knights until I build a new Library.
The basic reason for this system is that players shall be able to interrupt each other tech by attacking and reducing each other Librarys.
Can this system be created with triggers?