Not a bug Meta Assignment Documentation

Discussion in 'Archive (Read Only)' started by globeadue, Oct 4, 2023.

  1. globeadue

    globeadue Ensign

    Joined:
    Sep 12, 2022
    Messages:
    17
    Likes Received:
    5
    Build: v1.10.4 4243 04-01:10
    I have been having a discussion on Discord regarding the documentation in tokensconfig.ecf of assigning meta values to items and tokens. The documentation contradicts itself and I wanted to bring this to light, so the next poor soul that tries to use the documentation has the correct information.

    The relevant lines from tokensconfig.ecf
    Line 10: # 3. Give a Token in a dialogue: Use a function, f.ex AddItem('KeyCardBlack', 3, 1234) = Will give the player 3x Keycard Black with the Meta 1234
    Line 14: # - Currently only the item 'Token' (Itemsconfig.ecf id: 1305) can have a 4-digit META element. Any OTHER "keycard" named item or other items in general can NOT have meta info attached!

    Please note line 14 clearly says you can NOT give meta value to KeyCardBlack but line 10 gives KeyCardBlack a meta value.


    From discord:

    If item keycardblack(item id 1300) cannot be properly used with meta values, why is it used in an example for assigning meta values in the documentation? Using the supplied examples shouldn't be considered playing with fire.
    Keep in mind, I've not talked about adding custom tokens/objects/class values at all, this has all been talk about using the vanilla objects cited in the documentation in tokenconfig.ecf
    Line 10 gives this example giving "keycardblack(item id 1300)" a meta value
    Line 14 states "Any OTHER "keycard" named item can NOT have meta info attached!"
    Per line 14, the example on line 10 should not be functional.
    Per my testing, line 10 produces a working item that opens token locked doors.
    I have to assume the details on line 14 are out of date at this point and need reclarified.
    Taelyn stated an item needs "class: token" to be assigned meta values.
    Looking at itemsconfig.ecf, "keycardblack(item id 1300)" and it's parent "KeysTemplate(item id 1299)" are not assigned the token class.
    So this leaves the situation even more confusing because we have an example of a non token class item, "keycardblack(item id 1300)", being used in an example to assign a meta value to it.
     
    #1
  2. Taelyn

    Taelyn Administrator Staff Member Community Manager

    • Developer
    • Administrator
    Joined:
    Oct 4, 2021
    Messages:
    897
    Likes Received:
    1,393
    As I told you on discord the example is fine

    Any item can be a token when you add class: Token to it
     
    #2

Share This Page