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 10-26-2001, 10:36 AM
Brad_Elven Brad_Elven is offline
Registered User
Join Date: Jul 2001
Posts: 0
Brad_Elven is on a distinguished road
Send a message via AIM to Brad_Elven
Chest

Whats wrong with this script?

// NPC made by Lord Helmut
if (playerenters&&!hasbomb) {
setgifpart b_chest.png,0,0,32,32;
}
if(playertouchsme&&!hasbomb){
set hasbomb;
toweapons Bomb;
}
if (playerenter&&hasbomb) {
setgifpart b_chest.png,32,0,32,32;
}

yes i know im missing the if(weaponfired) part
Reply With Quote
  #2  
Old 10-26-2001, 10:45 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
why dont you do:
NPC Code:

NPC Code:

// NPC made by Lord Helmut
if (playerenters && !hasweapon(Bomb)) {
setgifpart b_chest.png,0,0,32,32;
}
if(playertouchsme && !hasweapon(Bomb)) {
toweapons Bomb;
}
if (playerenters && hasweapon(Bomb)) {
setgifpart b_chest.png,32,0,32,32;
}



Reply With Quote
  #3  
Old 10-26-2001, 11:18 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
Wink

whats it used for? if u get the bomb through the chest make sure u play chest.wav
Reply With Quote
  #4  
Old 10-26-2001, 01:14 PM
Brad_Elven Brad_Elven is offline
Registered User
Join Date: Jul 2001
Posts: 0
Brad_Elven is on a distinguished road
Send a message via AIM to Brad_Elven
no that code wont work for some reason...like it wont open if they touch it =/
Reply With Quote
  #5  
Old 10-26-2001, 01:18 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
brad, make a image of the chest open...here we go!! put a open chest image where the npc is and when u play the sound make sure u hide it and it'll look like the chest opened
Reply With Quote
  #6  
Old 10-26-2001, 02:09 PM
Brad_Elven Brad_Elven is offline
Registered User
Join Date: Jul 2001
Posts: 0
Brad_Elven is on a distinguished road
Send a message via AIM to Brad_Elven
first off I am Lord Helmut, second of all thats *** when u can just change the image part...
Reply With Quote
  #7  
Old 10-27-2001, 02:34 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
not really...u can destory that npc to make the game faster
Reply With Quote
  #8  
Old 10-27-2001, 05:00 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
everyone

Quote:
Originally posted by royce
not really...u can destory that npc to make the game faster
when you destroy an NPC it destroys it for everyone ... not just the player ...
Reply With Quote
  #9  
Old 10-27-2001, 05:01 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
it would be a really cool idea if you could move NPC's from levels to level ... like say for instance you get the bomb ... then you could disable all the bomb commands and make it do some other command ... using a bunch of NPCs in a level causes lag evetually (if there are enough)
Reply With Quote
  #10  
Old 10-27-2001, 05:08 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: Chest

Quote:
Originally posted by Brad_Elven
Whats wrong with this script?

// NPC made by Lord Helmut
if (playerenters&&!hasweapon(bomb)) {
setgifpart b_chest.png,0,0,32,32;
}
if(playertouchsme&&!hasweapon(bomb)){
<removed set hasbomb;>
toweapons Bomb;
setgifpart b_chest.png,32,0,32,32;
}
if (playerenters&&hasweapon(bomb)) {
setgifpart b_chest.png,32,0,32,32;
}

yes i know im missing the if(weaponfired) part
Underlined the changes, and for the weaponfired part, look in my system, I've got it there all ready for use with our "special" system
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a

Last edited by Xaviar; 10-27-2001 at 05:19 AM..
Reply With Quote
  #11  
Old 10-27-2001, 05:30 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: Re: Chest

Quote:
Originally posted by Xaviar


Underlined the changes, and for the weaponfired part, look in my system, I've got it there all ready for use with our "special" system
...
Quote:
Originally posted by nyghtGT

NPC Code:

NPC Code:

// NPC made by Lord Helmut
if (playerenters && !hasweapon(Bomb)) {
setgifpart b_chest.png,0,0,32,32;
}
if(playertouchsme && !hasweapon(Bomb)) {
toweapons Bomb;
}
if (playerenters && hasweapon(Bomb)) {
setgifpart b_chest.png,32,0,32,32;
}




and i said what ?
Reply With Quote
  #12  
Old 10-27-2001, 05:36 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: Re: Re: Chest

Quote:
Originally posted by nyghtGT

...

and i said what ?
I was re-affirming(sp?) what you said, and adding a setgifpart to the playertouchsme
__________________
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
  #13  
Old 10-27-2001, 08:42 PM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
Well npcs can be moved level to level using npcserver and canwarp and canwarp2 commands.
__________________

Reply With Quote
  #14  
Old 10-27-2001, 09:33 PM
FF8Fan2000 FF8Fan2000 is offline
Registered User
Join Date: Aug 2001
Posts: 35
FF8Fan2000 is on a distinguished road
Send a message via AIM to FF8Fan2000 Send a message via Yahoo to FF8Fan2000
What about this?

NPC Code:

// NPC made by Lord Helmut
if (playerenters && !hasweapon(Bomb)) {
setgifpart b_chest.png,0,0,32,32;
}
if(playertouchsme && !hasweapon(Bomb)) {
toweapons Bomb;
setgifpart b_chest.png,32,0,32,32;
}
if (playerenters && hasweapon(Bomb)) {
setgifpart b_chest.png,32,0,32,32;
}

Reply With Quote
  #15  
Old 10-28-2001, 01:17 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
Quote:
Originally posted by FF8Fan2000
What about this?

NPC Code:

// NPC made by Lord Helmut
if (playerenters && !hasweapon(Bomb)) {
setgifpart b_chest.png,0,0,32,32;
}
if(playertouchsme && !hasweapon(Bomb)) {
toweapons Bomb;
setgifpart b_chest.png,32,0,32,32;
}
if (playerenters && hasweapon(Bomb)) {
setgifpart b_chest.png,32,0,32,32;
}

Thank you, kind sir, for repeating me.
__________________
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
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:50 AM.


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