Skip to content

Commit af30003

Browse files
committed
Changed GetObjectByTagAndType doc fix
1 parent bd386e4 commit af30003

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎nwscript_doc_fixes.py‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
def get_doc_fix(script, symbol) -> str:
55
return {
66
"nwscript": {
7-
"GetObjectByTagAndType": ("Broken", "Always returns OBJECT_INVALID"),
87
"SetFog": ("Broken", "Does nothing"),
98
"EffectDisintegrate": ("Broken", "Does nothing"),
109
"EffectDisappearAppear": ("Broken", "Creature does not reappear at passed in location"),
@@ -31,6 +30,16 @@ def get_doc_fix(script, symbol) -> str:
3130
"EffectTimeStop": ("Broken", "Does nothing"),
3231
"GetCasterClassSpellSchool": ("Broken", "Aborts the script execution, and crashes the server in some conditions"),
3332

33+
"GetObjectByTagAndType": ("Warning", """
34+
nObjectType parameter does not use OBJECT_TYPE constants. You must instead use the following constants:<br>
35+
AREA = 0x04          CREATURE = 0x05  ITEM = 0x06<br>
36+
TRIGGER = 0x07       PLACEABLE = 0x09 DOOR = 0x0A<br>
37+
AREAOFEFFECT = 0x0B  WAYPOINT = 0x0C  ENCOUNTER = 0x0D<br>
38+
STORE = 0x0E         SOUND = 0x10     STATIC_CAMERA = 0x12<br>
39+
ENV_OBJECT = 0x13    TREE = 0x14      LIGHT = 0x15<br>
40+
PLACED_EFFECT = 0x16<br>
41+
<small>GUI = 0x01 TILE = 0x02 MODULE = 0x03 PROJECTILE = 0x08 DYNAMIC = 0x11 PORTAL = 0x0F</small>
42+
"""),
3443
"GetDescription": ("Warning", """
3544
GetDescription will return "" if the description has not been previously set with SetDescription
3645
"""),

0 commit comments

Comments
 (0)