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

[Trigger] Instant move

Status
Not open for further replies.
Level 3
Joined
Apr 26, 2008
Messages
49
Loose mana per attack

I need a instant move for my map...

You buy your hero then it instantly moves to the middle

I have
Event
Player # Selects a unit
Conditions
Triggering unit is a hero equal to true
Action
Unit- Move (triggering unit) instantly to(Center of(Playable map area))


The last bit makes it always move to the center when i click it... i want it to be one off so when you buy it appears in the center

Please help :cool:

New Question (Didn't wanna make a new thread so just edited this)

How do I make a unit loose x amount of mana per attack?

E.G
Marine attacks something and looses 4 mana

Thanks

Ok last question!

How do i stop all mana regeneration?

The guy attacks, looses mana but then regains it!!

Could I just edit the skills to remove mana regen from it? (If so how?)

Cheers.. again
 
Last edited:
Level 5
Joined
Dec 18, 2007
Messages
205
make another event.

Event: Unit sells unit
Condition: SOLD UNIT Is a hero equal to true
Action: Unit-Move SOLD UNIT instantly to ....

gl
greetings
 
Level 8
Joined
Mar 12, 2008
Messages
437
Two triggers:
  • Triggero Uno
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (This space for rent)
    • Actions
      • Trigger - Add to Triggero Dos the event (Triggering unit) takes damage
  • Triggero Dos
    • Events
      • (There is no event. Mwa ha ha ha.)
    • Conditions
      • (I think you were a bit unclear here -- you should use Unit Comparison or Unit-Type Comparison or something)
    • Actions
      • Unit - Set Mana of (Triggering unit) to ((Mana of (Triggering unit)) - 4)
 
Level 3
Joined
Apr 26, 2008
Messages
49
You made me laugh so thats a bonus :D

Sorry i was unclear

The mana must come from the attacker, in my map it is used as Ammo like NOTD and UA

So every time he attacks he looses 4 mana not the person he attacks.
Thanks :)
 
Level 5
Joined
Dec 18, 2007
Messages
205
then
Event: Unit - A Unit Is Being Attacked
Condition: (Attacking Unit) Equal To (Marine?)
Action: Unit - Set Mana of (Attacking Unit) to ((Mana of (Attacking Unit)) - 4)
 
Level 3
Joined
Apr 26, 2008
Messages
49
then
Event: Unit - A Unit Is Being Attacked
Condition: (Attacking Unit) Equal To (Marine?)
Action: Unit - Set Mana of (Attacking Unit) to ((Mana of (Attacking Unit)) - 4)

How do i add in the last trigger?
I can get as far as

Action: Unit - Set Mana of (Attacking Unit) to ((Mana of (Attacking Unit))

But no -4 mana :cry:
 
Level 8
Joined
Mar 12, 2008
Messages
437
How do i add in the last trigger?
I can get as far as

Action: Unit - Set Mana of (Attacking Unit) to ((Mana of (Attacking Unit))

But no -4 mana :cry:

Don't cry, little buddy! First, use triggering unit instead of attacking unit, otherwise it won't work.

I'll explain the rest:

First, your action should look like this, right?
Unit - Set mana of (Triggering unit) to 0.00

Click the "0.00" and choose "Arithmetic".

Then it should say "1.00 + 1.00". Click the first 1.00 and change it to "Mana of (Attacking unit)", then change the plust to a minus, and finally, change the second 1.00 to 4.00.

Now, it should look like this:
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 4.00)
...and there it is.
 
Level 3
Joined
Apr 26, 2008
Messages
49
Don't cry, little buddy! First, use triggering unit instead of attacking unit, otherwise it won't work.

I'll explain the rest:

First, your action should look like this, right?
Unit - Set mana of (Triggering unit) to 0.00

Click the "0.00" and choose "Arithmetic".

Then it should say "1.00 + 1.00". Click the first 1.00 and change it to "Mana of (Attacking unit)", then change the plust to a minus, and finally, change the second 1.00 to 4.00.

Now, it should look like this:
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 4.00)
...and there it is.

:cute:
I'm happy again :grin:

Thanks so much, works even better than i expected

:thumbs_up::infl_thumbs_up::piru:
 
Level 5
Joined
Dec 18, 2007
Messages
205
go to game play constants
and then search a field that says that the hero gains XXX mana regen per intelligence point
 
Status
Not open for further replies.
Top