Ex
mob/verb/Set(T as text)
if(T == "Male")
src.Gender = "Male"
.winset "command=Set(Male)" //Wont work. (which is actually obvious).
Any ideas?
ID:272369
Jun 18 2008, 10:18 am (Edited on Jun 18 2008, 3:59 pm)
|
|
How would i go about giving specific info to a verb via the skin? I thought, at first, I could just make a verb for each button in my options pane. ie .winset "command = Male". But besides being a poor way to program it, it turns out i have about 40 buttons. what would be a more efficient way of doing it without making one verb for each button? For example, I've noticed that you cant put any options into a verb.
Ex mob/verb/Set(T as text) Any ideas? |
In response to Kaioken
|
|
It was just an example I made from the top of my head, but to the point..
Thanks, ill try that out instead. But wow, thats am amazing concept, I would have never thought of it. |
There are 2 problems with your syntax of "Set(Male)". First, arguments are separated by use of spaces. No parentheses (or commas) are used. Also, Male, incidentally just like in DM, is an invalid symbol. To use text, you need to put it in double quotes. Using a word without quotes is an attempt to use an object (your command would use an object named Male if available, otherwise it'd error up). So your code, and command, should be:
Commands on buttons:
.button "mybutton1"
.button "mybutton2"