Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
chris123zugg
Apprentice


Joined: 23 Aug 2013
Posts: 175

PostPosted: 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}}
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4671
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
chris123zugg
Apprentice


Joined: 23 Aug 2013
Posts: 175

PostPosted: 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!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net