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 07-03-2002, 06:33 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
new command suggetion

NPC Code:

prompt question,answer1,answer2,answer3;




pops up a sign on your screen, with a question and the answers you give (how big the question screen is depends on the ammt of answers you provide

then when the player answers it triggers the weapon actionansweredquestion

param1=question
param2=answer given


so for example
NPC Code:

if (playerenters){
prompt Do you feel lucky?,Yes,No;
}
if (actionansweredquestion){
if (strequals(#p(1),yes)){
playerhearts=0;
say2 Too bad punk, you arent.;
}else{
playerrupees+=100;
say2 Good kid, dont too be proud.;
}
}

Reply With Quote
  #2  
Old 07-03-2002, 06:36 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
great idea
Reply With Quote
  #3  
Old 07-03-2002, 10:59 PM
cloudstrifevii cloudstrifevii is offline
ohay
Join Date: Jan 2002
Location: Mississippi
Posts: 2,411
cloudstrifevii is on a distinguished road
Send a message via AIM to cloudstrifevii Send a message via MSN to cloudstrifevii
What might this NPC be for? A mafia hideout like on GTA3 *goes to play it*
__________________

Nick: Peg Leg
E-Mail: [email protected]
Reply With Quote
  #4  
Old 07-04-2002, 02:23 AM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
Riddle Quests, Comfirming Stuff,.......etc.
Reply With Quote
  #5  
Old 07-07-2002, 07:47 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Quote:
Originally posted by user13-xo
Riddle Quests, Comfirming Stuff,.......etc.
exactly

like for a bank

"Are you sure you want to deposit #v(this.depamt)g in the bank?"
or for a new form of trading

"Are you sure you want to give #s(this.recacc) a #s(this.senditem) for #v(this.recammt) #s(this.recitem)?"
Reply With Quote
  #6  
Old 07-10-2002, 06:28 AM
Terminator3001 Terminator3001 is offline
Registered User
Join Date: Feb 2002
Location: Oz
Posts: 16
Terminator3001 is on a distinguished road
Send a message via AIM to Terminator3001
Red face

it should be if (strequals(#p(0),yes)) {
blah}
Reply With Quote
  #7  
Old 07-10-2002, 06:30 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
SOunds good.
I really like that idea.
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #8  
Old 07-10-2002, 07:58 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Don't be lazy and script it yourself :P
Reply With Quote
  #9  
Old 07-10-2002, 10:14 PM
jeff335 jeff335 is offline
Registered User
Join Date: Oct 2001
Posts: 605
jeff335 is on a distinguished road
I suggested this months ago.

So of course I think it is a capital idea.
__________________

Quote:
Some people like standing around talking to idiots in the real world, and some don't. Neither choice is inherently better than the other.

-Kaimetsu
Reply With Quote
  #10  
Old 07-11-2002, 01:56 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Quote:
Originally posted by Terminator3001
it should be if (strequals(#p(0),yes)) {
blah}

if you read...
param1 (#p(0)) is the question

param2 (#p(1)) is the answer
Reply With Quote
  #11  
Old 07-11-2002, 11:32 PM
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
yes, you see though, its better to script things like this yourself. Since you can do anything with your own script, you arent restricted to default.
__________________

subliminal message: 1+1=3
Reply With Quote
  #12  
Old 08-01-2002, 02:46 AM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
Nice Idea

Wouldn't be laggier if he scripted it?
I mean he basicaly scripted Enigma/Pandora and it lags like hell!
Reply With Quote
  #13  
Old 08-02-2002, 03:47 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
LOLz... you can ALWAYS do stuff better yourself. make the sign stay there, or use showimg's until they type yes,or press 1, 2, 3, whatever. So what would be the point, you'd save all of 10 seconds x.x
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #14  
Old 08-02-2002, 07:45 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
If it was hard coded into the game, its going to run faster.

No matter, what Hard coding, runs faster than something scripted.

No matter what. Somewhere along the line it will slow down as a script.

And I scripted all of enigma.

And it doesnt "lag like hell"
Reply With Quote
  #15  
Old 08-02-2002, 08:20 PM
DarkHero2002 DarkHero2002 is offline
Registered User
DarkHero2002's Avatar
Join Date: Dec 2001
Posts: 625
DarkHero2002 is on a distinguished road
Send a message via ICQ to DarkHero2002 Send a message via AIM to DarkHero2002
I think it would be a great idea. It would save time from having to script yourself and would definately lag less
__________________

DarkHero
AIM:XxCloud2002xX
ICQ:165561109
E-Mail:[email protected]
Manager Of Colonial Graal

PLEASE DO NOT CLICK HERE!
Reply With Quote
  #16  
Old 08-02-2002, 09:08 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Warcaptain
If it was hard coded into the game, its going to run faster.

No matter, what Hard coding, runs faster than something scripted.

No matter what. Somewhere along the line it will slow down as a script.

And I scripted all of enigma.

And it doesnt "lag like hell"
The question is: Could you possibly script it badly enough to slow down anything at all to any noticable degree? This command would be a waste of Stefan's time.
__________________
Reply With Quote
  #17  
Old 08-03-2002, 01:19 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Quote:
Originally posted by Kaimetsu


The question is: Could you possibly script it badly enough to slow down anything at all to any noticable degree? This command would be a waste of Stefan's time.
how so?

its easy if you have several npc's that do prompting

every major coding language, even the lame baisic ones have a command like this.

why do functions when we have timeout loops?

because it makes things simpler, and neater
Reply With Quote
  #18  
Old 08-03-2002, 01:26 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Warcaptain


how so?

its easy if you have several npc's that do prompting
Easier, maybe. Less flexible, certainly.

Quote:
every major coding language, even the lame baisic ones have a command like this.
Only for debugging purposes. It's not relevant here.

Quote:
why do functions when we have timeout loops?

because it makes things simpler, and neater
What? How are functions related to timeout loops?
__________________
Reply With Quote
  #19  
Old 08-03-2002, 02:24 AM
stomper_TK stomper_TK is offline
Registered User
stomper_TK's Avatar
Join Date: Feb 2002
Location: My chair :-)
Posts: 846
stomper_TK is on a distinguished road
Send a message via AIM to stomper_TK
wouldn't this work just as well? (I've only been scripting for like 3 hours)

NPC Code:

if(flag&&count=1) {
if (playertouchsme){
say2 Do you feel lucky? Yes or No?;
}
if (playerchats&&strequals(#c,Yes)) {
playerhearts=1;
say2 Too bad punk, you arent.;
}
if (playerchats&&strequals(#c,No)) {
playerrupees+=100;
say2 Good kid, dont too be proud.;
}
}

__________________
Reply With Quote
  #20  
Old 08-03-2002, 03:36 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Quote:
Originally posted by stomper_TK
wouldn't this work just as well? (I've only been scripting for like 3 hours)

NPC Code:

if(flag&&count=1) {
if (playertouchsme){
say2 Do you feel lucky? Yes or No?;
}
if (playerchats&&strequals(#c,Yes)) {
playerhearts=1;
say2 Too bad punk, you arent.;
}
if (playerchats&&strequals(#c,No)) {
playerrupees+=100;
say2 Good kid, dont too be proud.;
}
}


it would if you could use up down arrow to select Yes or No
Reply With Quote
  #21  
Old 08-03-2002, 04:04 AM
RavenTelvecho RavenTelvecho is offline
Registered User
RavenTelvecho's Avatar
Join Date: Apr 2002
Location: Toronto, Ontario, Canada
Posts: 0
RavenTelvecho is on a distinguished road
Send a message via ICQ to RavenTelvecho Send a message via AIM to RavenTelvecho Send a message via Yahoo to RavenTelvecho
Quote:
Originally posted by Python523
great idea
__________________

^tuff newbie ;x
RavenTelvecho
!Booj
we are 'brothers'
Reply With Quote
  #22  
Old 08-05-2002, 07:05 AM
Kyle_2002 Kyle_2002 is offline
Banned
Join Date: Aug 2002
Location: Where do you think?
Posts: 160
Kyle_2002 is on a distinguished road
One would not need a "up" or "down" arrow. All they need is a brain to type "Yes" or "No".

Here is the new edited script:
NPC Code:

if (playertouchsme&&!client.lucky) say2 Do you feel lucky? Yes or No?;
else say2 Hey I already talked to you!;
if (playerchats&&!client.lucky) {
if(strequals(#c,yes)) {
playerhearts = 1;
say2 Too bad punk, you arent.;
set client.lucky;
}
if(strequals(#c,no)) {
playerrupees+=100;
say2 Good kid, dont too be proud.;
set client.lucky;
}
}


Godspeed helped me edit it.
Reply With Quote
  #23  
Old 08-05-2002, 07:11 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
True you can just type them out but by using arrows to select the correct answer (or clicking on it with the mouse) seems more profesional than typing it out.
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #24  
Old 08-05-2002, 07:18 AM
Kyle_2002 Kyle_2002 is offline
Banned
Join Date: Aug 2002
Location: Where do you think?
Posts: 160
Kyle_2002 is on a distinguished road
Well to tel lyou the truth, I'm a newb to scripting and I don't know how.
Reply With Quote
  #25  
Old 08-05-2002, 12:28 PM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
Quote:
Originally posted by AlexH
True you can just type them out but by using arrows to select the correct answer (or clicking on it with the mouse) seems more profesional than typing it out.
The Babylon store script is like that
I'm not posting the script for it tho
Reply With Quote
  #26  
Old 08-05-2002, 12:39 PM
Kyle_2002 Kyle_2002 is offline
Banned
Join Date: Aug 2002
Location: Where do you think?
Posts: 160
Kyle_2002 is on a distinguished road
blah I'm just too lazy to learn that...
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 08:31 AM.


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