| 11-18-2002, 09:30 AM | #1 |
Guest | I want to make the heroes change apperance every 3. level - but they have to keep items, xp etc. How can i transfer this to the new hero, who's gonna replace the old one? |
| 11-18-2002, 04:58 PM | #2 |
I would imagine you store the items in an array, and then have it set when the new hero comes, give the integer to the heroes inv. |
| 11-18-2002, 08:32 PM | #3 |
Guest | then i need to ask a n00bish question, i guess: how do i set arrays and intergers? |
| 11-18-2002, 09:14 PM | #4 |
Guest | Ok, look at this: Event: Unit - A unit owned by Player 1 (red) Gains a level player 2 player 3 .... etc. Conditions: (Hero level of (triggering unit)) Equal to 10 (Unit-type of (Triggering unit)) Equal to [name of hero who gains level up] Actions: Unit - Replace (Triggering unit) with a [New unit] using The old unit's relative life and mana Hero - Set (Last replaced unit) Hero-level to 10, Hide level-up graphics Hero - Give (Item carried by (Triggering unit) in slot 1) to (Last created unit) Hero - Give (Item carried by (Triggering unit) in slot 2) to (Last created unit) .... and so on until "slot 6". This works =D =) |
| 11-18-2002, 09:28 PM | #5 |
Um When you replace I'm pretty positive it gives you the items you use to have on that hero. |
