[RM2K3] (DYNRPG) A WAY TO DISPLAY AN ITEM NAME USING A VARIABLE?

Posts

Pages: 1
Hello,
How can I display an item name using a variable in a message?
I think it is someting possible with DynRPG but I couldn't find the info.

I thought it was something like:
\i[0100]
(for the item number stored in variable #100)
... but it doesn't work.


Marrend
Guardian of the Description Thread
21781
Maybe I'm reading this question wrong, but, wouldn't you use \v[100] in this case to display the contents of game-variable #100?
You should be able to do this using the DynText plugin, but keep in mind that this does not work with the typical text box command. Pretty sure this can be done with the textbox as well, but I don't know of a plugin which does that, meaning you'd likely have to code the plugin yourself (involves programming in C++).
Keep in mind that DynRPG itself doesn't come with any such functionality, you need to download plugins separately after patching the maker with DynRPG (and the official version is incompatible with DynRPG)

That said
\i[100]
would logically give you the 100th item in the database, not the item with value stored in variable of id 100. To do that you'd likely want to do something more along the lines of
\i[\v[100]]
author=kaine87
Here!
https://github.com/rewrking/DynRPG-plugin-archive/tree/main/msg_commands

Yes, I think this is what I recall! I couldn't find it again, that's perfect!

Thank you all for your help!
Shush, go away ChatGPT, what the heck!

EDIT: Oh it's a spam link! Reported.
Pages: 1