| 04-15-2005, 03:23 PM | #1 |
Ok.. I am trying to develop a system that saves a hero into a variable so that you can switch heros then later be able to switch back into the first hero where he left off. To my knowledge and understanding these two triggers should be set up right... For some reason, they are not... When I switch into a thief as a warrior and if the thief variable is set to no unit, then it creates the thief fine, but when the thief variavle is set to a unit, it creates no unit, instead of creating the previous thief. Can someone tell me WTF is going on?!?! I have spent the last 4 hours testing and trying things out... I can't figure out what is going wrong... |
| 04-15-2005, 03:38 PM | #2 |
Guest | Uhm, in my opinion it is better to add the ability "Chaos" to Nub, instead of replacing the unit with the command "Replace Unit" (so u don't have to change items etc...) and I think that it should work fine. VERY IMPORTANT: remember to set the dependency to the old unit, or you will have strange changes of statistics and damage. I hope this can help u^^ |
| 04-15-2005, 08:20 PM | #3 |
When you use the "replace unit" action, you effectively remove the old unit and create a new one. The old unit is then removed, so you can't bring it back. What you were trying to do was bring back a level 1 unit of the same type as the old unit, but that didn't work either because, since the old unit didn't exist anymore, you couldn't get it's unit type. To get this to work properly, you should not replace units, but instead hide the old unit and then create (or unhide, dependiong on if it has been used before) the new one and move it to the position of the old one. |
| 04-16-2005, 12:07 AM | #4 | |
Quote:
Ok, with a few minor adjusment, I got this to work flawlessly. Thank you so much ![]() |
