Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-24-2002, 08:10 PM
ArchOwl ArchOwl is offline
KHERRUPTED SHROOM
ArchOwl's Avatar
Join Date: Aug 2001
Location: SOMEWHERE, DAMNIT
Posts: 2,464
ArchOwl is on a distinguished road
Send a message via AIM to ArchOwl Send a message via Yahoo to ArchOwl
having an item, and giving it

im trying to make a mushroom script, where you can make potions and sell them or keep them for use

does !hasmushroom work as having the mushroom?
and if so, would something like

if !hasmushroom;
(command to activate something)

work?
__________________

DDR Videos.
More DDR Videos.
Reply With Quote
  #2  
Old 02-24-2002, 11:54 PM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
that would work, just set the flag when the player gets the mushroom. Of course sometimes the flag won't set and I forget how to keep that from happening....
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
Reply With Quote
  #3  
Old 02-24-2002, 11:59 PM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
well, to have an item, and give it, you would include something like this (we are assuming that this is non-P2P, and the weapon's name is "*****")

the files we are using is

*****.txt (shown below)
*****icon.gif (make one yourself)

NPC Code:

//*****.txt
if (!isweapon) {
if (playertouchsme) {
toweapons *****;
destroy;
}
}else{
if (playerchats && strequals(#c,Drop *****)) {
putnpc *****icon.gif,*****.txt,playerx+1.5-2/2+vecx(playerdir),playery+2-2/2+vecy(playerdir);
//Make a non-weapon duplicate of self on level
destroy; //Remove weapon
}
if (weaponfired) blahblahblah();
}



next time I will show you for P2P
Reply With Quote
  #4  
Old 02-25-2002, 03:40 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
Quote:
Originally posted by Faheria_GP2
well, to have an item, and give it, you would include something like this (we are assuming that this is non-P2P, and the weapon's name is "*****")

the files we are using is

*****.txt (shown below)
*****icon.gif (make one yourself)

NPC Code:

//*****.txt
if (!isweapon) {
if (playertouchsme) {
toweapons *****;
destroy;
}
}else{
if (playerchats && strequals(#c,Drop *****)) {
putnpc *****icon.gif,*****.txt,playerx+1.5-2/2+vecx(playerdir),playery+2-2/2+vecy(playerdir);
//Make a non-weapon duplicate of self on level
destroy; //Remove weapon
}
if (weaponfired) blahblahblah();
}



next time I will show you for P2P
I think you should have done a better example =D
Reply With Quote
  #5  
Old 02-26-2002, 06:50 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
I couldn't think of a good name for an example item :o
Reply With Quote
  #6  
Old 02-26-2002, 07:08 AM
Bhala Bhala is offline
Disgruntled Monkey
Bhala's Avatar
Join Date: Mar 2001
Posts: 779
Bhala is on a distinguished road
its better to use a seperate NPC to control droping... like g2k1 does with the Item helper... & use action like "actiondropsnowcone" & in the NPC you check if that player has more then one & if not delete it & lay a new NPC.....
Reply With Quote
  #7  
Old 02-26-2002, 09:00 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
usually when people ask me for scripts, I assume it's for non-p2p...but yes, you are right...
Reply With Quote
  #8  
Old 02-26-2002, 09:53 AM
ArchOwl ArchOwl is offline
KHERRUPTED SHROOM
ArchOwl's Avatar
Join Date: Aug 2001
Location: SOMEWHERE, DAMNIT
Posts: 2,464
ArchOwl is on a distinguished road
Send a message via AIM to ArchOwl Send a message via Yahoo to ArchOwl
Quote:
Originally posted by Faheria_GP2
usually when people ask me for scripts, I assume it's for non-p2p...but yes, you are right...
well see im trying to make this script for 2k1, the graphics are not a problem, nor levels, but since it shouldnt be that hard of a script im tryin to make it myself

what would be a p2p example of the last one you showed me?
__________________

DDR Videos.
More DDR Videos.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 12:19 AM.


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