GetVampire

Revision as of 14:58, 26 January 2009 by imported>DragoonWraith (linked to the PCVampire section of the global var list)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns 1 if the calling NPC has a Vampirism attribute level higher than 0.

NoteEdit

  • Many mods that change how Vampirism work do not actually set the player to have the Vampirism effect played on them, because it causes an aging effect that is considered ugly (and is often bug-ridden in any case). Because the player does not have the Vampirism effect on them, GetVampire will return False (0). Instead, use the PCVampire global variable, like this:
    if (PCVampire > 0)

    rather than

    if (player.GetVampire)
    GetVampire should therefore be reserved for NPCs, since they usually have a fixed vampirism attribute (and there is no corresponding variable for NPCs).

See AlsoEdit