How to Make a boss cast a spell At some event?

Kalder

New Member
Reaction score
1
For my ORPG map i am going to have a boss that uses specific custom abilities. How do i make it so that after some event(Game time, on attack etc.) He will cast the spell on his target because if i use the order to attack or cast a spell on a target it only will let me choose the abilities already in the game. How do i make it so he will cast the ability after some kind of event. Thank you for all info given. :thup::D:thup:
 

jig7c

Stop reading me...-statement
Reaction score
123
what event exactly are you talking about?

if it is after XXX seconds of game time, you might want to put that boss into a unit variable at map init, and then order it to cast that ability...
does the boss already have that ability from that start?

Trigger:
  • Unit - Add Blink to Some unit
    • Set level of Blink for Some unit to 1,2,3, etc...
    • Order Some unit to cast Blink (target point of ability being cast/target unit of ability being cast)
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Trigger:
  • Unit - Add Blink to Some unit
    • Set level of Blink for Some unit to 1,2,3, etc...
    • Order Some unit to cast Blink (target point of ability being cast/target unit of ability being cast)

Wooow extremely free hand lol.
 

Kalder

New Member
Reaction score
1
Yes he does have this ability from the start of the game

Yes he does have this ability from the start of the game and how do i make it so he casts it every XXX Seconds of game time
 

jig7c

Stop reading me...-statement
Reaction score
123
is that boss already placed on the map when the game begins, or he comes in later?
what spell are you casting also?
 

Kalder

New Member
Reaction score
1
He casts...

He is on the map from the start and he casts 4 different spells that are trigger enhanced
 

jig7c

Stop reading me...-statement
Reaction score
123
is the ability being casted on an enemy unit (i.e. shadow strike) or at a point (i.e. carrion swarm)
 

Light Alkmst

New Member
Reaction score
20
when you create custom abilities, they retain the same ability order keyword. i.e. creating an enhanced blink. even if the new ability is not actually called blink or has a completely different triggered functionality, through triggers, it is still ordered with the same keyword
 

Kalder

New Member
Reaction score
1
could work

the boss i have curently has 1 spell based off neutral hostile firebolt, 1 off of chainlightning and one off of acid bomb. So would i just do the basic spells or not?

Edit: I have 2 different spells done so far
Trigger:
  • Power Cannon Blast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Power Cannon Blast
    • Actions
      • Unit - Pause (Triggering unit)
      • Unit - Make (Triggering unit) Invulnerable
      • Unit - Create 1 Power Cannon Strike (Blue) for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (-600.00, 0.00)) facing 90.00 degrees
      • Wait 2.00 seconds
      • Unit - Create 1 Power Cannon Strike (Green) for (Owner of (Triggering unit)) at ((Center of (Playable map area)) offset by (0.00, -600.00)) facing Default building facing degrees
      • Wait 2.00 seconds
      • Unit - Create 1 Power Cannon Strike (Red) for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (600.00, 0.00)) facing Default building facing degrees
      • Wait 2.00 seconds
      • Unit - Create 1 Power Cannon Strike (Black) for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (0.00, 600.00)) facing Default building facing degrees
      • Wait 2.00 seconds
      • Lightning - Create a Mana Flare lightning effect from source ((Position of (Triggering unit)) offset by (-600.00, 0.00)) to target ((Position of (Triggering unit)) offset by (0.00, -600.00))
      • Wait 1.00 seconds
      • Lightning - Create a Mana Flare lightning effect from source ((Position of (Triggering unit)) offset by (0.00, -600.00)) to target ((Position of (Triggering unit)) offset by (600.00, 0.00))
      • Wait 1.00 seconds
      • Lightning - Create a Mana Flare lightning effect from source ((Position of (Triggering unit)) offset by (600.00, 0.00)) to target ((Position of (Triggering unit)) offset by (0.00, 600.00))
      • Wait 1.00 seconds
      • Lightning - Create a Mana Flare lightning effect from source ((Position of (Triggering unit)) offset by (600.00, 0.00)) to target ((Position of (Triggering unit)) offset by (-600.00, 0.00))
based off of thunder clap

