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
  #1  
Old 04-21-2001, 08:11 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
I need some help with the gralet system..I cant seem to get it!!! If you can help me plz reply to this!
__________________
Trunks
Reply With Quote
  #2  
Old 04-22-2001, 05:50 AM
funnylinkwantsbomys funnylinkwantsbomys is offline
Omi New
funnylinkwantsbomys's Avatar
Join Date: Mar 2001
Location: ohio
Posts: 2,116
funnylinkwantsbomys is on a distinguished road
Send a message via AIM to funnylinkwantsbomys
what cant u get?
__________________

"Microwave a piece of cheese for 40secs and eat it. Yum." -Funnylink
Reply With Quote
  #3  
Old 04-22-2001, 10:23 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
Unhappy I dont get any of it!

I dont get any of it, I tired some scripts but nothing works!!!
__________________
Trunks
Reply With Quote
  #4  
Old 04-22-2001, 10:46 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
you mean changing graphics for the online gralats?
Reply With Quote
  #5  
Old 04-22-2001, 07:30 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
yes that 2...

I just need the gralet system so if a bush lays a green rupee it turns into a green gralet and if a player does it also!but it works for all rupees
__________________
Trunks
Reply With Quote
  #6  
Old 04-22-2001, 07:45 PM
milotheman milotheman is offline
Banned
milotheman's Avatar
Join Date: Apr 2001
Posts: 0
milotheman is on a distinguished road
dont ask me i have no idea
Reply With Quote
  #7  
Old 04-22-2001, 11:44 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
I think I have an idea of how it works.
__________________
Reply With Quote
  #8  
Old 04-23-2001, 12:26 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
could u help?

Could u help me plz?
__________________
Trunks
Reply With Quote
  #9  
Old 04-23-2001, 01:04 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
G2k1 uses the NPC server to make all gralats on any levels appear like that... so if you want to script it like that youll need NPC server experiance.
Reply With Quote
  #10  
Old 04-23-2001, 03:51 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 will make anotehr system for it like elven....
__________________
Trunks
Reply With Quote
  #11  
Old 04-23-2001, 06:31 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
I know how to make gralats but will not give you the script because im making it for my server. Here is a hint though:

Try using items[0].whatever variables and possibly playerlaysitem but that makes it slower.

-------------
bryan986
Navarone PW Owner
Reply With Quote
  #12  
Old 04-24-2001, 04:11 AM
manton manton is offline
Raise Your Fist
Join Date: Mar 2001
Location: California
Posts: 2,318
manton will become famous soon enough
Send a message via AIM to manton
Question

Could someone tell me how to make it detect what kind of Item is layed? I have the whole system,but I cant seem to make it check what Item is layed =/
__________________
-Nastazio
Reply With Quote
  #13  
Old 04-24-2001, 07:18 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:
Itemname / item index
greenrupee 0
bluerupee 1
redrupee 2
bombs 3
darts 4
heart 5
glove1 6
bow 7
bomb 8
shield 9
sword 10
fullheart 11
superbomb 12
battleaxe 13
goldensword 14
mirrorshield 15
glove2 16
lizardshield 17
lizardsword 18
goldrupee 19
fireball 20
fireblast 21
nukeshot 22
joltbomb 23
spinattack 24
NPC Code:
if (playerenters||timeout) {
if (isleader) {
for (this.i=0;this.i<itemscount;this.i++) {
if (items[this.i].type=itemindex) {
commands;
}
}
}
timeout=0.05;
timereverywhere;
}

__________________

Reply With Quote
  #14  
Old 04-25-2001, 08:12 AM
Komieko Komieko is offline
Registered User
Join Date: Mar 2001
Posts: 494
Komieko is on a distinguished road
hehe..doesn't work quite right..I just put setcharani gralats,1; in there but it doesn't put it where you drop the money and you can't pick it up..=/
Reply With Quote
  #15  
Old 04-25-2001, 09:30 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 accually Komieko

accually I dont think you can just
replace
the part he said command with
setcharani

I think you would have to have it lay an npc were you want it to and have a text file for the npc's script if you get what i mean
the code would look something like this

putnpc ,greengralat.txt,items[this.i].x,items[this.i].y

and in the txt file you would put something like

//Little Rupee Example Made by KJL
if(created){setcharani gralet,1;}
if(playertouchsme){
playerrupees+=1
//I say +=1 insted of ++ because like for red rupee
//you can just say +=30. and so on.
}
__________________
Thanks,
-KJL
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 01:41 PM.


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