Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #61  
Old 09-18-2001, 03:33 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
scripting is just like programming
if you dont have a command you script the command not ask stefan to make it
for example if you want an onsnow command script it using tile check then you can use it in other scripts
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #62  
Old 09-18-2001, 07:41 PM
Lycia Lycia is offline
Banned
Lycia's Avatar
Join Date: Mar 2001
Location: Over there. --->
Posts: 3,240
Lycia is on a distinguished road
Send a message via ICQ to Lycia Send a message via AIM to Lycia
Quote:
Originally posted by Kaimetsu


I don't think Stefan is entering, and even if he was then it wouldn't make it impossible for everyone else. Stefan's good but he's not a god, and there are scripters who would stand a chance against him. I'm not saying they'd be likely to beat him, but they'd have a chance.

Uh, Kaimetsu. Normally, I agree with you with regards to several opinions, however, this one I'm gonna have to disagree.

Stefan made up GScript. He knows it 100%. He understands it, so for you to say that he's not a god, is a bit premature. Gods create things. Stefan created GScript. Stefan is the God of NPC Scripting.
Reply With Quote
  #63  
Old 09-18-2001, 09:14 PM
Krakken_2001 Krakken_2001 is offline
Posts: 1337
Krakken_2001's Avatar
Join Date: Mar 2001
Location: Staffs, England Quote: "Bomy in Progress" Looks: Amazingly Stunning Popularity: 10,000%
Posts: 1,325
Krakken_2001 is on a distinguished road
Quote:
Originally posted by Lycia



Uh, Kaimetsu. Normally, I agree with you with regards to several opinions, however, this one I'm gonna have to disagree.

Stefan made up GScript. He knows it 100%. He understands it, so for you to say that he's not a god, is a bit premature. Gods create things. Stefan created GScript. Stefan is the God of NPC Scripting.
Hey, that's a good argument. On the other hand, you could say anyone is a God. If I can create a script IN GScript, of my own, would that not make me a Script God?
__________________
------------------------


- UnOfficial Graalian Story Teller
- Holder Of The 1000th Upgraded Graalian Account (Not This One)
------------------------------------------------------------------------------
"The Fairy Princess - Zorro" - A New Beggining
Reply With Quote
  #64  
Old 09-19-2001, 02:04 AM
Lycia Lycia is offline
Banned
Lycia's Avatar
Join Date: Mar 2001
Location: Over there. --->
Posts: 3,240
Lycia is on a distinguished road
Send a message via ICQ to Lycia Send a message via AIM to Lycia
Quote:
Originally posted by Merlin_2001
I don't know how to script, but I'd like to find out.

I'm learning scripting via Professor Kaimetsu. It's really leet.

Here's my very first script:

NPC Code:

//-------------------------------------------
// NPC made by Lycia
//-------------------------------------------
if (playerenters) {
toweapons Landmine;
}
if (weaponfired) {
showimg 1,landminenpc.gif,playerx,playery;
changeimgvis 1,0;
this.minex=playerx;
this.miney=playery;
timeout=0.05
}
if(timeout){
timeout=0.05;
for(i=1;i!=playerscount;i++) {
this.xdistance = players[i].x - this.minex;
this.ydistance = players[i].y - this.miney;
this.totaldistance = ( this.xdistance^2 + this.ydistance^2 ) ^ 0.5;
if (this.totaldistance<3) {
hideimg 1;
timeout=0;
putexplosion 2,this.minex,this.miney;
}
}
}




w00t.
Reply With Quote
  #65  
Old 09-19-2001, 04:27 AM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
Nice landmine, Lycia, a lot like the one on Classic...better, but with some of the same problems (not putnpc, which has its advantages). but I guess I'll post mine...could be more efficient, but it blows up every time and doesn't follow the player around, unlike the current one.
NPC Code:

// NPC made by Jeff, 8.21.2001
// The code for this firemine is entirely original,
// save for a few of the blasts from the
// old Starcon/Lord Chimp version
// The reason it is now just the Fire Mine and not
// the STARCON FireMine is that the code really isn't
// any creation of STARCON's, being rewritten
// as it is. Why credit a guy who did little towards this?
// This takes up seven bombs instead of five, as it uses
// more explosions, and actually WORKS ALL THE TIME!

//new fire mine, laying section
if (playertouchsme) {
set jeffmine;
toweapons Fire Mine;
}

if(weaponfired && playerbombs >=7){
playerbombs -= 7;
putnpc starconexplo.mng,jeffmine.txt,x,y;
}
if(created){
timeout=1;
}
if(timeout){
message Fire Mine;
}



NPC Code:

// Operating part of the new fire mine system.
if (created){
// Set safe getaway time for the setter, and display it to help.
timeout=5;
timershow;
}
if (timeout){
// after the five secs are up
if ((abs(playerx-x)<=5) || (abs(x-playerx)<=5)){
// absolute value of one x and one Y difference must be less than or equal to five.
// Larger range than the old one. This is to ensure that it sets off correctly.
if ((abs(playery-y)<=5) || (abs(y-playery)<=5)){
// to establish a square, as opposed to a semisquare rectangle

// explodes, destroys itself in the process
putexplosion 5, x, y;
putexplosion 4, x+1, y;
putexplosion 4, x, y+1;
putexplosion 4, x+1, y+1;
putexplosion 4, x, y-1;
putexplosion 4, x-1, y;
putexplosion 4, x-1, y-1;
putexplosion 3, x+2, y+2;
putexplosion 3, x-2, y-2;
putexplosion 3, x+2, y-2;
putexplosion 3, x-2, y+2;
putexplosion 2, x+3, y+3;
putexplosion 2, x-3, y-3;
putexplosion 2, x+3, y-3;
putexplosion 2, x-3, y+3;
destroy;
// larger explosion than the old Fire Mine, so as to almost always damage the poor sod who steps too close.
}
}
// sets timeout to minimum amount to check for triggering
timeout=.05;
// the shown timer will disappear by itself as part of the timeout.
}

