|
kent Beginner
Joined: 03 Apr 2006 Posts: 29
|
Posted: 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 |
|
|
|
Anaristos Sorcerer
Joined: 17 Jul 2007 Posts: 821 Location: California
|
Posted: 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. |
|
|
|
kent Beginner
Joined: 03 Apr 2006 Posts: 29
|
Posted: Thu Jun 12, 2014 2:05 am |
Thank you, so much it did that job :)
|
|
|
|
|
|