View Single Post
Old 11-10-2007, 06:36 AM   #249
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by Soulforged
trying to assing a new value thourgh a memory token for an item's BaseItem field. What I want is to copy an existent line on baseitems.2da and modify somethings inside it and I want the memory token to save the new line by its number in the index. Then an item will get modified and use that token as the value for it's BaseItem field.
The problem is with the line...

2DAMEMORY137=RowLabel

...as this will save the value in the (Row Label) column, while the baseitems.2da file is indexed by line number. So you should use...

2DAMEMORY137=RowIndex

...instead, since this will save the line number your new line gets added as in the token.



Generally there are three key values you can use to identify a particular row in most cases:

RowIndex - the line number of the row
RowLabel - The label of the row, displayed as a (Row Label) column in KotorTool.
LabelIndex - The value in the label column of the row. This obviously only works with 2DA files that have a label column, and is mostly used for editing/copying existing rows where you don't know what the row label or line number is (usually since the target lines were dynamically added by a mod earlier).

stoffe is offline   you may: quote & reply,