TopicSetFlags

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Sets or returns flags of specified Topic.

Syntax

[help]
(iFlags:int) TopicSetFlags Topic:form Flags:int

Example

set iFlags to TopicSetFlags GREETING
 if GetBit iFlags 1 == 0
   ;Topic is not Top level
   SetBit iFlags 1
   TopicSetFlags GREETING iFlags
 endif 

Topic Flags

Flag Bit Setting
0x1 0 Rumors
0x2 1 Top Level

Notes

  • Changes made by this functions are not saved within a savegame and persistent throughout the game session.