Jump to content


Photo

Strange parse error while installing mod


  • Please log in to reply
2 replies to this topic

#1 Darios

Darios
  • Member
  • 7 posts

Posted 21 March 2004 - 10:30 AM

While installing the mod I'm working on, WeiDU gives me the following parse error:

[amber/scripts/m#lorrai.baf] PARSE ERROR at line 55 column 28-28
Near Text: )
[FillSlot] argument [SLOT_AMULET] not found in [SLOTS.IDS]

The strange thing is, that at least _I_ can find SLOT_AMULET as an entry in SLOTS.IDS, and what's more, the script works just as intended. It seems it's just WeiDU thinking that there is something wrong when there really isn't. The piece of script in question is as follows:

IF
(whole lot of triggers here...)
THEN
RESPONSE #100
DestroyItem("minhp20")
CreateItem("minhp1",0,0,0)
FillSlot(SLOT_AMULET)
SetGlobal("M#LorraineMinHPto1","Locals",1)
END

As the script works anyway, this is more of a cosmetic problem, as I would like the mod to install neatly without any unsightly error messages.

#2 Idobek

Idobek

    Pocket Plane Gibberling

  • Member
  • 429 posts

Posted 21 March 2004 - 10:52 AM

Yeah, this has been reported before. I don't know the reason. It works becasue WeiDU places a 0 where SLOT_AMULET was which happens to be the correct number for the slot. You can simply use 0 here yourself to avoid error messages:

IF
(whole lot of triggers here...)
THEN
RESPONSE #100
DestroyItem("minhp20")
CreateItem("minhp1",0,0,0)
FillSlot(0) // SLOT_AMULET
SetGlobal("M#LorraineMinHPto1","Locals",1)
END

#3 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 23 March 2004 - 01:11 PM

SLOTS.IDS is missing the header.
Avenger