- Joined
- Jul 18, 2009
- Messages
- 81
So I'm having a weird issue with generating items with LUA. It generates the item fine but my other items get changed in the process.
For example I have and item with a tooltip layout like this:
"Item description (there should be a blank line between this and the stats).
Stats
Item Type"
Using ctrl-Enter to create the new lines (rather than |n because I find it more readable).
However, after I've created a new item with LUA, it adds an addition line between the Description and Stats. It looks the same in the editor but ingame there is clearly another line.
Has anyone else ever encountered this problem and is there a solution (other than avoiding using ctrl-Enter)?
I made a testmap illustrating the problem. Instructions:
For example I have and item with a tooltip layout like this:
"Item description (there should be a blank line between this and the stats).
Stats
Item Type"
Using ctrl-Enter to create the new lines (rather than |n because I find it more readable).
However, after I've created a new item with LUA, it adds an addition line between the Description and Stats. It looks the same in the editor but ingame there is clearly another line.
Has anyone else ever encountered this problem and is there a solution (other than avoiding using ctrl-Enter)?
I made a testmap illustrating the problem. Instructions:
- Run the map a first time to see the correct tooltip layout
- Open the map, enable the "Generate" trigger and save
- Close and then reopen the map
- Disable the "Generate" trigger and save
- Test the map and see that the item now has an additional line between the description and stats