• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

Spellbook-Metamorphosis

Status
Not open for further replies.
Level 2
Joined
Mar 27, 2009
Messages
7
Hi Hive Guys me and my firiends are new in this bussines, we have a current map project where you are able to decide between 6 classes with mixable 2 sub-classes each
for example:
the Beastmaster he is able to choose between summoner or shapeshifter
He is able to choose 50% Shapeshifter / 50% Summoner or even 75% shapeshifter /25 % summoner or every other combination.

The shapeshifting works more or less fine with this trigger:


Ereignisse
Einheit - A unit Beginnt, eine Fähigkeit zu wirken
Bedingungen
(Ability being cast) Gleich Morph 3
Aktionen
Set MorphHero1 = (Casting unit)
Set Heroitem1 = (Item carried by (Casting unit) in slot 1)
Set Heroitem2 = (Item carried by (Casting unit) in slot 2)
Set Heroitem3 = (Item carried by (Casting unit) in slot 3)
Set Heroitem4 = (Item carried by (Casting unit) in slot 4)
Set Heroitem5 = (Item carried by (Casting unit) in slot 5)
Set Heroitem6 = (Item carried by (Casting unit) in slot 6)

Wait 1.00 seconds

Einheit - Replace (Casting unit) with a MorphedHero using Alte Einheit: Rel. life and mana
Set MorphHero2 = (Last created unit)
Held - Give Heroitem1 to MorphHero2
Held - Give Heroitem2 to MorphHero2
Held - Give Heroitem3 to MorphHero2
Held - Give Heroitem4 to MorphHero2
Held - Give Heroitem5 to MorphHero2
Held - Give Heroitem6 to MorphHero2

Nearly same trigger to shift back. BUT if i shift back the hero got all ability points to skill again.

THE PROBLEM IS ^^ : I dont want to skill again
THE QUESTION :Am i able to set a Variable for the skill the hero skilled before or do i need to use another morphing trigger or even think again of my idea of shapeshifting ?

Big thx if you know how to solve my problem! (if you need any other informations i will edit my post)
 
Level 6
Joined
Jul 25, 2005
Messages
221
You have to change your variable setting, "Set MorphHero2 = (Last created unit)" is wrong, when referring to a replaced unit, you have to use (Last Replaced Unit)
 
Level 6
Joined
Sep 13, 2008
Messages
261
You could set the skills to variables when you morph
  • Actions
    • Set skilllevel = (Level of (Ability being cast) for (Triggering unit))
then reapply them on morphback
  • Actions
    • Hero - Modify unspent skill points of (Picked unit): Set to 0 points
    • Unit - Increase level of YOURSKILL for (Picked unit)
should solve your problems.
 
Status
Not open for further replies.
Top