• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

help whit basic teleport..

Status
Not open for further replies.
Level 5
Joined
Oct 9, 2008
Messages
134
  • help whit basic teleport..[/b]
  • wat is wrong here?
  • [TRIGGER]Pregunta 1 enter
    • Events
      • Unit - A unit enters Pregunta 1 COR <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is A Hero) Equal to True
        • Then - Actions
          • Wait 1.00 seconds
        • Else - Actions
          • Unit - Move (Triggering unit) instantly to (Random point in Pregunta 2 Spawns <gen>)
 
Last edited:
ok thanks i will try but my idea is wait 1 sec, after the teleport... also i want a blink xD
like the spell xD



plz

anyone can say if this is ok?:
  • REVIVIR cfg
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Resurrection
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of (Triggering unit)) Greater than or equal to 3.00
        • Then - Actions
          • Unit - Set mana of (Triggering unit) to 2.00
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Mana of (Triggering unit)) Greater than or equal to 2.00
            • Then - Actions
              • Unit - Set mana of (Triggering unit) to 1.00
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Mana of (Triggering unit)) Greater than or equal to 1.00
                • Then - Actions
                  • Unit - Set mana of (Triggering unit) to 0.00
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Mana of (Triggering unit)) Greater than or equal to 0.00
                    • Then - Actions
                      • Unit - Order (Triggering unit) to Stop
                    • Else - Actions
 
Last edited:
You really don't need all those ifs just to set mana. You could instead just check if the unit's mana is >1 and then set unit mana = unit mana - 1.
 
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Mana of (Triggering unit)) Greater than or equal to 1.00
      • Then - Actions
        • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 1.00)
      • Else - Actions
        • Unit - Order (Triggering unit) to Stop
 
lol i think in this:
  • REVIVIR cfg
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Resurrection
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of (Triggering unit)) Greater than or equal to 1.00
        • Then - Actions
          • Unit - Set mana of (Triggering unit) to (0.00 - 1.00)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Mana of (Triggering unit)) Greater than or equal to 0.00
            • Then - Actions
              • Unit - Order (Triggering unit) to Stop
            • Else - Actions
              • Do nothing

only one question
i need a reincarnation, who takes 1 mana
the guy, have 3 mana
so if you have 3 mana and reincarnate. so rest 1 mana
2 mana rest 1 mana
1 mana rest 1 mana
0 mana = cancel the revival.

that code you do, can do that??
 
well i will go to sleep, and i will see the new msj tomorrow.
plz someone help me xD
i am doing a map and i have 30% done
so if someone want help me... i can put him in the credits
in the loading screen
and also hive +repu everi day here.
 
Omfg. Learn to trigger. Read some tutorials. FFS, when I learned to trigger, I taught myself. It's not that hard.

You are so kind and caring to someone just looking for help.

kamer, of course it can be accomplished. It is simply doing what you already have been. If the reincarnation takes 1 mana, just check if they have more than one mana. If they dont, don't revive them.
 
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Mana of (Triggering unit)) Greater than or equal to 1.00
      • Then - Actions
        • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 1.00)
      • Else - Actions
        • Unit - Order (Triggering unit) to Stop


ok,
i do this
  • REVIVIR cfg
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Resurrection
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of (Triggering unit)) Greater than or equal to 1.00
        • Then - Actions
          • Unit - Set mana of (Triggering unit) to (Mana of (Triggering unit))
        • Else - Actions
          • Unit - Order (Triggering unit) to Stop
i cant make this part:

  • Then - Actions
  • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 1.00)
i put this:
  • Unit - Set mana of (Triggering unit) to (Mana of (Triggering unit))
how can i put the - 1?

i see all options but i cant find it..
help plz..
 
Status
Not open for further replies.
Back
Top