HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Is there a way to change the model of your character with out changing it's stats?

06-06-2004, 06:17 AM#1
Strom
I'm making a RPG map and I want a way to change the model for my character, so that when he buys armor from a shop it replaces his model (standered villagermal model) with a footman model. But I just want the effect to be causmetic. I want all the characters stats and ability's to be the same.

I tried add special effect to point, but that didn't work cause it doesn't animate the footman unit right, just looks like the footman unit slides across the map. Same thing with adding the footman unit to the ability of the item. So I'm stumped, does anyone have any ideas, or have done something like this before?

Sincerely,

Strom Stonebeard
06-06-2004, 06:21 AM#2
Arohk
you can just replace the unit whit a new one and change its stats whit some triggers, if its a hero you will need to give items, strenght agility ect, not impossible,
06-06-2004, 06:32 AM#3
Pheonix-IV
what you want to do is not possible, end of story. This question is asked a billion times and it isnt possible, the only thing you can do i make a different version of the hero with the footman model and keep track of the heros stats with triggers.
06-06-2004, 07:11 AM#4
Panto
If you use Chaos on a hero to change it to an identical hero, does it save its stats?
06-06-2004, 07:12 AM#5
Pheonix-IV
no, it still changes the unit.
06-06-2004, 07:26 AM#6
Strom
Quote:
Originally Posted by Pheonix-IV
no, it still changes the unit.

Well it's good to know that what I was trying to do isn't possible before I wasted anymore time on it. :>

How would I go about keeping track of the hero's stats with triggers, I've never attempted that with triggers before. So i'm not real sure where to start.

Sincerely,

Strom
06-06-2004, 07:43 AM#7
Pheonix-IV
i have no idea, but it will definitely involve Variables and probably involve JASS
06-06-2004, 09:05 AM#8
Anitarf
Not really, all you need to keep track of is when your character acquires tomes, since that is the only way to change stats freely (the stats that change when you gain a level are fixed). Just use "unit acquires an item" and if it is a tome, then save that in a variable. When you replace heroes, just add to the new hero the ammount of strenght, agility and intelligence that you recorded the previous hero gained.
06-06-2004, 11:04 AM#9
Pheonix-IV
you need to keep track of the characters -
Items
EXP Points
Level
Stats (All 3 of em)
Spells Learnt
Health
Mana
Buffs
06-06-2004, 12:19 PM#10
LegolasArcher
Events:
Unit - Aquires an item
Conditions:
Item Type Comparison - (Item Type of (Sold Item)) is Equal to [Your Armour]
Actions:
Set (hero_stats[1]) = (Strength of (Buying Unit) (Exclude Bonuses)
Set (hero_stats[2]) = (Agility of (Buying Unit)) (Exclude Bonuses)
Set (hero_stats[3]) = (Intellegence of (Buying Unit)) (Exclude Bonuses)
Set (hero_stats[4]) = (Hero Experiance of (Buying Unit))
Set (hero_stats[5]) = (Level of [First Hero Ability] on (Buying Unit))
Set (hero_stats[6]) = (Level of [Second Hero Ability] on (Buying Unit))
Set (hero_stats[7]) = (Level of [Third Hero Ability] on (Buying Unit))
Set (hero_stats[8]) = (Level of [Forth Hero Ability] on (Buying Unit))
Set (hero_stats[9]) = hero_stats[5] + hero_stats[6] + hero_stats[7] + hero_stats[8] + (Unspent skill points of (Buying Unit))
Unit - Replace (Buying Unit) with a [Unit with Armour] using (the old unit's relative life and mana)
Hero - Modify (Last Replaced Unit)'s Strength: (Set to) (hero_stats[1])
Hero - Modify (Last Replaced Unit)'s Agility: (Set to) (hero_stats[2])
Hero - Modify (Last Replaced Unit)'s Intellegence: (Set to) (hero_stats[3])
Hero - Set (Last Replaced Unit)'s experiance to hero_stats[4], (Hide Level-up Graphics)
Hero - Modify Hero Skill Points of (Last Replaced Unit): Set To hero_stats[9]
For Each Integer A from (1) to (3) - Do Actions
--- if (hero_stats[5] >= Integer A) then - Do Actions
------ Hero - Learn [Hero ability 1] for (Last Replaced Unit)
----if (hero_stats[6] >= Integer A) then - Do Actions
------ Hero - Learn [Hero ability 2] for (Last Replaced Unit)
----if (hero_stats[7] >= Integer A) then - Do Actions
------ Hero - Learn [Hero ability 3] for (Last Replaced Unit)
----if (hero_stats[8] >= Integer A) then - Do Actions
------ Hero - Learn [Hero ability 4] for (Last Replaced Unit)
I would try something like this. If it helps, please use the reputation feature to leave feedback.