Hey,
Would it be possible to create a coop-plugin that allows regular unit-trading at the start of the map? Or is that... f00ked?
-Appy
Possible?
- Baron LeDant
- Posts: 364
- Joined: Mon Mar 22, 2004 9:14 pm
-
- Posts: 1026
- Joined: Mon Sep 13, 2004 6:05 am
- Location: M.E.
Right, but that changes between different full unitsets. I think Apollo was wondering if it is possible to do more complex versions of this, where you can trade three warriors for two archers or vice versa, or many other options.
This would be possible, but might take a lot of script depending on how many options you want to have. The best way I can think of is a taunt-based system. Set up a TUNI to test if three warriors are taunting, then make a couple of CTRLs, one to make those warriors invisible and the other to make two previously invisible archers appear. You could set up another TUNI to see if two archers are taunting, and make a different trade based on that.
But this can cause a problem if you want multiple trade options for a given unit type. Do you want to trade those two archers for three warriors, or for one dwarf? Using the system I just described, you would only be able to do one or the other. There would have to be a way for the player to choose which option they wanted. There are probably multiple ways to do it--if you know what the SNIF action is, this might finally be a chance to use it.
A-Red
This would be possible, but might take a lot of script depending on how many options you want to have. The best way I can think of is a taunt-based system. Set up a TUNI to test if three warriors are taunting, then make a couple of CTRLs, one to make those warriors invisible and the other to make two previously invisible archers appear. You could set up another TUNI to see if two archers are taunting, and make a different trade based on that.
But this can cause a problem if you want multiple trade options for a given unit type. Do you want to trade those two archers for three warriors, or for one dwarf? Using the system I just described, you would only be able to do one or the other. There would have to be a way for the player to choose which option they wanted. There are probably multiple ways to do it--if you know what the SNIF action is, this might finally be a chance to use it.
A-Red