Trigger:
  • Rotting Corrupted Blast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • (Ability being cast) Equal to Rotting Corrupted Blast
    • Actions
      • Wait 3.00 seconds
      • Unit - Pause (Target unit of ability being cast)
      • Wait 3.00 seconds
      • Unit - Unpause (Target unit of ability being cast)
      • Wait 3.00 seconds
      • Unit - Pause (Target unit of ability being cast)
      • Wait 3.00 seconds
      • Unit - Unpause (Target unit of ability being cast)
      • Wait 3.00 seconds
      • Unit - Pause (Target unit of ability being cast)
      • Wait 3.00 seconds
      • Unit - Unpause (Target unit of ability being cast)
based off of acid bomb

So how would i make it so every XXX seconds of game after engaging him he would cast the spell(s)
or if someone did a specific thing to him he would cast the spell
 

jig7c

Stop reading me...-statement
Reaction score
123
what you would want to do is:

for the thunder clap-based ability..

Trigger:
  • Trigger1
    • Events
      • Every XX seconds of the game-time
    • Conditions
    • Actions
      • Unit - Order Boss <1000> to cast Human - Thunder Clap


for acid bomb...
Trigger:
  • Trigger2
    • Events
      • Every XX seconds of the game-time
    • Conditions
    • Actions
      • Unit - Order Boss <1000> to cast Acid Bomb


for firebolt
Trigger:
  • Trigger3
    • Events
      • Every XX seconds of the game-time
    • Conditions
    • Actions
      • Set Tempgroup = Units within 300 of Boss <1000>
      • Set Tempunit = Random unit from Tempgroup
      • Unit - Order Boss <1000> to cast Neutral - Firebolt on Tempunit
      • Custom script: set udg_Tempunit = null
      • Custom script: call DestroyGroup (udg_Tempgroup)


all the triggers above will cast a spell after XX seconds...
now if you want him to cast a spell when he is engaged, you have to change the event to A unit is attacked, but if you do that, the boss will always cast a spell...

if you want the boss to cast a spell at random times when he is engaged... change the top part of the trigger to something like this...

Trigger:
  • Trigger1
    • Events
      • A unit is attacked
    • Conditions
      • Attacked unit equal to Boss<1000>
      • Random integer between 1 and 100 equal to or less than 25
    • Actions
      • .....

this will give the boss a 25% chance to cast a spell when the boss is engaged...
 

Kalder

New Member
Reaction score
1
Boss <1000>?

What exactly is boss<1000>?

Is it the name of the unit that is on the map at the start like i said?

Which would be more convenient or better to use: spawn the boss at some time or at an event or instead i put him on the map from the start of the game?:confused:
 

Corleone

New Member
Reaction score
44
Boss<1000> refers to the Boss unit in your map. It would probably be easier to just put it in the map right at the started, instead of through triggers.
 

jig7c

Stop reading me...-statement
Reaction score
123
both methods are easier..

if the boss is already on the map, when you make the triggers, that's how it'll look.. Boss <####>...

if the boss is being created thru a trigger later on, right after the boss is created, just set that boss to an unit variable.. and you can use that unit-variable later on for the spell triggers..
 

Nyrano

New Member
Reaction score
4
For some similarity...

I am creating a co-op RPG map with bossfights as well. And what you are suggesting (casting some spell every X seconds) is easily done by the trigger that jig7c wrote.

What I just want to add:

The every X seconds triggers are initially off.

Trigger:
  • Event: Boss takes damage.
    • Conditions:
    • Actions: Turn off (This trigger)
    • Turn on (the triggers that cast spells every X seconds)


And in my map I have got an aggro system called ZTS (all credit to the creators of that system) which reset health to 100% when out of range or no more players around.
In that way you can make a trigger which only runs when the unit has taken damage and checking every X seconds when the boss has 100% HP (so he resetted through the system), to disable all the triggers again and remove all the buffs from him.

It's not very hard and not very easy, but it is possible for you to do... Quite a neat reset system for bosses to be honest. :)
 

Kalder

New Member
Reaction score
1
Good idea Nyrano!

Nyrano that is a very good idea, they both work but yours just seems to be a bit cleaner towards one of the ideas i had "Every XXX seconds of game time make XXXXXX Cast XXXXX" because it doesn't have it constantly running and i think that uses up less space in the map reducing lag even though it reduces it by a miniscule amount. Good Luck to you on your (O)rpg map also.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage

      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