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
kent
Beginner


Joined: 03 Apr 2006
Posts: 29

PostPosted: Fri Jun 06, 2014 5:26 pm   

Creating a new button
 
Hello again,

I am trying to create a new button that will ask for a person to enter the name of the piece of equipment they would like repaired. After it is entered and they click on okay, it should drop in to the next block of code. The first part works okay but the next part doesn't work.

#PR RepairEquipment "Please type in the Name of the Equipment that you would like repaired" <--- works

this --> {
locker remove forge
remove @RepairEquipment
put @RepairEquipment forge
close forge
} <-- doesn't work

help please Confused
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Thu Jun 12, 2014 1:26 am   
 
#PROMPT just places the reply in the variable provided (in this case RepairEquipment).
From what you show you are using the following format: #PROMPT varname caption {code}.
If this is the case, {code} is being ignored because it is not part of the command parameter list.
Code:

#PR RepairEquipment "Please type in the Name of the Equipment that you would like repaired"
//
#IF !%null(@RepairEquipment) {
locker remove forge
remove @RepairEquipment
put @RepairEquipment forge
close forge
}

should work.
_________________
Sic itur ad astra.
Reply with quote
kent
Beginner


Joined: 03 Apr 2006
Posts: 29

PostPosted: Thu Jun 12, 2014 2:05 am   
 
Thank you, so much it did that job :)
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