![]() |
scripting command suggestions
Yes, I know some of these may have been thought of before.
message2 string This makes a message box pop up, saying something to one player only...this'd be just a standard Windows message box, like the admin messages, not a quirky ol' signish thing like in say2. More effective for long messages. Should be free. query string This issues, to one player, a yes or no question, storing the answer, as yes or no, to the player as #q. Should be free. query2 string Like query, this shows the player a string. However, what it saves to #q is what the player enters into a text box within the query window. Should be free. followplayer(index) This allows the NPC to follow player with specified index, as opposed to the current offline-only form. If the NPC is a database NPC, it will follow across warps. Might be best P2P only. follownpc(index) See above, except this one follows NPCs. Again, probably P2P only. clone(x,y) his copies the NPC...basically putnpc except that it needs no text file, just puts the current script, with its associated graphic, where requested. Should be free. updatelevel Updates the level, resetting all NPCs and the board. Should be free. updatelevel2(level.ext) Updates level as per above, however it does it to a level other than the one currently loaded. Probably P2P. |
Re: scripting command suggestions
Quote:
|
WOW! That sounds really good... tell them to stefan!
|
Uhm, some of those seem to be the same as these:
(unsure about command) - attach object to player (unsure about command) - attach object to object callnpc - call the script of another npc I'm not an npc scripter so I am not sure. |
Followplayer is intended more as like a bomy pet :)
|
i'd like those.
|
I don't like the windows pop up box ideas. Those would spoil the nice look of graal.
There should just be a command for adding clickable, customizable buttons to signs (these buttons would fit the sign colour scheme too). maybe the code would be like: say2 Are you interested in the offer?,button(yes),button(no),button(maybe later); if (button(yes)==clicked) { dostuff; } |
Or, make a Say3!
value = say3 message,yes answer,no answer; A default window would pop-up, with a smaller window underneath with the Yes Answer and No Answer prompts. The player could use the arrow keys to select the answer. Then, value would return TRUE if Yes Answer was selected, or FALSE if No Answer was selected! Go me! BTW, 500TH POST! WAY GO ME! SUPER GO ME! WHEE! |
Quote:
|
I think we need windows popup boxes because...signs are a tad tricky at times, especially with globs of text. Especially with query2 as it is, which'd be best used as a password box.
|
Hmm...I can think of a couple times when it would be usefull to have something pop up like that, but I would rather not have a command like that, because it would be to overused (like triggeraction ;))
Mostly, what I want would be something like mousedown(x,y,width,height) which would return true if the mouse button was down somewhere inside the box established in the arguments..and a mousedown2 would be nice as well (for the right mouse button) |
MOUSE OPTIONS ARE GOOD IDEA BUT WHEN I AKS STEFEN HE SAYS "No mouse options ;-)" AND THAT MAKES ME CRY
|
One more command, to accompany clone:
isclone This tells the NPC if it is an npc made with Clone or not. Then it can have special scripts that only work when it is a clone. |
um I don't think updatelevel is such a good idea. And why to add something like followplayer if it will always be better hand made?
|
Query is easy enough to do with some simple string checks.
|
All times are GMT +2. The time now is 03:39 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.