I need help creating a forging system that is impossible in GUI. Firstly I would like to know if it is possible in JASS:
I have a forge unit with two inventory slots. The forge should contain any of a list of certain items (classified in my map as artifact) and a rune (an item with no abilities) (Example Ral Rune).
If the forge is ordered to use its dummy ability, the rune should disappear (be removed) and an ability is added to the item. The item's name also changes, adding the runes name in front. Example: I have a long sword (adding 15 to the damage dealt) and place the long sword into the forge with my Ral rune. I then press the button (order it to cast the ability) and the long sword’s name changes to "Ral Long sword" and adds an additional 5 damage. (15 and another +5)
It should also be able to add other abilities, if other runes are used. And in time you should be able to end up with a "Ral Tal Thul Ral Long sword" or a "Ral Ral Ral Ral Broadsword"...
The idea of this system is to prevent the need of creating 100+ items for every possible combination.
I have a forge unit with two inventory slots. The forge should contain any of a list of certain items (classified in my map as artifact) and a rune (an item with no abilities) (Example Ral Rune).
If the forge is ordered to use its dummy ability, the rune should disappear (be removed) and an ability is added to the item. The item's name also changes, adding the runes name in front. Example: I have a long sword (adding 15 to the damage dealt) and place the long sword into the forge with my Ral rune. I then press the button (order it to cast the ability) and the long sword’s name changes to "Ral Long sword" and adds an additional 5 damage. (15 and another +5)
It should also be able to add other abilities, if other runes are used. And in time you should be able to end up with a "Ral Tal Thul Ral Long sword" or a "Ral Ral Ral Ral Broadsword"...
The idea of this system is to prevent the need of creating 100+ items for every possible combination.