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
  #16  
Old 04-25-2001, 09:41 AM
Komieko Komieko is offline
Registered User
Join Date: Mar 2001
Posts: 494
Komieko is on a distinguished road
Screws up for me..I'd rather do it grims way..grim hee..would you mind making an example?
Reply With Quote
  #17  
Old 04-25-2001, 09:43 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool heh

well I was kind of using grims example and just expanding off of it. like told you what to replace with command..

that is one way you can do it
__________________
Thanks,
-KJL
Reply With Quote
  #18  
Old 04-25-2001, 05:54 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Blah.

Allrightyho I'll make the whole system for now...
NPC Code:
//Gralat system thing which should probably be put in a system NPC if you don't have a pay server
//I'm not sure if the save[9][this.i thing works though.
if (playerenters||timeout) {
if (isleader) {
for (this.i=0;this.i<itemscount;this.i++) {
for (this.j=0;this.j<npsccount;this.j++) {
if (!(items[this.i].x in |npcs[this.i].x-2,npcs[this.i].x+3|&&items[this.i].x in |npcs[this.i].y-2,npcs[this.i].y+3&&save[9][this.i]==100)) {
if (items[this.i].type==0) level.gralatlaid=1;
else if (items[this.i].type==1) level.gralatlaid=5;
else if (items[this.i].type==2) level.gralatlaid=30;
else if (items[this.i].type==19) level.gralatlaid=100;
}
}
}
}
timeout=0.05;
timereverywhere;
}
//Under here the NPC for the gralat.txt file.
//I'm not sure if that in array thing works for this one but I think it does.
if (created) {
rupees=level.gralatlaid;
level.gralatlaid=0;
save[9]=100;
this.takeitems={0,1,2,19};
}
if (playerenters||timeout) {
for (this.i=0;this.i<itemscount;this.i++) {
if (items[this.i].x in |npcs[this.i].x-2,npcs[this.i].x+3|&&items[this.i].x in |npcs[this.i].y-2,npcs[this.i].y+3&&items[this.i].type in this.takeitems) take2 this.i;
}
if (rupees<5) setani gralats,0;
else if (rupees<30) setani gralats,1;
else if (rupees<100) setani gralats,2;
else setani gralats,3;
timeout=0.05;
timereverywhere;
}
if (playertouchsme) {
playerrupees+=rupees;
destroy;
}


I've scripted this from the top of my head and haven't tested it so there's a pretty big chance that it doesn't work.
__________________

Reply With Quote
  #19  
Old 04-26-2001, 06:54 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
Re: Blah.

Quote:
Originally posted by grim_squeaker_x
I've scripted this from the top of my head and haven't tested it so there's a pretty big chance that it doesn't work. [/B]
Good lord! You memorized all those script commands?!
__________________
Reply With Quote
  #20  
Old 04-26-2001, 09:52 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool ...

it is not hard to memorize the commands and really easy if you script a lot.

most of my scripts I put up here are just off the top of my head and I am not sure if they work or not. But I also say that. See I just dont want to open up graal and take more time when the user that asks for it can try to figure out what is wronge if there is anything wronge.

they should be glade that you headed them the right way.
__________________
Thanks,
-KJL
Reply With Quote
  #21  
Old 04-26-2001, 05:49 PM
cell424 cell424 is offline
Registered User
Join Date: Mar 2001
Location: USA/PA
Posts: 184
cell424 is on a distinguished road
Send a message via AIM to cell424
um..

Ok now I just need someone to help me with the script for the Gralet Thing, so if a player lays a green rupee or a bush,or a baddy it will turn into a green gralet. It would be the same for the blue,red, and gold also.IFyou can help me plz...
__________________
Trunks
Reply With Quote
  #22  
Old 04-26-2001, 06:22 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Re: Re: Blah.

Quote:
Originally posted by Psyker

Good lord! You memorized all those script commands?!
Yup, happens automattically after having scripted for about erm... 5 months in my case
__________________

Reply With Quote
  #23  
