|
chris123zugg Apprentice
Joined: 23 Aug 2013 Posts: 175
|
Posted: Sun Jul 17, 2022 1:12 am
#addkey issues |
#IF %match(%1, @setskill) {#addkey @skill {name=%1|level=%2|levelm=%3|cost=%4}
this will record properly once time, but even if i remove all values in the skill db, it weill moot properly add them back... can someone tell me what im doing wrong please?
this also worked once and then wont work after that.
#IF %match(%1, @setskill) {#print works for skill recording;#addkey skill {name=%1|level=%2|levelm=%3|cost=%4}} |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Sun Jul 17, 2022 2:50 am |
You don't use the @ of the dbVar when going an #ADDKEY.
You also want to enclose your expression in parentheses. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
chris123zugg Apprentice
Joined: 23 Aug 2013 Posts: 175
|
Posted: Sun Jul 17, 2022 4:28 am |
#IF %match(%1, @setskill) {#addkey skill name=%1;#addkey skill level=%2;#addkey skill levelm=%3;#addkey skill cost=%4}
this works every time, thanks! |
|
|
|
|
|