| 02-28-2004, 11:01 PM | #1 |
okay, im typing fast so i dont forget it... ok, so in my AOs, i have a knight with lots of fun spells that transform him into stuff, like knight on horse, or archer etc. so but since u cant really have more than 1 type of that ability on a unit, I turned to triggers, but then when i noticed you cant give units levelable abilitys (cause i wanted to transfer abilitys) I HAD THIS WONDERFUL IDEA!!! ok, so what im gonna do is... crap forgetting... ARGSDF GIVE ME A SEC! OH YEAH YEAH RIGHT, so in my trigger, im gonna swap the hero with a normal mounted horse! what about experiance you say? WELL THATS THE GREAT IDEA! ill make a hidden exp. gainer follow around the transformed unit and gain all of its experiance!! WOOHOO! and then when we switch back to the hero ill figure out how much exp the exp. gainer has and add it to the hero. WHOOHOO! PROBLEM FIXED! :ggani: :ggani: :ggani: yah, so uh will it work. lol |
| 02-28-2004, 11:29 PM | #2 |
No. |
| 02-28-2004, 11:45 PM | #3 |
lol... why, cause i was annoying when i said it? or some other reason? |
| 02-29-2004, 12:00 AM | #4 |
well, you wernt that anoyying, ive seen much worse. :/ BUT....the reason it wont work, is you cant replace a hero unit with a non hero unit, it causeses the game to crash for some reason i dont know of. |
| 02-29-2004, 12:05 AM | #5 |
really? cause ive got it working that working fine, right now the prob is when i want the normal unit to turn back into the hero. what i do is when the hero is just before the hero is replaced i store him in a game cache, then when the unit uses my unit version of this ability, i remove the units (half the time he removes, the other half he just dies) and then i restore the hero from the game cache, but the hero doesnt restore. |
| 02-29-2004, 04:48 AM | #6 |
Ummm... why not just rethink the concept slighty and give him a modified version of Metamorphosis? It might save you a heap load of trouble -- otherwise, you'll need to think more clearly and lay out your ideas in a coherent fashion so that I can understand them and come up with a solution ^_^ |
| 02-29-2004, 05:01 AM | #7 |
Or create a modified hero with a horse model. *Shrugs.* Could have the horse equal to the hero, exp wise, and then the exp transfering when you change back to the unit. |
| 02-29-2004, 05:20 AM | #8 |
If it does ending up crashing, then wait a few seconds with the triggers and create some temporary cinematics for fun then make it transform? |
| 02-29-2004, 04:04 PM | #9 |
yeah, here it comes like, nice and orderly. The reason a lot of your ideas wouldnt work is because the hero would have bearform, ravenform, and metamorphasis. I dont think they really go well together. So I had to do it through triggers. what i do is when my hero uses bearform (a dummy bearform with no transformation) I check what level it is, then replace him with a unit according to that. up to here it works. I havent put in my "exp. gainer" yet, im just testing the rest of the transformation. just before the hero is replaced, i store him in a game cache. THEN when my new unit uses his own version of bearform, I recal the hero from the cache (doesnt work) then remove the unit (does remove REMOVE the unit, or kill it? cause mine kills it.) thats about it. now, why each of ur ideas wouldnt work :ggani: @raeVanMorlock: your idea actually may work for one of my spells, because it is a timed transformation. but the thing is i dont want is all of his spells switching over. because it gets really wierd with overlapping transformations. @ThyFlame: I already tried that, and the hero also gets my Draw Bow spell and when he uses it, well its wierd like i said earlier. That should about do it. |
| 02-29-2004, 04:59 PM | #10 |
Um. What's the problem with having modified heros for each of your trigger-based transformations? The non-cache way to do it would be to give your unit to a dummy player (ie. neutral passive) and move it instantly to a corner, replacing with the other units. You'd have to do all the exp manually, but that's not too difficult. You could just use a SFX for the transform graphic while you are actually just switching two units and their owners. Sort of a pseudo-transformation. Should work. |
| 02-29-2004, 05:15 PM | #11 |
well, i guess i could but it would be wierd because none of the spells would transfer over, and the player would be expecting them to transfer, and it would just look wierd. another reason is, i dont really need it |
| 02-29-2004, 05:54 PM | #12 |
The spells would be tricky.. but I think you could just have all the units learn the spells whenever your main hero learns the spell. |
| 03-01-2004, 01:36 AM | #13 |
If all of these transformations are to change the hero's model and otherwise leave him intact (ie, each model has the same spells, experience, etc) then do like ThyFlame said: have each version of the hero on the map together and give the versions not in use to Neutral Passive and store them somewhere that's inaccessible on the map -- you could also consider creating an ability based on the single-target invisibility spell (human, I believe) with a max duration and ordering a nearby neutral passive unit to cast it on himself and the other versions of the hero every X number of seconds so that they're not found (provided that nobody gets true-sight). Then just level the other versions in accordance to the active one -- if a unit dies, and the killing unit is the active hero, then set the experience of the other versions to the active hero's experience. And when he learns a spell, have them learn that same spell. You could even set it so that when one of them takes damage, the others do as well (though you may want to cap it so that the neutral versions don't die... if DamageReceived Is greater than Life of Form2 Then Set Form2 Life Equal to 1. And using Remove will whipe the mapearth. I've been told that Explode works best for getting rid of units -- but that will trigger a death event and so isn't always a good choice. |
| 03-01-2004, 01:46 AM | #14 |
I said i could that but i didnt want to, now i have a good reason. I dont want lets say, the mounted horse to have draw bow, or flee (another transformation) so i DONT want to transfer spells. Another reason for not having that is, He would have like 1 hero spell, and theres not much use for heros besides levelable spells which he has none of. I can fake agility strenght and inteligence if i REALLY want to... but i dont. but what i want u to help me with now is why doesnt my game cache work? |
| 03-01-2004, 01:56 AM | #15 |
Likely because you cannot transfer between hero and normal units, or that is misuse of the cache. You are going to have to compromise at some point. |
