Jump to content


Photo

Parsing Error


  • Please log in to reply
3 replies to this topic

#1 Lone Wolf

Lone Wolf

    The guy with the most serious looking avatar ever

  • Member
  • 13 posts

Posted 01 January 2003 - 09:07 AM

After trying to compile this:
IF ~~ THEN BEGIN Armory
	SAY ~Alright, the armory it'll be.~
	IF ~~ THEN DO ~StartStore("FWStor01",LastTalkedToBy())~ EXIT
END

IF ~~ THEN BEGIN Arsenal
	SAY ~Alright, the arsenal it'll be.~
	IF ~~ THEN DO ~StartStore("FWStor02",LastTalkedToBy())~ EXIT
END
WeiDU spitted out an parsing error at last character of the DO block in the Armory state. StartStore is exactly the same as in Action.ids.
After decompiling Ribald.dlg (with --trans --nocom) there is an state very much alike:
IF ~~ THEN BEGIN 2
  SAY @11
  IF ~~ THEN DO ~StartStore("ribald",LastTalkedToBy())
~ EXIT
END
And here I got the same error.
The speed of light just isn't fast enough.

#2 Dyara

Dyara
  • Member
  • 262 posts

Posted 01 January 2003 - 09:49 AM

Change 'LastTalkedToBy()' to 'LastTalkedToBy(Myself)' and WeiDU will be satisfied.

#3 Lone Wolf

Lone Wolf

    The guy with the most serious looking avatar ever

  • Member
  • 13 posts

Posted 01 January 2003 - 11:10 AM

Yes, I just found out. Odd though, NI compiles such scripts perfectly...
The speed of light just isn't fast enough.

#4 cirerrek

cirerrek
  • Member
  • 193 posts

Posted 01 January 2003 - 09:03 PM

Just a FYI,

The NI compiler wasn't set up to recognized () as defaulting to Myself, until the most recent version.