- Posts: 370
- Thank you received: 54
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
thomas wrote: %room.people% is a metavariable. It holds a "characterinfo" variable for the first char in the room.
When echo'ed, it shows the internal ID of the character, prepended by a character unlikely to be the first in a string ('}'). It is not part of the dg API and can be changed without any notice.
As for creating character pointers by doing "set actor_id }1234", you are running into all kinds of potential problems in the long run.
If you need the the id, just extract it directly with %room.people.id%. Using it for calculations seems rather strange to me, as this is an internal id, which may change to another representation in the future (a hash comes to mind, for instance).
As a side note - using %room.people% for anything other than getting the first character for looping, seems suspicious to me.
Please Log in or Create an account to join the conversation.
tbaMUD © 2024