• 🏆 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!

[Trigger] "Set Level" trouble

Status
Not open for further replies.
Level 15
Joined
Sep 3, 2006
Messages
1,738
Everything in this trigger works except for the "set level" part. Any ideas?

  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • Or - Any (Conditions) are true
      • Conditions
        • (Ability being cast) Equal to Summon: Squirtle
        • (Ability being cast) Equal to Summon: Ivysaur
        • (Ability being cast) Equal to Summon: Charizard
  • Actions
    • Set PokePoint = (Position of (Triggering unit))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Ability being cast) Equal to Summon: Squirtle
    • Then - Actions
      • Unit - Move (Load 0 of (Key (Triggering unit)) in PokeHash) instantly to PokePoint
      • Unit - Change ownership of (Load 0 of (Key (Triggering unit)) in PokeHash) to (Owner of (Triggering unit)) and Change color
      • Hero - Set (Load 0 of (Key (Triggering unit)) in PokeHash) Hero-level to (Hero level of (Triggering unit)), Show level-up graphics
      • Unit - Add Squirtle (Squirtle) to (Triggering unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Charizard (Charzard) for (Triggering unit)) Greater than 0
        • Then - Actions
          • Unit - Move (Load 2 of (Key (Triggering unit)) in PokeHash) instantly to (Center of PokeCenter <gen>)
          • Unit - Change ownership of (Load 2 of (Key (Triggering unit)) in PokeHash) to Neutral Passive and Change color
          • Unit - Remove Charizard (Charzard) from (Triggering unit)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Ivysaur (Ivysaur) for (Triggering unit)) Greater than 0
        • Then - Actions
          • Unit - Move (Load 1 of (Key (Triggering unit)) in PokeHash) instantly to (Center of PokeCenter <gen>)
          • Unit - Change ownership of (Load 1 of (Key (Triggering unit)) in PokeHash) to Neutral Passive and Change color
          • Unit - Remove Ivysaur (Ivysaur) from (Triggering unit)
        • Else - Actions
 
Level 4
Joined
Apr 16, 2009
Messages
85
so you are trying to set unit a's (the unit that was saved in the hastable) level to unit b's level (the triggering unit)

and everything works except for the level up/down? :/ seems very odd because when the change owner works leveling up should work too (unless of course they got the same level or one of them is not a hero)
 
Level 15
Joined
Sep 3, 2006
Messages
1,738
Have you confirmed that the key is actually being loaded?

On an unrelated note, making SSBB or something?

Mmm not really SSBB, but it's the same idea as Pokemon Trainer from SSBB.

I figured it out. Problem was that when you disable exp gain you can't level at all, so I just have to re-enable it and re-disable it each time >>;

thanks for trying though.
 
Mmm not really SSBB, but it's the same idea as Pokemon Trainer from SSBB.

I figured it out. Problem was that when you disable exp gain you can't level at all, so I just have to re-enable it and re-disable it each time >>;

thanks for trying though.

you dont really need to disable exp gain, you can just set every exp gain value to 0 in the Gameplay Constants......
 
Status
Not open for further replies.
Top