A little cheeky i know,but...

wc345

Member
Reaction score
1
Hi again and i know that i get a lil cheeky,but i can't figure it out i search in the forum about my problem and in the google but again i can't solve my problem :\
so how can i make a auto-cast some magic ? like Fire Bolt,but auto-cast :?
I'm sorry about my cheeky,but i just can't figure it out...
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
you base the ability off an auto-cast, like faerie fire or heal for example, and set all the fields to basically nothing, then trigger the firebolt by creating a dummy unit at their location and giving it the firebolt ability then ording to firebolt the target that the player just casted the auto-cast on
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Hi again and i know that i get a lil cheeky,but i can't figure it out i search in the forum about my problem and in the google but again i can't solve my problem :\
so how can i make a auto-cast some magic ? like Fire Bolt,but auto-cast :?
I'm sorry about my cheeky,but i just can't figure it out...

you have to explain a little more detailed.
Do you just want it to look like it is an auto-cast ability? With the golden lights moving around the abilities icon?
Or should it be some un-selectable unit running around and casting fire-bolts when attacking enemies?
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
just give it any ability you like and create a trigger like this:
Code:
Event
 unit is attacked
Condition
 unit type of attacking unit == SOMETOWERUNITTYPE
Action
 order attacking unit to use ABILITY XYZ against attacked unit
Will do the trick and is fairly effective.
 

wc345

Member
Reaction score
1
It works fine,but why the box with lives is just box without numbers when i add this trigger :?
 

Inflicted

Currently inactive
Reaction score
63
It shouldn't be.
Do you want like Searing Arrows on Auto-Cast?
When its created, you can order it to turn onto auto-cast.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
It works fine,but why the box with lives is just box without numbers when i add this trigger :?

Do you mean its hitpoints?
Thats because your tower got far too many hitpoints or is invulnerable. Nothing to do with the trigger.
 

wc345

Member
Reaction score
1
I recreated your scoreboard system again and now it's works fine,but why when 1 unit enters in that region game overs instead 30 ?
I'm sorry about this...
 

Inflicted

Currently inactive
Reaction score
63
Can i see the change you made to the trigger about entering the Region where lives are lost.
Also are you sure lives arent set to 1 or 0.
Ensure it Subtracts a life and not sets it etc.
Need to see your changes to give more accurate possible solutions.
 

wc345

Member
Reaction score
1
Well,i don't change anything in the trigger,just copy it and paste it into my map

Create Stuff
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Lives
Set PlayerRedLives = 30
Set PlayerBlueLives = 30
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label (Name of Player 1 (Red)) and value PlayerRedLives
Leaderboard - Add Player 2 (Blue) to (Last created leaderboard) with label (Name of Player 2 (Blue)) and value PlayerBlueLives

Lose a life
Events
Unit - A unit enters Region 004 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Set PlayerRedLives = Chances
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to Chances
Unit - Explode (Entering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PlayerRedLives Equal to 0
Then - Actions
Game - Defeat Player 1 (Red) with the message: Defeat! You have no...
Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
Else - Actions


Lose a life 2
Events
Unit - A unit enters Region 004 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Set PlayerBlueLives = Chances2
Leaderboard - Change the value for Player 2 (Blue) in (Last created leaderboard) to PlayerBlueLives
Unit - Explode (Entering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PlayerBlueLives Equal to 0
Then - Actions
Game - Defeat Player 2 (Blue) with the message: Defeat! You have no...
Game - Victory Player 1 (Red) (Show dialogs, Show scores)
Else - Actions

That's it...
 

wc345

Member
Reaction score
1
Well the problem is that when 1 unit enters a region the numbers become 0 and it says Defeat...
 

Inflicted

Currently inactive
Reaction score
63
Does it say 30 the whole time before that?
That is quiet odd.
(Do you have any triggers on death of enemies?)
 

afisakov

You can change this now in User CP.
Reaction score
37
My guess is that the problem is
Set PlayerRedLives = Chances
If chances is set to 0 by default and u never changed it that could explain why lives drop to 0 as soon as 1 unit leaks.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top