• 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.

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:
Level 5
Joined
Oct 9, 2008
Messages
134
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:
Level 8
Joined
Nov 9, 2008
Messages
502
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.
 
Level 8
Joined
Nov 9, 2008
Messages
502
  • 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
 
Level 5
Joined
Oct 9, 2008
Messages
134
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??
 
Level 5
Joined
Oct 9, 2008
Messages
134
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.
 
Level 9
Joined
Nov 28, 2008
Messages
704
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.
 
Level 5
Joined
Oct 9, 2008
Messages
134
  • 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.
Top