What I am trying to do:
I want to produce a Hero (like in LoL: Jayce or Eylse, in Smite: Hel).
If you know any of these Heroes above, this information should not be new to you, anyway i will tell exactly what i want to do:
On Level 1 you lern a spell, with this spell you change your Hero Models and new Abilities. Therefore, I remove the Unit from the game, and create the new one (its an angel and a demon).
e.g.: I have the Angel currently, then, I activate the ability, and the model (the completely Hero) changes. The items I had before, The skill levels (Not made yet, upcoming) are kept, and because I dont know how to make cooldowns on abilities (because: even if the cooldown is e.g.: 20 sec, if the new hero is created, he has no cooldowns at all, thats why i tried to make the cooldown by: (cooldown = 5 sec)
That is the Trigger that is not working:
1st Trigger (Demon to Angel)
(Event and Conditions are currently working, that is not the problem, so I didnt post them here)
And here is of course the Trigger when I want to change from Angel to Demon:
2nd Trigger (Angel to Demon)
That is enough of what I want to do. Here is my Problem in Detail:
When I change from Angel to Demon (running the 2nd Trigger), everything works as is should. Items kept, the spell "Change Form" is learned by the hero, as it should be.
But if I change from Demon to Angel (running the 1st Trigger) The spell is not skilled. With Items I also have problems (I come to that later) but i fixed them on my own way.
But the real Problem is that the Spell is not skilled. It should automatically upgrade to lvl 1 and should be learned right away. But it doesnt.
And now it gets interesting:
It is all because of this:
please help me, I dont know what I should do, tested everything... Would be great if this finally works, thank you...
I want to produce a Hero (like in LoL: Jayce or Eylse, in Smite: Hel).
If you know any of these Heroes above, this information should not be new to you, anyway i will tell exactly what i want to do:
On Level 1 you lern a spell, with this spell you change your Hero Models and new Abilities. Therefore, I remove the Unit from the game, and create the new one (its an angel and a demon).
e.g.: I have the Angel currently, then, I activate the ability, and the model (the completely Hero) changes. The items I had before, The skill levels (Not made yet, upcoming) are kept, and because I dont know how to make cooldowns on abilities (because: even if the cooldown is e.g.: 20 sec, if the new hero is created, he has no cooldowns at all, thats why i tried to make the cooldown by: (cooldown = 5 sec)
-
Spieler - Deaktivieren Change Form for (Owner of (Casting unit))
-
Wait 5.00 game-time seconds
-
Spieler - Aktivieren Change Form for (Owner of (Casting unit))
That is the Trigger that is not working:
1st Trigger (Demon to Angel)
(Event and Conditions are currently working, that is not the problem, so I didnt post them here)
-
Set AngelDemonGegenstand1 = (Item carried by (Casting unit) in slot 1)
-
Set AngelDemonGegenstand2 = (Item carried by (Casting unit) in slot 2)
-
Set AngelDemonGegenstand3 = (Item carried by (Casting unit) in slot 3)
-
Set AngelDemonGegenstand4 = (Item carried by (Casting unit) in slot 4)
-
Set AngelDemonGegenstand5 = (Item carried by (Casting unit) in slot 5)
-
Set AngelDemonGegenstand6 = (Item carried by (Casting unit) in slot 6)
-
Einheit - Remove (Casting unit) from the game
-
Einheit - Create 1 Angel for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
-
Einheitengruppe - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Schleifen - Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Unit-type of (Picked unit)) Gleich Angel
-
-
'THEN'-Aktionen
-
Set CastingDemontoAngel = (Picked unit)
-
Held - Set (Picked unit) experience to AngelDemonHeroXP, Verbergen level-up graphics
-
Held - Give AngelDemonGegenstand1 to (Picked unit)
-
Held - Give AngelDemonGegenstand2 to (Picked unit)
-
Held - Give AngelDemonGegenstand3 to (Picked unit)
-
Held - Give AngelDemonGegenstand4 to (Picked unit)
-
Held - Give AngelDemonGegenstand5 to (Picked unit)
-
Held - Give AngelDemonGegenstand6 to (Picked unit)
-
Auswahl - Select (Picked unit) for (Owner of (Picked unit))
-
-
'ELSE'-Aktionen
-
Do nothing
-
-
-
-
-
Spieler - Deaktivieren Change Form for (Owner of (Casting unit))
-
Wait 5.00 game-time seconds
-
Spieler - Aktivieren Change Form for (Owner of (Casting unit))
-
Held - Learn skill for CastingDemontoAngel: Change Form
-
Set CastingDemontoAngel = Keine Einheit
And here is of course the Trigger when I want to change from Angel to Demon:
2nd Trigger (Angel to Demon)
-
Set AngelDemonGegenstand1 = (Item carried by (Casting unit) in slot 1)
-
Set AngelDemonGegenstand2 = (Item carried by (Casting unit) in slot 2)
-
Set AngelDemonGegenstand3 = (Item carried by (Casting unit) in slot 3)
-
Set AngelDemonGegenstand4 = (Item carried by (Casting unit) in slot 4)
-
Set AngelDemonGegenstand5 = (Item carried by (Casting unit) in slot 5)
-
Set AngelDemonGegenstand6 = (Item carried by (Casting unit) in slot 6)
-
Einheit - Remove (Casting unit) from the game
-
Einheit - Create 1 Demon for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
-
Einheitengruppe - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Schleifen - Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Unit-type of (Picked unit)) Gleich Demon
-
-
'THEN'-Aktionen
-
Set ChangeFormPickedUnit = (Picked unit)
-
Held - Set (Picked unit) experience to AngelDemonHeroXP, Verbergen level-up graphics
-
Held - Give AngelDemonGegenstand1 to (Picked unit)
-
Held - Give AngelDemonGegenstand2 to (Picked unit)
-
Held - Give AngelDemonGegenstand3 to (Picked unit)
-
Held - Give AngelDemonGegenstand4 to (Picked unit)
-
Held - Give AngelDemonGegenstand5 to (Picked unit)
-
Held - Give AngelDemonGegenstand6 to (Picked unit)
-
Auswahl - Select (Picked unit) for (Owner of (Picked unit))
-
-
'ELSE'-Aktionen
-
Do nothing
-
-
-
-
-
Spieler - Deaktivieren Change Form for (Owner of ChangeFormPickedUnit)
-
Wait 5.00 game-time seconds
-
Spieler - Aktivieren Change Form for (Owner of ChangeFormPickedUnit)
-
Held - Learn skill for ChangeFormPickedUnit: Change Form
-
Set ChangeFormPickedUnit = Keine Einheit
That is enough of what I want to do. Here is my Problem in Detail:
When I change from Angel to Demon (running the 2nd Trigger), everything works as is should. Items kept, the spell "Change Form" is learned by the hero, as it should be.
But if I change from Demon to Angel (running the 1st Trigger) The spell is not skilled. With Items I also have problems (I come to that later) but i fixed them on my own way.
But the real Problem is that the Spell is not skilled. It should automatically upgrade to lvl 1 and should be learned right away. But it doesnt.
And now it gets interesting:
It is all because of this:
-
Wait 5.00 game-time seconds
please help me, I dont know what I should do, tested everything... Would be great if this finally works, thank you...