Author Topic: Problem with default jennybot in campus  (Read 2501 times)

Offline jaxom

  • Acquaintance
  • *
  • Posts: 1
    • View Profile
Problem with default jennybot in campus
« on: February 19, 2008, 07:54:33 AM »
Hi, I think there is a problem with the standard jennybot as is included in the current ds distribution:
The long description is not displayed at all when looking at jenny.
The line "SetLong( (: LongDesc :) );" seems to be the problem. Perhaps "SetLong" does only accept static content/strings as argument?

Thomas


Offline tigwyk

  • Acquaintance
  • *
  • Posts: 45
    • View Profile
Re: Problem with default jennybot in campus
« Reply #1 on: February 19, 2008, 02:31:47 PM »
I'm quite certain SetLong() can accept a functional as an argument (because I've used it before like that) but I'm not sure why it would break in your case.

Can you post the error? (May have to check the runtime log if you aren't actually seeing the error.)

Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1020
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
Re: Problem with default jennybot in campus
« Reply #2 on: February 19, 2008, 05:27:35 PM »
It's because jenny's variables get saved, but
ExternalDesc is a function for her, and so
it winds up getting set to 0 whenever she
is cloned. It's a fairly unusual situation. Most
npc's don't save state.

It'll be fixed in the next release. ExternalDesc in
/lib/events/look.c will be static.

Thanks for the heads up!

-Crat