Jump to content
×
×
  • Create New...
  • 0

Itemdesc help


damcej

Question

6 answers to this question

Recommended Posts

  • 0

Or much funny like this:

	if itemVnum in (50011, 50012, 50013):
		pItem_list = {
			50011 : ["[i]", "TextLine 1!", "TextLine 2!", "TextLine 3!", "TextLine 4!"], # bla bla bla
			50012 : ["[i]", "TextLine 1!", "TextLine 2!", "TextLine 3!", "TextLine 4!"],	
			50013 : ["[i]", "TextLine 1!", "TextLine 2!", "TextLine 3!", "TextLine 4!"]}							
					
		self.AppendSpace(5)	
		for i in xrange(len(pItem_list[itemVnum])):
			self.AppendTextLine(pItem_list[itemVnum][i], self.SPECIAL_POSITIVE_COLOR)

 

  • Love 3
Link to comment
  • 0
2 minutes ago, VegaS said:

Or much funny like this:

	if itemVnum in (50011, 50012, 50013):
		pItem_list = {
			50011 : ["[i]", "TextLine 1!", "TextLine 2!", "TextLine 3!", "TextLine 4!"], # bla bla bla
			50012 : ["[i]", "TextLine 1!", "TextLine 2!", "TextLine 3!", "TextLine 4!"],	
			50013 : ["[i]", "TextLine 1!", "TextLine 2!", "TextLine 3!", "TextLine 4!"]}							
					
		self.AppendSpace(5)	
		for i in xrange(len(pItem_list[itemVnum])):
			self.AppendTextLine(pItem_list[itemVnum][i], self.SPECIAL_POSITIVE_COLOR)

 

Yes that's correct, but the item_desc already supports it by using the | command! No need to modify the py's.

 

  • Love 1

👑 Premium International Lua Developer 👑

 My service topic: https://bit.ly/2UPly54

 

Ignorant people have the obligation to compensate their ignorance by paying whoever helps them.

Syreldar

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.