__________________
Reply With Quote
  #66  
Old 09-19-2001, 04:47 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
Quote:
Originally posted by Kaimetsu


Soon I'll teach you the best way to indent. It makes your code easier for you and others to read.
\

dammit kai! make her learn herself, like you and I did!
Reply With Quote
  #67  
Old 09-19-2001, 11:04 AM
T-Squad T-Squad is offline
Banned
T-Squad's Avatar
Join Date: Mar 2001
Location: United States of America
Posts: 1,733
T-Squad is on a distinguished road
Quote:
Originally posted by Lycia



Uh, Kaimetsu. Normally, I agree with you with regards to several opinions, however, this one I'm gonna have to disagree.

Stefan made up GScript. He knows it 100%. He understands it, so for you to say that he's not a god, is a bit premature. Gods create things. Stefan created GScript. Stefan is the God of NPC Scripting.
Umm not exactly....

He is perfect. Knows everything...Stefan may have created something, yes, but does he know everything? Is he perfect in the area of graal? No.
Reply With Quote
  #68  
Old 09-19-2001, 11:20 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
Quote:
Originally posted by Kaimetsu


Soon I'll teach you the best way to indent. It makes your code easier for you and others to read.
I have always done it like Stefan does it, I think... 2 spaces per block. The only time I don't put 2 spaces in any programming language is Visual Basic. I TAB it =P
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #69  
Old 09-19-2001, 12:01 PM
SagaTCN SagaTCN is offline
Registered User
Join Date: Aug 2001
Location: West Michigan
Posts: 190
SagaTCN is on a distinguished road
Send a message via ICQ to SagaTCN Send a message via AIM to SagaTCN Send a message via Yahoo to SagaTCN
Is there something wrong with the Style button? haha.
__________________

Rogue World
Reply With Quote
  #70  
Old 09-19-2001, 05:43 PM
Lycia Lycia is offline
Banned
Lycia's Avatar
Join Date: Mar 2001
Location: Over there. --->
Posts: 3,240
Lycia is on a distinguished road
Send a message via ICQ to Lycia Send a message via AIM to Lycia
Quote:
Originally posted by General
\

dammit kai! make her learn herself, like you and I did!
Reply With Quote
  #71  
Old 09-19-2001, 06:49 PM
Krakken_2001 Krakken_2001 is offline
Posts: 1337
Krakken_2001's Avatar
Join Date: Mar 2001
Location: Staffs, England Quote: "Bomy in Progress" Looks: Amazingly Stunning Popularity: 10,000%
Posts: 1,325
Krakken_2001 is on a distinguished road
Quote:
Originally posted by Lycia
if (this.totaldistance <3 ) {
Awww, I think there may be an attraction between Kai and Lycia
__________________
------------------------


- UnOfficial Graalian Story Teller
- Holder Of The 1000th Upgraded Graalian Account (Not This One)
------------------------------------------------------------------------------
"The Fairy Princess - Zorro" - A New Beggining

Last edited by Krakken_2001; 09-19-2001 at 06:51 PM..
Reply With Quote
  #72  
Old 09-19-2001, 08:25 PM
Krakken_2001 Krakken_2001 is offline
Posts: 1337
Krakken_2001's Avatar
Join Date: Mar 2001
Location: Staffs, England Quote: "Bomy in Progress" Looks: Amazingly Stunning Popularity: 10,000%
Posts: 1,325
Krakken_2001 is on a distinguished road
Quote:
Originally posted by Kaimetsu


Haha, well spotted. I never noticed that; 3 was just an arbitrary value we used.
Heheheh
__________________
------------------------


- UnOfficial Graalian Story Teller
- Holder Of The 1000th Upgraded Graalian Account (Not This One)
------------------------------------------------------------------------------
"The Fairy Princess - Zorro" - A New Beggining
Reply With Quote
  #73  
Old 09-19-2001, 11:35 PM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
Stefan IS the best graal scripter out there...not only does he know the language in and out, but if there's a command he wants but doesn't have, he can always decide it's time for a new version of Graal and try to make the command.
__________________
Reply With Quote
  #74  
Old 09-19-2001, 11:53 PM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
Quote:
Originally posted by JeffTL
Stefan IS the best graal scripter out there...not only does he know the language in and out, but if there's a command he wants but doesn't have, he can always decide it's time for a new version of Graal and try to make the command.
no that's un-true. stefan made graal but is not the best pker, stefan made graal and he is also not the best level tiler.
Reply With Quote
  #75  
Old 09-20-2001, 12:03 AM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
Somebody missed the cluebus. I said scripter. The best tiler is Tyhm or Zero 33 or someone like that, and the best PKer is probably Lord Chimp. But Stefan rules the scripting world, from what I've seen. Tell me, Merlin, ONE SCRIPTER better than Stefan. Is it Kyle? Or maybe Tyhm? Antago? Tell me.



addition:


PKing and tiling are different disciplines from scripting...PKing skill consists of bandwidth and dexterity, tiling requires skill in sticking sixteen-pixel squares together to create play areas, and scripting is a form of programming, requiring a logical mind and knowledge of the language.
__________________

Last edited by JeffTL; 09-20-2001 at 12:07 AM..
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 09:03 AM.


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