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-27-2001, 06:45 AM
Bortlad Bortlad is offline
Registered User
Join Date: Nov 2001
Location: Over there ========>
Posts: 107
Bortlad is on a distinguished road
Send a message via ICQ to Bortlad Send a message via AIM to Bortlad Send a message via Yahoo to Bortlad
Question no D weapon script help!

does anyone know the script for no NPC weapons but can still use a sword in the level
im told there is one but i dont know it...
so help
__________________
Gør†håµr ‡MìdÑíght‡ ¤£êåðêr¤ (US) / Gør†håµr MìdÑíght (Game Coordinator)


WillieJamal posts in blue

Quote:
*MasterStorm_GP (RC) (4/10/02 5:07:40 PM):
Mass message: Er....... I've accidentally jailed myself, doh, so i'll only be able to answer from my RC for a bit.
Reply With Quote
  #2  
Old 11-27-2001, 08:35 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
//NPC MADE BY UR MOM
functionhere();
Reply With Quote
  #3  
Old 11-27-2001, 08:52 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Re: no D weapon script help!

Quote:
Originally posted by Bortlad
does anyone know the script for no NPC weapons but can still use a sword in the level
im told there is one but i dont know it...
so help
I think the disableweaponselect; or something does that Im not sure if not do disableweapons and if keydown S key setani sword,;
Reply With Quote
  #4  
Old 11-27-2001, 01:05 PM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
This would make the player use no NPC weapons

if(playerenters) {
toweapons blah;
disableselectedweapons;
}
if(weaponfired)
say2 HAHA!;
if(playerleaves&&isweapon) {
enableselectedweapons;
destroy;
}
Reply With Quote
  #5  
Old 11-27-2001, 02:03 PM
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 Andor_NPC-Admin1
This would make the player use no NPC weapons

if(playerenters) {
toweapons blah;
disableselectedweapons;
}
if(weaponfired)
say2 HAHA!;
if(playerleaves&&isweapon) {
enableselectedweapons;
destroy;
}
OMG ! its pixie !
Reply With Quote
  #6  
Old 11-27-2001, 07:39 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
There is no actual in-built Graal script for that, although when disableweapons is properly used in combination with a weapon which checks keydown and does hitobjects it could easily be made.
__________________

Reply With Quote
  #7  
Old 11-27-2001, 08:32 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by Andor_NPC-Admin1
This would make the player use no NPC weapons

if(playerenters) {
toweapons blah;
disableselectedweapons;
}
if(weaponfired)
say2 HAHA!;
if(playerleaves&&isweapon) {
enableselectedweapons;
destroy;
}
missing a { and a }
Reply With Quote
  #8  
Old 11-28-2001, 03:10 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
what pixie said would only work on npc server, and only with databased npc's . playerleaves is p2p only.
if you want to disable the screen just use
disableselectweapons;
if you want to disable then use of weapons in a level do

timeout=.1;
if (playerenters&&!isweapon) { toweapons *swordonly; }
if (timeout&&isweapon) {
if (!strequals(#w,*swordonly)) { disableweapons; }
else { enableweapons; }
if (!strequals(#L,yourlevel.graal)) { destroy; }
}

if (!strequals(#L,yourlevel.graal)) { destroy; }

remember to plug in ur level to both places.

and Poogles , much like Delphi you dont need brackets when you have single line of command.
__________________
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
  #9  
Old 11-28-2001, 06:12 AM
Bortlad Bortlad is offline
Registered User
Join Date: Nov 2001
Location: Over there ========>
Posts: 107
Bortlad is on a distinguished road
Send a message via ICQ to Bortlad Send a message via AIM to Bortlad Send a message via Yahoo to Bortlad
Talking

Thanks it works great!
__________________
Gør†håµr ‡MìdÑíght‡ ¤£êåðêr¤ (US) / Gør†håµr MìdÑíght (Game Coordinator)


WillieJamal posts in blue

Quote:
*MasterStorm_GP (RC) (4/10/02 5:07:40 PM):
Mass message: Er....... I've accidentally jailed myself, doh, so i'll only be able to answer from my RC for a bit.
Reply With Quote
  #10  
Old 11-28-2001, 06:50 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
Ohh yea, no NPC server commands =P
Me forgetting meh old scripting ways b/c of too much NPC server =P

Quote:
Originally posted by nyghtGT

OMG ! its pixie !
Hi Nyght!!!~!

Last edited by Andor_NPC-Admin1; 11-28-2001 at 07:10 AM..
Reply With Quote
  #11  
Old 11-28-2001, 07:23 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
1 thing

I just want to add a comment to help you guys out.

disableselectweapons; does not prevent the player from selecting weapons, it just disables the 'q' button. if you have that set, you can hold 's' and press 'd' to change weapons (which is also good for switching on the run from pkers and such).

__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #12  
Old 11-28-2001, 08:31 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
...
__________________
Reply With Quote
  #13  
Old 11-28-2001, 08:56 AM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
Quote:
Originally posted by Aknts
...
hehehehe, ankts knows it
Reply With Quote
  #14  
Old 11-28-2001, 09:00 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
_.-:'Spanky':-._
__________________
Reply With Quote
  #15  
Old 11-29-2001, 03:28 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
Re: 1 thing

Quote:
Originally posted by mikepg
I just want to add a comment to help you guys out.

disableselectweapons; does not prevent the player from selecting weapons, it just disables the 'q' button. if you have that set, you can hold 's' and press 'd' to change weapons (which is also good for switching on the run from pkers and such).

yes, it was mainly designed to make your own weapon system I believe =)
__________________
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
  #16  
Old 11-29-2001, 03:31 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
yeah

thats what i thought too, so you could have an alternate use for the Q button. I just wanted to clear that up for the people that were saying use disableselectweapons; thinking that would work.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #17  
Old 11-29-2001, 12:30 PM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
making your own weapons menu stinx b/c when u can't pause when u go into the menu
Reply With Quote
  #18  
Old 11-30-2001, 04:28 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
Quote:
Originally posted by Andor_NPC-Admin1
making your own weapons menu stinx b/c when u can't pause when u go into the menu
uh?
yes u could. . if u just did a disabledefmovement when it went into the menu..
__________________
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
  #19  
Old 11-30-2001, 04:32 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
or

if you used a say 2 command.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #20  
Old 11-30-2001, 06:25 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
4 realz?
disabledefmovement makes u pause?
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 09:29 PM.


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