Old 04-26-2001, 09:15 PM
freddyfox freddyfox is offline
Banned
freddyfox's Avatar
Join Date: Mar 2001
Posts: 6,705
freddyfox is on a distinguished road
Isn't this a PW Projects Team Member? Why does he need our help?
Reply With Quote
  #24  
Old 04-26-2001, 09:24 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by freddyfox
Isn't this a PW Projects Team Member? Why does he need our help?
Because he's making a server and doesn't know how to script, or doesn't have people working for it who know how to script?
__________________

Reply With Quote
  #25  
Old 04-27-2001, 03:41 AM
cell424 cell424 is offline
Registered User
Join Date: Mar 2001
Location: USA/PA
Posts: 184
cell424 is on a distinguished road
Send a message via AIM to cell424
I can script but...

I cna script but not good enough for that Gralet System.. I made my System NPC but now I am remaking alot of stuff like the Police House and making new quests, I made the Lizard Shield&Sword Quest and 1 heart quest in like 3 days! And they are da best!!!I have people working on it also but they are busy working on other things also!
__________________
Trunks
Reply With Quote
  #26  
Old 05-20-2001, 12:16 PM
LazyDragoon LazyDragoon is offline
Registered User
Join Date: May 2001
Location: Wa, USA
Posts: 16
LazyDragoon is on a distinguished road
Send a message via ICQ to LazyDragoon Send a message via AIM to LazyDragoon Send a message via Yahoo to LazyDragoon
Re: Blah.

Quote:
Originally posted by grim_squeaker_x
Allrightyho I'll make the whole system for now...
NPC Code:
//Gralat system thing which should probably be put in a system NPC if you don't have a pay server
//I'm not sure if the save[9][this.i thing works though.
if (playerenters||timeout) {
if (isleader) {
for (this.i=0;this.i<itemscount;this.i++) {
for (this.j=0;this.j<npsccount;this.j++) {
if (!(items[this.i].x in |npcs[this.i].x-2,npcs[this.i].x+3|&&items[this.i].x in |npcs[this.i].y-2,npcs[this.i].y+3&&save[9][this.i]==100)) {
if (items[this.i].type==0) level.gralatlaid=1;
else if (items[this.i].type==1) level.gralatlaid=5;
else if (items[this.i].type==2) level.gralatlaid=30;
else if (items[this.i].type==19) level.gralatlaid=100;
}
}
}
}
timeout=0.05;
timereverywhere;
}
//Under here the NPC for the gralat.txt file.
//I'm not sure if that in array thing works for this one but I think it does.
if (created) {
rupees=level.gralatlaid;
level.gralatlaid=0;
save[9]=100;
this.takeitems={0,1,2,19};
}
if (playerenters||timeout) {
for (this.i=0;this.i<itemscount;this.i++) {
if (items[this.i].x in |npcs[this.i].x-2,npcs[this.i].x+3|&&items[this.i].x in |npcs[this.i].y-2,npcs[this.i].y+3&&items[this.i].type in this.takeitems) take2 this.i;
}
if (rupees<5) setani gralats,0;
else if (rupees<30) setani gralats,1;
else if (rupees<100) setani gralats,2;
else setani gralats,3;
timeout=0.05;
timereverywhere;
}
if (playertouchsme) {
playerrupees+=rupees;
destroy;
}


I've scripted this from the top of my head and haven't tested it so there's a pretty big chance that it doesn't work.
That script doesn't work =T it turns your player into a shadow and the little light thing of the gralat instead =T
Reply With Quote
  #27  
Old 05-20-2001, 01:48 PM
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
the problem is these things
setani should be setcharani
gralats should be gralat (I think)
Reply With Quote
  #28  
Old 05-20-2001, 04:02 PM
Munkey Munkey is offline
Guest
Join Date: May 2001
Location: Outside Pittsburgh
Posts: 279
Munkey is on a distinguished road
Send a message via ICQ to Munkey Send a message via AIM to Munkey
I happen to have a working gralat script. I think that shadow knight made it. You would have to ask his permission to use it before i'd give it out though. sorry.
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 05:59 AM.


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