Author Topic: Composite mob type with bomb abilities.  (Read 8221 times)

bewt

  • Posts: 22
  • Maggot Crusher.
    • View Profile
Composite mob type with bomb abilities.
« on: March 21, 2014, 08:41:44 PM »
Hey all.

I was wondering if there was a way to add the bomb unit ability to a composite mob.

I want to make an enemy that runs at the player and explodes when in a certain range.

Additionally is there a resource which allows me to look at all of the nuances of mob .xmls? eg type, attacks, etc.

bewt

  • Posts: 22
  • Maggot Crusher.
    • View Profile
Re: Composite mob type with bomb abilities.
« Reply #1 on: March 21, 2014, 09:06:03 PM »
Furthermore I'm not talking about a bomb drop on death like the wisp does.

I want something like a slime that can move.

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Re: Composite mob type with bomb abilities.
« Reply #2 on: March 21, 2014, 09:25:04 PM »
So a creeper?


bewt

  • Posts: 22
  • Maggot Crusher.
    • View Profile
Re: Composite mob type with bomb abilities.
« Reply #3 on: March 21, 2014, 09:34:27 PM »
lol kind of like a creeper yeah.

Imagine walking through a dark hallway and hearing a shrill scream. A dark figure sprints at you, as fast, or faster than you can run. At the last second it explodes, doing damage to you and leaving behind a couple more creatures which are similar (but don't explode).

Hipshot

  • Developer
  • Posts: 455
  • Level Designer
    • View Profile
Re: Composite mob type with bomb abilities.
« Reply #4 on: March 22, 2014, 10:05:24 AM »
No, you can't - yet.
Myran has made such a behavior, but it won't be in the game until the next time we patch it and I don't know when that is.

bewt

  • Posts: 22
  • Maggot Crusher.
    • View Profile
Re: Composite mob type with bomb abilities.
« Reply #5 on: March 22, 2014, 08:52:03 PM »
Ah okay. Is that going to be the same patch as the desert campaign? And will it happen before June?

Hipshot

  • Developer
  • Posts: 455
  • Level Designer
    • View Profile
Re: Composite mob type with bomb abilities.
« Reply #6 on: March 23, 2014, 04:00:03 PM »
I wouldent mind patching in the classes before the desert campaign, but that's not really up to me.
What happens in June? You can rest assured that the abillity will be in before June.

bewt

  • Posts: 22
  • Maggot Crusher.
    • View Profile
Re: Composite mob type with bomb abilities.
« Reply #7 on: March 24, 2014, 08:10:42 PM »
My friends and I are aiming to release a pretty extensive campaign before June.

I'm in charge of most of the .xmls, new creature creation, and balance. And I am responsible for about half of the level design.

I don't want to give any details but If it's half as good as the normal campaign I will be happy.

Myran

  • Developer
  • Posts: 183
    • View Profile
Re: Composite mob type with bomb abilities.
« Reply #8 on: April 16, 2014, 12:42:18 PM »
So I added an explode skill in to 1.22 which I think works like you want it to, here's an example of the xml:

Code: [Select]
<array name="skills">
<dictionary>
<string name="type">explode</string>
<string name="anim-set">attack</string>
<int name="cooldown">0</int>
<float name="range">2</float>

<string name="sound">sound/monsters.xml:lich_summon</string>
<string name="effect">effects/particles.xml:flash</string>

<string name="particle">effects/particles.xml:ice-particle</string>
<dictionary name="light">
<float name="add-range">8</float>
<string name="add-color1">10 100 150</string>
<string name="add-color2">0 50 100</string>
<string name="add-color3">0 50 75</string>
</dictionary>

<float name="splash">5</float>
<int name="dmg">25</int>
<string name="buff">buffs/frost.xml</string>
<bool name="suicide">true</bool>
</dictionary>
</array>

You can remove the particle or light if you don't want those in the explosion effect. And you can set suicide to false if you don't want the enemy to also be destroyed.

bewt

  • Posts: 22
  • Maggot Crusher.
    • View Profile
Re: Composite mob type with bomb abilities.
« Reply #9 on: April 22, 2014, 10:21:35 PM »
Sweet, this is exactly what I needed.

Are there ever going to be hooks for custom potions?

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: Composite mob type with bomb abilities.
« Reply #10 on: April 29, 2014, 02:09:23 AM »
It has been suggested, I'm not sure if Myran has made a decision on that yet. There are the buffs for dmg and speed that you can pull off with an area script, but so far there is not a way to make custom potions that you pop at any time. Make some noise on that I wanted it since a while back :D