![](templates/Classic/images/spacer.gif) |
Xiija Beginner
Joined: 24 Apr 2018 Posts: 10
|
Posted: Tue Jul 11, 2023 4:51 pm
database help |
just looking for a basic example of using a database.
the help files, ... didn't help.
i made a db called magitems with 2 fields.. name & val
i made a simple alias to try and set it.
#echo adding to db...
#addkey magitems name dexterity val 5
#showdb magitems
newp,
thanks for any helps
X.
p.s.
i am trying just adding to a stringlist instead, and its working, but I am not seeing "stored..."
on already stored items, all items show ... "storing new:"
#if (%ismember( %1, @mods)) {#echo stored..} {
#echo storing new:
#ADDITEM mods {%1}
} |
|
|
![](templates/Classic/images/spacer.gif) |
shalimar GURU
![](images/avatars/114658559147aeed8fee539.gif)
Joined: 04 Aug 2002 Posts: 4685 Location: Pensacola, FL, USA
|
Posted: Tue Jul 11, 2023 7:36 pm |
Simple syntax error, you did not properly reference the variable to display it.
#SHOWDB @magitems
You you have recently installed on a new system, you may need to run CMUD as an administrator to give in permission to save changes to variables. |
|
_________________ Discord: Shalimarwildcat |
|
|
![](templates/Classic/images/spacer.gif) |
kevin498 Newbie
Joined: 11 Apr 2024 Posts: 1
|
Posted: Thu Apr 11, 2024 10:12 am |
A really good post, very thankful and hopeful that you will write many more posts like this one.
|
|
|
![](templates/Classic/images/spacer.gif) |
|
|