How would I do a pop-up. I'm working on a small game and can't get the help to come up as a pop-up.
Thanks in advance.
ID:157506
![]() Feb 24 2010, 10:14 pm
|
|
Thanks.
How to use it? mob/verb/help() Can't quite figure it out. |
Blafblabla wrote:
Thanks. mob/verb/help() Can't quite figure it out. What you have there should work, however, remember that "WindowName" should be the name of the window in your interface file. I'm not sure if it's case sensitive.. Either way, In your interface file, go the windows section and create(if not already done) a new window, name the window whatever you want, and make sure that the window name is the same in your winshow(blah). example: create a window named Help. Remember to make it invisible, i believe they are visible by default? then to show the window named Help you put: winshow(usr,"Help",1) |
I'm trying to do, if the quantity of 1 is 20 more than 2, do something else.
my current error is: runtime error: Undefined operation: "50" * 20 proc name: test (/mob/verb/test) usr: Blafblabla (/mob) src: Blafblabla (/mob) call stack: Blafblabla (/mob): test() |
What you are asking is... Not possible, or you're explaining it very poorly.
How can 1 be more than 2? That is just not mathematically possible. Unless 1 and 2 are variables, but then I do not think that is possible, and if it is, you're doing really bad coding, as 1 is also a number and it could result in a lot of errors and bugs. You should always try to make variables easy to recognize and unique. Naming them 1, 2, 3 and so on is just really bad. Anyway, if 1 and 2 are variables, then if(a>b+20) is what you want to do (a is variable 1, b is variable 2). |
Well, what I'm trying to do is:
if(a>b+20) |
Excluding the issue with indentation, that is exactly how you would do it.
Think of it this way. If 'a' is 15 and 'b' is 2, then what the computer is reading is. if(15>2+20) ( or if(15>22) ) |
OK. I've decided to change the names of the proc and look at the issue a different way.
var/time Also, showing an icon if they get the time and speed right. |
winshow(usr,"WindowName",1)
-Zorro