Author Topic: Script warnings  (Read 3611 times)

Offline Lollorian

  • Planewalker
  • *****
  • Posts: 96
Script warnings
« on: March 24, 2010, 10:04:56 AM »
One of the scripts in UB has an errant "Myself" (with quotes) ... it creates warnings when compiled cause BGII uses Myself (without quotes) :)

I tried to attach the corrected script here :P Thanks!

Offline Lollorian

  • Planewalker
  • *****
  • Posts: 96
Re: Script warnings
« Reply #1 on: April 28, 2010, 07:50:08 PM »
In ub\encount\u!0400.baf, the second block contains CreateCreature()'s with more than 8-char names ... is this supposed to be fixed?? :P
Code: [Select]
IF
Global("SlumsMugging","AR0400",0)
OR(2)
TimeLT(4)
TimeGT(22)
THEN
RESPONSE #100
SetGlobal("SlumsMugging","AR0400",1)
CreateCreature("SlumsMugger2",[1435.602],8)
CreateCreature("SlumsMugger4",[1437.604],8)
CreateCreature("Slvic01",[1434.605],8)
END

Offline Miloch

  • Barbarian
  • Planewalker
  • *****
  • Posts: 1032
  • Gender: Male
Re: Script warnings
« Reply #2 on: April 29, 2010, 12:54:15 AM »
Unlike some other scripting commands, CreateCreature() uses the filename rather than the scripting variable, so it can't be more than 8 characters. Someone would have to figure out which creature filenames it's supposed to be creating.

Offline Wisp

  • Planewalker
  • *****
  • Posts: 1176
Re: Script warnings
« Reply #3 on: April 29, 2010, 05:02:50 AM »
It's mugger2 and mugger4.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: