Author Topic: How do I make Chryssalids not always succeed?  (Read 1797 times)

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1068
    • View Profile
Re: How do I make Chryssalids not always succeed?
« Reply #30 on: July 27, 2018, 03:22:11 pm »
Yankes or Ohartenstein can write a script for you

Oh, I thought it was already done.


Simple: the chance of success is checked per attack, and is identical to the soldier's %remaining health. So it's possible for the attack to do no damage and turn them into a zombie, if they had already taken damage before. Probably they have a hole in their armor now...


I guess I'll hop back on the hype train then.

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1068
    • View Profile
Re: How do I make Chryssalids not always succeed?
« Reply #31 on: July 27, 2018, 07:51:14 pm »
I also noticed in stats for nerds, armor has an attribute: Can be Zombified: true. How do I set this false for an armor?

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1426
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: How do I make Chryssalids not always succeed?
« Reply #32 on: July 27, 2018, 07:56:58 pm »
Code: [Select]
    zombiImmune: true

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 4289
  • Aaand we're back!
    • View Profile
    • My Wiki
Re: How do I make Chryssalids not always succeed?
« Reply #33 on: July 27, 2018, 07:57:28 pm »
I also noticed in stats for nerds, armor has an attribute: Can be Zombified: true. How do I set this false for an armor?

If you click on DEBUG button, you get the ruleset names of the attributes, in this case:

Code: [Select]
  zombiImmune: true

Offline Yankes

  • Commander
  • *****
  • Posts: 1976
    • View Profile
Re: How do I make Chryssalids not always succeed?
« Reply #34 on: July 27, 2018, 09:05:05 pm »
Oh, I thought it was already done.


Simple: the chance of success is checked per attack, and is identical to the soldier's %remaining health. So it's possible for the attack to do no damage and turn them into a zombie, if they had already taken damage before. Probably they have a hole in their armor now...


I guess I'll hop back on the hype train then.
Is done in my code but not released. For functionality itself. You get number in range `1` to `100` then you can get value of attack (another number) and some stats of attacker and victim. With all this values you can do any basic arithmetic operations (like `+`, `-`, `/`, `*`, `%`) to get result in range of `0` to `100` and this number will be used by game engine to determine if this victim will change to zombi or not (`0` -> no zombi, `100` -> always zombi).

Offline kharille

  • Captain
  • ***
  • Posts: 363
    • View Profile
Re: How do I make Chryssalids not always succeed?
« Reply #35 on: July 30, 2018, 10:44:38 am »
Oh?  I just shoot rookies and civilians when I know chryssalids are near.

Offline Ethereal

  • Captain
  • ***
  • Posts: 253
    • View Profile
Re: How do I make Chryssalids not always succeed?
« Reply #36 on: July 30, 2018, 11:00:56 am »
I don't really understand what these calculations are for, but I can confirm in armor with "zombiImmune: true" soldiers never become zombies. In the armor without this parameter, from turning into a zombie saves a "melee Dodge:" when Chryssalid stupidly misses the target. However if he not misses, the trouble can not be avoided, but it's as lucky. In General, the instruments to combat Chryssalid and Tentaculat full.