- Joined
- May 22, 2005
- Messages
- 256
I've scoured the list of triggers in search of this, and remember it being possible, to change the name of a specific item or unit once in game. Example: You have a thing of shimmerweed, something happens, and it becomes 'burnt shimmerweed' or 'tasty shimmerweed' without the need to create an entirely seperate item.
What I'm trying to do is create food bowls that are renamed after the contents inside of them.
Bowl + Macaroni = Bowl of macaroni. Since there are so many different types of combinations, I can't create an individual item for each. Plus if I did that, I would have to revamp my entire system.
Currently I've worked out a system from scratch that by using hashtables allows items to store other items and remember whats inside. I'm using it for a post office system at the moment but want to use it for food also.
Right now, if you have an envelope and click on an item it becomes a letter or parcel depending on the items class. Clicking on the letter or parcel retrieves the item. The system is perfected and you can have multiple letters/parcels in your inventory, retrieving each item's specific item.
Transferring that over to a food system, I'll be able to create a cooking system that allows a dish, when clicked and eaten, to give you the effects of the ingredients used to make it + the bonus of the food created. My problem stands with this naming issue.
If I were to retain the current method of putting food into a bowl and getting a "full bowl" item, then the player would have no idea what was inside until they eat it. However if I can rename their specific bowl, then they would know that they're eating macaroni, pasta, salad, rat poison, ect. and would know what to expect to benefit.
Is there a way to do this in world-editor or with Jass scripting?
What I'm trying to do is create food bowls that are renamed after the contents inside of them.
Bowl + Macaroni = Bowl of macaroni. Since there are so many different types of combinations, I can't create an individual item for each. Plus if I did that, I would have to revamp my entire system.
Currently I've worked out a system from scratch that by using hashtables allows items to store other items and remember whats inside. I'm using it for a post office system at the moment but want to use it for food also.
Right now, if you have an envelope and click on an item it becomes a letter or parcel depending on the items class. Clicking on the letter or parcel retrieves the item. The system is perfected and you can have multiple letters/parcels in your inventory, retrieving each item's specific item.
Transferring that over to a food system, I'll be able to create a cooking system that allows a dish, when clicked and eaten, to give you the effects of the ingredients used to make it + the bonus of the food created. My problem stands with this naming issue.
If I were to retain the current method of putting food into a bowl and getting a "full bowl" item, then the player would have no idea what was inside until they eat it. However if I can rename their specific bowl, then they would know that they're eating macaroni, pasta, salad, rat poison, ect. and would know what to expect to benefit.
Is there a way to do this in world-editor or with Jass scripting?