Posted: Mon May 09, 2005 10:34 pm
Ok here it goes, it's hard to explain:
I'm doing 2 different units that sprite wise are different but behaviourwise are kind of similar.
one is a Spartan hoplite unit and the other is an Athenian hoplite unit.
I want both 2 units to be able to carry different weapons(artifacts) that create different sprites and attacks depending on the one they are using at the time.
The units have chance of using spear(spear thrust), sword(sword thrust) and unarmed(shield bash).
I did all the sprites and animations, and created the artifact for spear, and sword.
When I use this with 1 unit(spartan) it works perfectly.
when he picks up sword he converts into the spartan sword monster and same with spear and sprites change to showing him carrying the weapon.
the questions is:
I would love to make also the Athenian capable of picking up the SAME sword or spear that the Spartan uses and change too...
but as in artifacts you have to select the unit that artifacts convert into when picking up, let's say I say "when picking up spear> convert unit to spartan with spear...."
then : how can I make the same spear on the ground change the Athenians to Athenians with spear, and the Spartans to Spartan with spear..?
Without having to create 2 different artifacts that look the same(spears) and be guessing when you play if the spear that's on the ground is athenian or spartan.......
uhh sorry, it's really hard to explain....
any ideas?
thanks!
I'm doing 2 different units that sprite wise are different but behaviourwise are kind of similar.
one is a Spartan hoplite unit and the other is an Athenian hoplite unit.
I want both 2 units to be able to carry different weapons(artifacts) that create different sprites and attacks depending on the one they are using at the time.
The units have chance of using spear(spear thrust), sword(sword thrust) and unarmed(shield bash).
I did all the sprites and animations, and created the artifact for spear, and sword.
When I use this with 1 unit(spartan) it works perfectly.
when he picks up sword he converts into the spartan sword monster and same with spear and sprites change to showing him carrying the weapon.
the questions is:
I would love to make also the Athenian capable of picking up the SAME sword or spear that the Spartan uses and change too...
but as in artifacts you have to select the unit that artifacts convert into when picking up, let's say I say "when picking up spear> convert unit to spartan with spear...."
then : how can I make the same spear on the ground change the Athenians to Athenians with spear, and the Spartans to Spartan with spear..?
Without having to create 2 different artifacts that look the same(spears) and be guessing when you play if the spear that's on the ground is athenian or spartan.......
uhh sorry, it's really hard to explain....
any ideas?
thanks!