aliens

Author Topic: [MOD] White rabbit  (Read 8002 times)

Offline clownagent

  • Colonel
  • ****
  • Posts: 380
    • View Profile
[MOD] White rabbit
« on: September 09, 2017, 06:40:33 pm »
The attached mod allows the player to buy white rabbits from the magical shoppe. They can give your units a small TU-bonus.

Known issues:
- I could not change the hitAnimation and explosionSound of the corpse explosion.
- I would prefer that the corpse always explodes even when neutralized by melee or stun, but this is not possible.
- The TU-bonus works only up to the TU-maximum of the target unit.
« Last Edit: September 09, 2017, 06:57:00 pm by clownagent »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11722
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [MOD] White rabbit
« Reply #1 on: September 09, 2017, 09:08:16 pm »
Oh man, that's so cool.

Offline wolfreal

  • Colonel
  • ****
  • Posts: 298
    • View Profile
Re: [MOD] White rabbit
« Reply #2 on: September 10, 2017, 12:50:48 am »
One thumb up for this!.

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: [MOD] White rabbit
« Reply #3 on: September 10, 2017, 02:16:11 am »
btw using scripts you could change stats of unit too.
On attack use `Stats.setTimeUnits` to bump battle stats of unit and after couple of turns (counter in custom tag) reduce it to original values using same function.

Offline Dioxine

  • Commander
  • *****
  • Posts: 5455
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: [MOD] White rabbit
« Reply #4 on: September 11, 2017, 11:41:43 am »
Pretty sweet! I think I will be merging this mod into the game. However the ability to set custom death explosion animation would be nice.

Offline Yataka Shimaoka

  • Colonel
  • ****
  • Posts: 284
  • I'm the trouble maker
    • View Profile
Re: [MOD] White rabbit
« Reply #5 on: September 11, 2017, 04:08:27 pm »
Just don't go with the nude ufopaedia

Offline Dioxine

  • Commander
  • *****
  • Posts: 5455
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: [MOD] White rabbit
« Reply #6 on: September 11, 2017, 06:04:36 pm »
It's default now.

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: [MOD] White rabbit
« Reply #7 on: September 14, 2017, 11:16:23 pm »
Pretty sweet! I think I will be merging this mod into the game. However the ability to set custom death explosion animation would be nice.
Corpse define how unit explode as in any other exploding item.

Offline Dioxine

  • Commander
  • *****
  • Posts: 5455
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: [MOD] White rabbit
« Reply #8 on: September 14, 2017, 11:53:55 pm »
Code: [Select]
    hitAnimation: 144
    explosionHitSound: 303

Adding this to corpse item doesn't work, though. It plays default explosion anim and default sound.

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: [MOD] White rabbit
« Reply #9 on: September 15, 2017, 09:30:44 pm »
Code: [Select]
    hitAnimation: 144
    explosionHitSound: 303

Adding this to corpse item doesn't work, though. It plays default explosion anim and default sound.
Right, I find bug, in next version it will work.