Warcraft III resources & community, 2003–2006 · archived

Trigger- Replacing Model, without replacing stats

10 posts
#1

Trigger- Replacing Model, without replacing stats

I need a trigger that replaces a units model, but not the skills, and go back and forth, any possible way?
or do i need to make a "hidden" unit with the same base stats and as the hero levels, so will the hidden unit, and just replace them? please help, thank you.
#2
*dies laughing, comes back to laugh some more* :lol:
use bear form or something and give both forms the same abils. if you've checked the gameplay constants you would have tried that
*repeats above cycle of dying and coming back to laugh some more* :lol:
#3
*laughs harder*
the last to laugh laughs better

don't you think i know that?

cant you read? i need a TRIGGER, NOT SKILL

lets say player 1 types message "transform" then he gets a new model replacing the hero he is using.

btw the units i want to transform are heroes, so the stats constantly will be changing, since its at a fast leveling map.
#4
ah. maybe replace the unit with something w/ same stats but different model. all i can think of
#5
yes, but will he keep the old units level, strenght, agility, and intellegence? thats what im looking for
#6
It is impossible to swap models with a trigger. The closest you can get is use triggers to get the old units stats, and then use triggers to set the new ones stats.

Natives to get the old stats.
----------
native GetHeroAgi takes unit whichHero, boolean includeBonuses returns integer

native GetHeroInt takes unit whichHero, boolean includeBonuses returns integer

native GetHeroStr takes unit whichHero, boolean includeBonuses returns integer

native GetHeroXP takes unit whichHero returns integer
----------

Use thoes on the hero in question, put each of them into an integer. It is exactly the same to set the stats, except replace get with set. (Set also takes an integer argument)

If you're not into jass dont worry, thoes are in the gui editor under the hero section.
#7
save the stats (real) level (real) as vars and set the replaced units stats and lvl to the vars. or just use metamorfosion
#8
ok guys, thx for the help, i think ill try the metamorph or bear form thingy, since its easier than all those variables, one thing, anyone know how to erase that bar that covers the heroes lvl saying " Metamorphosis " or will i have to be perm metamorphosis ( but then with perm i cant go back...or can i? )

ill try out metamorphosis, if it works out, ill stay with it, or ill try the variable thingys...sound complicated to me..

maybe later on, when the map is more finished, ill take the time to learn how to use those triggers
#9
you can turn it off I think or make another metamorphosis with vice versa morphers and give it to morphed one
#10
change that metamorphosion thing under the unit name by changing the buff

in advanced => gameplay constants, u can choose if u want to be able to turn metamorphosion off