- Posts: 28
- Thank you received: 5
Custom Object Names
- Sapphire
- Topic Author
- Offline
- Junior Member
-
Less
More
3 weeks 3 days ago - 3 weeks 3 days ago #10345
by Sapphire
Custom Object Names was created by Sapphire
Hi everyone,
I'm trying to figure out how to use stock TBAMud code to implement custom objects. I'm able to get the game to where the objects receive their custom name at an enchanter type mob I created. The issue I am having is when a player logs out and returns, the game takes on the object prototype name instead of the one saved to the player's object file. Does anyone know how to get obj->name, obj->short_description to pull from the player's object/save file rather than a prototype of that objects VNUM? The end goal would be to have a player go to an enchanter mob, spend a token, being able to re-string the name of his/her object, and have their own custom named object to wear on their equipment. I have everything on that list working except the ability to log out, log back in, and for that custom name to not be switched back to what it was prior to the customization.
Thanks in advance!
Sapphire
I'm trying to figure out how to use stock TBAMud code to implement custom objects. I'm able to get the game to where the objects receive their custom name at an enchanter type mob I created. The issue I am having is when a player logs out and returns, the game takes on the object prototype name instead of the one saved to the player's object file. Does anyone know how to get obj->name, obj->short_description to pull from the player's object/save file rather than a prototype of that objects VNUM? The end goal would be to have a player go to an enchanter mob, spend a token, being able to re-string the name of his/her object, and have their own custom named object to wear on their equipment. I have everything on that list working except the ability to log out, log back in, and for that custom name to not be switched back to what it was prior to the customization.
Thanks in advance!
Sapphire
Last edit: 3 weeks 3 days ago by Sapphire.
Please Log in or Create an account to join the conversation.
- thomas
-
- Offline
- Administrator
-
Less
More
- Posts: 818
- Thank you received: 159
3 weeks 2 days ago - 3 weeks 2 days ago #10346
by thomas
Replied by thomas on topic Custom Object Names
It's as easy as setting the vnum of the object you altered to NOTHING, if I recall correctly.
Last edit: 3 weeks 2 days ago by thomas.
Please Log in or Create an account to join the conversation.
Time to create page: 0.095 seconds