Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-09-2001, 07:53 AM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
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.
__________________
Reply With Quote
  #2  
Old 11-10-2001, 01:19 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Re: scripting command suggestions

Quote:
Originally posted by JeffTL
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.
Clone would be the only one of those I would ever use, but I would think it would end up P2P, if it ever does happen..
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #3  
Old 11-10-2001, 03:52 AM
wark2 wark2 is offline
Registered User
Join Date: Oct 2001
Location: Canada
Posts: 306
wark2 is on a distinguished road
Send a message via AIM to wark2 Send a message via Yahoo to wark2
WOW! That sounds really good... tell them to stefan!
__________________
- Legend
Reply With Quote
  #4  
Old 11-10-2001, 05:07 AM
Sir Triclops Sir Triclops is offline
Registered User
Join Date: Jul 2001
Posts: 501
Sir Triclops is on a distinguished road
Send a message via AIM to Sir Triclops
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.
__________________
Poizon
Reply With Quote
  #5  
Old 11-10-2001, 07:04 AM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
Followplayer is intended more as like a bomy pet
__________________
Reply With Quote
  #6  
Old 11-10-2001, 10:18 AM
Psyker Psyker is offline
Tired Sloth
Join Date: Mar 2001
Posts: 6,217
Psyker will become famous soon enough
Send a message via AIM to Psyker Send a message via Yahoo to Psyker
i'd like those.
__________________
Reply With Quote
  #7  
Old 11-10-2001, 11:35 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
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;
}
Reply With Quote
  #8  
Old 11-10-2001, 11:46 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
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!
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd

Last edited by BocoC; 11-10-2001 at 01:55 PM..
Reply With Quote
  #9  
Old 11-10-2001, 01:03 PM
Psyker Psyker is offline
Tired Sloth
Join Date: Mar 2001
Posts: 6,217
Psyker will become famous soon enough
Send a message via AIM to Psyker Send a message via Yahoo to Psyker
Quote:
Originally posted by BocoC
Or, make a Say3!

value = say3 message,yes answer,no anser;

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!
! GO BOCO!
__________________
Reply With Quote
  #10  
Old 11-10-2001, 11:48 PM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
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.
__________________
Reply With Quote
  #11  
Old 11-11-2001, 01:37 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
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)
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #12  
Old 11-12-2001, 01:15 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
MOUSE OPTIONS ARE GOOD IDEA BUT WHEN I AKS STEFEN HE SAYS "No mouse options ;-)" AND THAT MAKES ME CRY
__________________

subliminal message: 1+1=3
Reply With Quote
  #13  
Old 11-13-2001, 10:42 PM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
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.
__________________
Reply With Quote
  #14  
Old 11-13-2001, 11:49 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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?
__________________
No Webhost at the moment
Reply With Quote
  #15  
Old 11-13-2001, 11:51 PM
freddyfox freddyfox is offline
Banned
freddyfox's Avatar
Join Date: Mar 2001
Posts: 6,705
freddyfox is on a distinguished road
Query is easy enough to do with some simple string checks.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:30 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.