| 12-13-2013, 11:05 PM | #1 |
i have 2 different issues. one is a unit that cant be healed for some reason and the other is trigger related. please open the map and take a look at it for me. the trigger where i have created an example of what i want is named transform into gnome.(i tested several ways to make units keep items after transforming but they dont work.) |
| 12-13-2013, 11:40 PM | #2 |
You need to provide more information for your first problem. Which unit can not be healed, under what circumstances? For your second problem, can you post the trigger in this thread? I can't look at the map at the moment. |
| 12-14-2013, 07:43 PM | #4 |
Have you already tried using the Chaos morph ability to morph the unit? It seems to me like that'd be a better way to do this than removing the original unit and creating a new one. |
| 12-14-2013, 11:40 PM | #5 |
chaos replace the unit after a specific research project have been completed. it isnt a research system i am after. it was you that helped me create this system. the system works but the problem is to make units keep items when they transform. |
| 12-15-2013, 07:36 AM | #6 | |
You can remove the research requirement and they transform as soon as the ability is added. Quote:
|
| 12-15-2013, 01:21 PM | #7 |
the units need to first transform into a metapod and then into a different unit. chaos would require 2 abilities for each transformation. it also wouldnt work the way i want because its effect is instant.(the unit stay in metapod form for a while before it transforms further.) anitarf helped me create the system i am currently using. another issue with using chaos would be that that would prevent the player from selecting what the unit transforms into. |
| 12-15-2013, 09:13 PM | #8 | |
Chaos into Metapod, wait (or better yet, use a timer) x seconds, then Chaos into the other unit? What's wrong with requiring another Chaos per transform? Quote:
|
| 12-16-2013, 11:58 AM | #9 |
the way blood and magic works is that basal golems walk into range of a building and learns 3 or 4 spells. clicking on one of them consumes mana from the player and transforms the unit into a metapod for a while. after the unit have stayed as metapod for a while it becomes the unit the player ordered it to become. |
| 01-02-2014, 09:05 PM | #10 |
i fixed the healing issue but the other one i still need help with. |
| 01-03-2014, 10:05 AM | #11 |
What precisely do you need help with? People here have suggested using the Chaos morph ability. Have you tried that? |
| 01-03-2014, 07:03 PM | #12 |
the triggers that transforms the units are already working thanks to your help in the past. what i need help with however is to transfer the item the unit is carrying to the unit it transforms into. |
| 01-03-2014, 09:30 PM | #13 |
As was already suggested, the easiest and most robust way to get item transfer to work would be to morph the unit by using Chaos instead of removing and replacing it like you do now. If you insist on doing it the hard way, then you'll need to drop and hide the items from the unit, store them in an item array and retrieve them from it later. Since multiple triggers can run at once, you'd need to either offset the position in the array where you store the items by 6 every time the trigger runs or use a local array. |
| 01-04-2014, 01:27 PM | #14 |
chaos wouldnt work because of glitches in the upgrade triggers.(i dont however understand why you want me to use chaos when you supported my system in the first place.) the item system is rather simple though. there isnt any item stacks or item status. i just need something that gives the new unit the same type of item as the old one had. |
| 01-10-2014, 05:32 PM | #15 |
i just tried it and i was right. chaos doesnt work like you suggest. the problem is that it can only be used once per trigger. |
