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 11-12-2001, 04:28 AM
jonny12 jonny12 is offline
Registered User
Join Date: Jun 2001
Location: washingtion--USA all the way!
Posts: 100
jonny12 is on a distinguished road
Send a message via AIM to jonny12 Send a message via Yahoo to jonny12
toinvatory help;

if you put somthing in your invantory--can you deleat it?

if(playertouchsme&&playerhaveinvantory(this))
{uninvantry this}

somthing like that
__________________


Bomy Gang
Reply With Quote
  #2  
Old 11-12-2001, 04:30 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
there is not a ininventory or anything but i think whatever is in ur Inventory interacts with Flags...
Reply With Quote
  #3  
Old 11-12-2001, 05:38 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
theres toweapons and playerhasweapon
Reply With Quote
  #4  
Old 11-12-2001, 05:38 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
so just destroy afterwards.
Reply With Quote
  #5  
Old 11-12-2001, 06:41 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
Quote:
Originally posted by royce
theres toweapons and playerhasweapon
there is the command 'toinventory flag' command and then to unset it i beleive you just use 'unset flag'
Reply With Quote
  #6  
Old 11-12-2001, 06:46 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
you would do
if (playertouchsme) { toinventory yourkey; }
then to check you would just do
if (yourkey) { whatever; }
like in a door you would put
if (playertouchsme&&yourkey) {
hidelocal;
unset yourkey;
}
and the key of course
if (playertouchsme&&!yourkey) { toinventory yourkey; }
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #7  
Old 11-12-2001, 06:49 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
Quote:
Originally posted by LiquidIce00
you would do
if (playertouchsme) { toinventory yourkey; }
then to check you would just do
if (yourkey) { whatever; }
like in a door you would put
if (playertouchsme&&yourkey) {
hidelocal;
unset yourkey;
}
and the key of course
if (playertouchsme&&!yourkey) { toinventory yourkey; }
basically what i said ....
Reply With Quote
  #8  
Old 11-12-2001, 07:01 AM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
I have never used toinventoy there is no use.
__________________
Reply With Quote
  #9  
Old 11-12-2001, 07:06 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
exactly ... it pretty much does the same thing as 'set flag'
Reply With Quote
  #10  
Old 11-12-2001, 11:52 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
But u have this small picture of the NPC in the left top corner. I think Stefan invented it for something like keys or things u have to bring to other NPCs to make Quests look nicer...
__________________
No Webhost at the moment
Reply With Quote
  #11  
Old 11-12-2001, 11:53 PM
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 nyghtGT
exactly ... it pretty much does the same thing as 'set flag'
Except it adds an image to the "inventory" section of the stats, so the player knows that he's got an "inventory" item
__________________
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
  #12  
Old 11-13-2001, 12:01 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by Xaviar


Except it adds an image to the "inventory" section of the stats, so the player knows that he's got an "inventory" item
That's what I said
Okok in my personell "No-One-Else-Will-Undestand-This" Way but I said it ;D
__________________
No Webhost at the moment
Reply With Quote
  #13  
Old 11-13-2001, 12:11 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 TDO2000

That's what I said
Okok in my personell "No-One-Else-Will-Undestand-This" Way but I said it ;D
Gah..I think we posted at the same time X_X
__________________
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
  #14  
Old 11-13-2001, 12:14 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
But I was first ;b
um and u need 8 minutes to post?
__________________
No Webhost at the moment
Reply With Quote
  #15  
Old 11-13-2001, 08:00 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 TDO2000
But I was first ;b
um and u need 8 minutes to post?
Gimme some slack! I was in school (web design, today we learned about <u> and </u> ) and the teacher walked by
__________________
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
  #16  
Old 11-13-2001, 08:16 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by Xaviar


Gimme some slack! I was in school (web design, today we learned about <u> and </u> ) and the teacher walked by
lol our well informed teachers ;D
I always have to fix the delphie-programs of my teacher because his don't want to work ;D
__________________
No Webhost at the moment
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 02:55 PM.


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