Why is this not functoning?

This seems like the simplest of simple, I have a box in my game that when picked up will change its name and description, The look changes fine but the alias seems to not want to shift...

EndlessFudge.alias = "Overflowing Fudge Box"


Code looks okay, so I can only guess at what else is going on.

Have you cloned EndlessFudge, and changing the alias on the clone?

If using the desktop version, when playing the name, after picking up the box, click the debugger button, and you can look at the attributes of each object. Check the "alias" attribute there and see if it changed.


Odd the alias seems to change fine but the listalias property , not sure how that was added to the object, don't remember adding it, and not one of the normal alt names i put in


K.V.

Odd the alias seems to change fine but the listalias property , not sure how that was added to the object, don't remember adding it, and not one of the normal alt names i put in

It sounds like something in your code is changing EndlessFudge.listalias at some point.

Either search for "listalias" in full code view to find that code, or just add this when you change the alias:

EndlessFudge.listalias = "Overflowing Fudge Box"

Dang... I could really go for some fudge right about now...

Curse you, Talon! :)


K.V.

PS

If a listalias is never set, I believe it will change whenever the alias is changed, but, once the listalias is set (even one time), it will not be effected by an alias change.


well fixed the problem by having the command change listalias as wee, but really only appears twice in the code elsewhere, (Checked to see if it appeared again by doing a codeview search for listalias) its almost as though it gets somewhere in the coding from when i start to when i go the two steps into the room with the fudge. Wonder if its some leftover code from a library i'm using

P.s. And when I made sweet and tasty objects I damn myself, i'm trying to be on a diet....


K.V.

Wonder if its some leftover code from a library i'm using

It could be, but I don't know why anything would change a list alias for anything except a wearable item or a combat object.


when I made sweet and tasty objects I damn myself, i'm trying to be on a diet....

Ha-ha!

That explains why they sound so good when you write about them!


SIDENOTE

I switched to all organic food a little more than a year ago. (This was only an attempt to improve my overall health, which I hoped would help my lower back heal.)

I eat MORE of the same foods I used to eat, and I eat more often. I just eat the REAL version of the foods.

I lost 30 pounds in the first month.


Wonder if its some leftover code from a library i'm using

It could be, but I don't know why anything would change a list alias for anything except a wearable item or a combat object.

My first thought was if the OP might be using one of the scripts we previously posted to nest containers-in-containers in the inventory pane. Those scripts would add a listalias to all reachable objects as soon as the player entered the room.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums