Перейти к содержимому

Фотография

Dynamic Boss Fight


  • Пожалуйста, авторизуйтесь, чтобы ответить
3 ответов в этой теме

#1
Lucrane

Lucrane
  • Members
  • 163 сообщений
Polishing some odds and ends on this project. I have a cutscene that launches a boss fight no problem. The issue I'm running into is I want the fight to be more engaging, i.e. the following, if its even possible:

How would you go about having the boss fight spawn a series of creatures on hearbeat or over a period of time? The general idea is that the player is fighting the boss but he spawns adds through a gate that rush in, the longer the fight takes the more adds that spawn and the faster they come rushing in.

Two things need to happen during the fight. Right now I have it so boss's engaged there are three enemies with him, but while that's happening the main gate is shaking as its being assaulted. Eventually I would like it to have a burst open anim and then for the additional enemies to start running in. Seems pretty invasive, but the biggest issue I'm seeing for me is getting the spawn timer going. Anyway to do that?

Also I've been able to fire actions based on cutscense etc, but haven't been able to figure out how to have a creatures death trigger a cutscene.

#2
Sunjammer

Sunjammer
  • Members
  • 925 сообщений
I believe here is a heartbeat event that you can use however it is probably a little to quick so you might only trigger the spawn every x beats (a local variable on the area or boss can track that for you).

Another way to do it would be to create a function that triggered a custom delayed event that in turn caused the function.

Finally you could base it on the damage done to the boss rather than time using the appropriate event on the boss.

#3
dr.drummie

dr.drummie
  • Members
  • 51 сообщений
I'm not at toolset, but I guess you can trigger cutscene from creature script (EVENT_TYPE_DEATH) or from area script (EVENT_TYPE_TEAM_DESTROYED), if latter just put boss in separate team so when his team (he alone) is destroyed you can do what you need too..

#4
Lucrane

Lucrane
  • Members
  • 163 сообщений
Cool, thanks guys I'll have to try these out when I get back later today. I did have success with the cutscenes though. I'm using a creature script on EVENT_TYPE_DYING for it I believe, and that's working out. Right now everything just mobs in during the fight instead of a slow invasion, but I'll try out Sunjammer's suggestion and hopefully that will have results :D