This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Difference between revisions of "GetVampire"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(rewording the note)
imported>DragoonWraith
(linked to the PCVampire section of the global var list)
 
Line 3: Line 3:
== Note ==
== Note ==


<ul><li>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 variable, like this:
<ul><li>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 [[List of global variables#PCVampire|PCVampire]] global variable, like this:
<pre>if (PCVampire > 0)</pre>
<pre>if (PCVampire > 0)</pre>
rather than
rather than

Latest revision as of 14:58, 26 January 2009

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

Note[edit | edit source]

  • 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 Also[edit | edit source]