| 06-28-2003, 11:16 PM | #1 |
ok i want to upgrade a knight to a paladin but there isnt one and i dont know wtf to do |
| 06-29-2003, 05:41 AM | #2 |
The first one is that you have to force the unit editor to alow upgrades for units. You can use my enhancer slk from the trigger & utility repository forum. if you only change the upgrade fileds, it will perfectly work on bnet. (some fields requiring implementation on the slk in the file are actually not fully working on bnet). The second problem is that unit/buildings upgrades don't upgrade spells. Then you need to replace every just upgraded unit with a unit of the same type. It will then work. Regards |
| 06-29-2003, 02:00 PM | #3 |
here i think i have a solution but i havent tested it. It sould work in theory, if i make a spell say nightelf vision upgrade if i make that aviaible to humans then if they get it i have a trigger ----------------------------------- Event periodic time 1.00 sec ----------------------------------- Condition Player is human Ultravision is reserced ----------------------------------- Action unit group pick every unit owned by trigering player of type knight and replace with paladin |
| 06-30-2003, 06:46 AM | #4 |
If you want to use a dummy upgrade as a unit-upgrade button, it should work. But then don't use this cosmetic timed event, as there is an event for units that finishes a research. The thing i don't really get is : do you want to upgrade one or all units at a time. It seems to be the second one by looking at your trigger. I haven't had a look in the upgrade slks, but it is probably possible to make a custom upgrade that would do the complete job (similar to what the orcish spikes on buildings upgrade does). This said i haven't tested it yet. Regards |
| 06-30-2003, 10:18 PM | #5 |
i want all units to be upgraded but how would i make a custom spell to do that could u show me how to make a knight into a paladin i figured out y some of my stuff isnt working my slk editor doesnt save changes to the slk i dont know y but it doesnt so i got excel now |
| 07-01-2003, 02:20 AM | #6 |
Just use any spell then. And replace your knight with a paladin if that spell is cast (it won't make the spell work as the unit is replaced ^^) with a trigger (u can use the event : unit - unit owned by player X is given an order with no target" and then compare the Order string with the spell you used's string in the condition Regards |
| 07-01-2003, 07:38 AM | #7 |
You could make custom units that are supported by triggers... ie. [custom unit] is trained condition units = [custom unit] action replace all knights with paladins... or wat ever you want |
| 07-01-2003, 05:55 PM | #8 |
i could make a unit taht is trained but then u could train him again and that wouldnt be good i am a perfectionist |
| 07-02-2003, 10:03 AM | #9 |
thats why you have a supporting trigger Event [custom unit] is trained Condition unit = [custom unit] Action Disable further production of [custom unit] |
