SplitCreature

From NWN Lexicon


Contents

[edit] SplitCreature(object, int)

Handles the "split" functionality of the Ochre Jellies.

void SplitCreature(
    object oCreature,
    int iHP
);

[edit] Parameters

oCreature

The ochrejelly that the spawns will be created near.

iHP

Used to generate damage to the spawns.


[edit] Description

This function will spawn two of the next size smaller ochre jellies at the target ochre jellys' location.

It will then apply a bit of damage to the two spawns, and adjust their hit dice level down by 2 or 4, from the target ochre jellys' current HD.



[edit] Remarks

The formula for iHP is damage = GetCurrentHitPoints(firstspawn)-(iHP / 2).

Reading this function it appears that only jellys with the resrefs of, "nw_ochrejellylrg" or "nw_ochrejellymed" will actually have clones split off. There are references to other resrefs, but these have been commented out.

[edit] Requirements

#include " nw_i0_ochrejelly "


[edit] Version

???


author: Baragg, editors: Mistress, Kolyana

Personal tools
Categories