![]() |
lunpa's problem of the week
w00t...
Is there a way to prioritize the drawing height of a showimg over another at the same screen layer? I mean, other than its x/y/z coordinate... unless there is a way to get, say, z to be the priority rather a y axis modifyer... for example, lets say I use a polygon to blacken the screen. how can I make it so some stuff actualy draws over it, and still be in the middle of the screen?:megaeek: |
Other than drawing at a "higher" layer, no. At least nothing that I know of.
|
Commands for layering, for level npcs:
NPC Code: I have no idea what 'drawovertrees' does. Commands for images, used in showimg, showtext, and showpoly: NPC Code: 'vis' is a number between 0 and 5 0 and 1 = Under player 2 = Same height as player 3 = Over player 4 = On the screen, images will be drawn on the screen instead of the level, usefull for GUIs 5 = Same as vis 4, but is drawn over the images with a vis of 4. Question: Is it possoble to have a vis higher than 5? Such as changeimgvis 200,6;? |
Quote:
|
Lance is right.
But there is a limit I believe... max 20-30, or somewheres around there. I can't remember exact though. |
huzzah! thats just what I was looking for. thanks again :D
Also, I have another small question... Is there a way to convert keycode into its character value? or is it just a one-way conversion from char to keycode? |
Quote:
|
before...
NPC Code:if ((strtofloat(#p(0))>=65&&strtofloat(#p(0))<=90)||( strtofloat(#p(0))>=321&&strtofloat(#p(0))<=346)) addstring client.lunpatexttestis,#p(0); after... NPC Code:if ((strtofloat(#p(0))>=65&&strtofloat(#p(0))<=90)||( strtofloat(#p(0))>=321&&strtofloat(#p(0))<=346)) addstring client.lunpatexttestis,#K(#p(0)); o.O Are you sure thats right? Now it won't return anythign... |
Quote:
|
or just #p(1) ?
|
Quote:
Besides, when did he even mention #p(1)? |
Quote:
|
Quote:
|
Quote:
|
#p(1) is the parameter sent, and in this case, returns the key character when the event keypressed is called.
|
Quote:
|
Quote:
Quote:
|
Um, okay. Ramirez, it's clear that he's using the #p() codes as arguments from keypressed. In which case #p(0) holds the keycode (in string form) and #p(1) holds the ascii character to which it corresponds. So #p(1) is identical to #K(strtofloat(#p(0))).
|
It may be easy to ASSUME that's what he's using, but you still don't know that for certain until he verifies it himself.
Besides, you guys are going an extra step by saying it's unnecessary to use #K(). Sure, it may be if he's using keypressed, however, that is NOT what he asked for. He asked for a way to convert ASCII codes into actual characters, and I gave it to him. Then he put a string inside of the #K() code when it requires a float value. Instead of assuming it was for keypressed and not something else, I gave him the solution that worked in the way he was using it, rather than trying to change his script for him. *sigh* *waits for the Argument Duo to continue on* |
Quote:
|
Quote:
Quote:
|
Quote:
...too bad all of this is still assuming it's for keypressed. Quote:
|
lol, I got what I needed.
I didn't realize that #p(1) returned the actual character of the pressed key :eek: still its good to know that I have to convert #p(0) into ascii before it can be used in #K() :) thanks again! |
Quote:
|
heh, anyway, I have a new question, wich would be, is there a serverside command to change the head of the rc?
and are there any events like 'rcchats' (an equivalent to playerchats) and posibly a message code to obtain the rc chat text? |
Quote:
Quote:
|
:) I'll try it out. thanx!
oh, and for some reason I can't open the script of one of my weapons. Could it be that its gotten too long? Its one of my longer scripts |
Quote:
|
oo, any idea how I can retrieve the script?
|
Quote:
|
yah, since classes are, I'd say its only logical that the weapons are. I dug through the ftp the best I could, but to no luck.
Say... could someone with a different kind of access to the ftp (like a different program or something) posibly retrieve it? I know that to have a larger tileset put on the server, you need stefan to upload it. Maby he can help? (so, now I have to figure out the best way to contact him...) |
I don't really get why everyone is so... interested in changing the RC head, it's an administrative tool, not a play tool ;(
|
Quote:
|
thanx, Ramirez, I'll try that.
as for Python Quote:
|
Quote:
We deduce that he is using keypressed, because of the overwhelming evidence pointing in that direction. As it turns out, we're right. Wasn't this path more productive, then? |
Quote:
I have no intention of posting again in regard to this "debate" or whatever you want to call it, as it's completely pointless. I would hope that you would do the same. It's only making us both look like idiots for continuing on mindlessly. |
Quote:
Quote:
|
Btw, lunpa, Gannondorf, whatever you prefer to be called, I want to apologize for going on with the stupid argument as long as I did. You shouldn't have to read through that garbage to find what you're looking for.
Anyway, you got your answers, so I guess that's all that matters. :) |
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 08:36 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.