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 08-22-2001, 03:15 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
Dumb Scripter

I feel dumb asking this but is there a script so players cant get Arrows and Bombs like if they touch it it stays 0 without using timeouts if not what is it with timeouts
__________________
Reply With Quote
  #2  
Old 08-22-2001, 03:17 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Please make your post understandalbE?
__________________

subliminal message: 1+1=3
Reply With Quote
  #3  
Old 08-22-2001, 03:17 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
if (playerbombs>0||playerdarts>0) { playerdarts=0;playerbombs=0; }
__________________
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
  #4  
Old 08-22-2001, 03:18 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
GO AWAY LIQUID *****s shotgun*
__________________

subliminal message: 1+1=3
Reply With Quote
  #5  
Old 08-22-2001, 03:25 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 Falcor
GO AWAY LIQUID *****s shotgun*
u got issues
__________________
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
  #6  
Old 08-22-2001, 03:28 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
GIMME YOUR WALLET PUNK.
__________________

subliminal message: 1+1=3
Reply With Quote
  #7  
Old 08-22-2001, 03:29 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 Falcor
GIMME YOUR WALLET PUNK.
all i got is my license and like 10 bux and a trojan of course
__________________
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
  #8  
Old 08-22-2001, 03:35 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
Liquid that don't work.
__________________
Reply With Quote
  #9  
Old 08-22-2001, 03:37 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
It does but it stalls like 30 secs
__________________
Reply With Quote
  #10  
Old 08-22-2001, 03:38 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
NPC Code:

while(playerdarts>0 || playerbombs>0) {
playerdarts = 0;
playerbombs= 0;
}




try that?
__________________

subliminal message: 1+1=3
Reply With Quote
  #11  
Old 08-22-2001, 03:38 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
Actually nevermind it don't work at all.
__________________
Reply With Quote
  #12  
Old 08-22-2001, 03:39 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
Quote:
Originally posted by Falcor
NPC Code:

while(playerdarts>0 || playerbombs>0) {
playerdarts = 0;
playerbombs= 0;
}




try that?
Didnt work
__________________
Reply With Quote
  #13  
Old 08-22-2001, 03:41 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Well what can i say. Good-ol time outs are the only thing that will help you

if(playerenters || timeout) {
timeout = 0.05;
if(playerdarts > 0 || playerbombs > 0) {
playerdarts = 0;
playerbombs = 0;
}
}

Thats your only other option i guess
__________________

subliminal message: 1+1=3
Reply With Quote
  #14  
Old 08-22-2001, 03:43 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
Yeah thanx :-)
__________________
Reply With Quote
  #15  
Old 08-22-2001, 03:48 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
Quote:
Originally posted by Falcor
Well what can i say. Good-ol time outs are the only thing that will help you

if(playerenters || timeout) {
timeout = 0.05;
if(playerdarts > 0 || playerbombs > 0) {
playerdarts = 0;
playerbombs = 0;
}
}

Thats your only other option i guess

Dude check your PM's
__________________
Reply With Quote
  #16  
Old 08-22-2001, 04:59 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
FALADOS IS WRONG AGAIN

while (nobombsandarrows) {
playerdarts=0;
playerbombs=0;
sleep .05;
}

so much better, less chance of glitching...
Reply With Quote
  #17  
Old 08-22-2001, 05:02 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 General
FALADOS IS WRONG AGAIN

while (nobombsandarrows) {
playerdarts=0;
playerbombs=0;
sleep .05;
}

so much better, less chance of glitching...
=\
__________________
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
  #18  
Old 08-22-2001, 06:25 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
I think people are starting to dislike me, sigh, time to switch to nice mode

"How are you today liquidice?"
Reply With Quote
  #19  
Old 08-23-2001, 04:48 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
If its posible try using a weapon like isweapon I like that and if its p2p im almost sure it would do that but WHY THE HECK DONT YEH WANT BOMBS OR ARROWS? and if you really hate them DONT MAKE THEM but i guess the player HAS to mave that 15 bombs(unuseful) and 5 arrows(it should be 15 to these are useful)
Reply With Quote
  #20  
Old 08-23-2001, 04:54 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
well one reason might be your making your own arrow and bomb script but you dont want to let the person start out with arrows or bombs when they die...

I am making a weapon on frolic (an arrow thingy) but it doesn't use the arrows from the arrow bar and to make people less confuzed I wouldn't want them to die and everyone grabs tehre arrows and bombs and be like wtf it didn't add it...

well I haven't started scripting it but it iwll take me like 5 seconds to script lol...
__________________
Thanks,
-KJL
Reply With Quote
  #21  
Old 08-23-2001, 08:07 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
do this ...

just make your script cheezy yet durable ...
while (playerbombs>0) {
playerbombs-=1;
}
while (playerdarts>0) {
playerdarts-=1;
}
Reply With Quote
  #22  
Old 08-23-2001, 12:02 PM
Guest
Posts: n/a
my god you people.. always doing things the hardway ;p

LiquidIce was right ;/



if(playerdarts>0 || playerbombs>0) {
playerbombs= 0;
playerdarts= 0;
}
Reply With Quote
  #23  
Old 08-23-2001, 12:27 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
IF you read. It did not work. niether did the WHILE LOOP wich is SUPOSE TO LOOP but DID NOT.
__________________

subliminal message: 1+1=3
Reply With Quote
  #24  
Old 08-25-2001, 03:36 AM
Guest
Posts: n/a

umm... try theses:

NPC Code:

if(playerdarts>0 || playerbombs>0) {
darts-bombs()
function darts-bombs(){
playerbombs-=1;
playerdarts-=1;
}
}



NPC Code:

if (timeout||playerenters) {
playerbombs=0;
playerdarts=0;
timeout=.05;
}



NPC Code:

if(playerdarts>0 || playerbombs>0) {
this.action=true;
if(this.action=true) {
playerbombs=0;
playerdarts=0;
}
}



Reply With Quote
  #25  
Old 08-25-2001, 03:39 AM
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:
Originally posted by Falcor
IF you read. It did not work. niether did the WHILE LOOP wich is SUPOSE TO LOOP but DID NOT.
The while loop for that one didn't work since it stopped performing because you had no bombs/arrows and wasn't called again afterwards.
__________________

Reply With Quote
  #26  
Old 08-25-2001, 03:48 AM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
Instead of trying to fix this little problem, why don't we ask why we can't use timeouts?
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #27  
Old 08-25-2001, 10:06 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Quote:
Originally posted by IcePick_2001

umm... try theses:

NPC Code:

if(playerdarts>0 || playerbombs>0) {
darts-bombs()
function darts-bombs(){
playerbombs-=1;
playerdarts-=1;
}
}



NPC Code:

if (timeout||playerenters) {
playerbombs=0;
playerdarts=0;
timeout=.05;
}



NPC Code:

if(playerdarts>0 || playerbombs>0) {
this.action=true;
if(this.action=true) {
playerbombs=0;
playerdarts=0;
}
}



Where you got those????



*cough* thief *cough*
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #28  
Old 08-25-2001, 10:24 PM
Guest
Posts: n/a
I made them you stupid ass *****!
Reply With Quote
  #29  
Old 08-26-2001, 08:16 AM
Vinvect Vinvect is offline
Registered User
Join Date: Aug 2001
Location: U.S.A,California,Milpitas,In A House,In Room,On A Seat,On a Computer
Posts: 157
Vinvect is on a distinguished road
Send a message via ICQ to Vinvect Send a message via Yahoo to Vinvect
these totally work
NPC Code:

// NPC made by Darkyoshi1
if (playerenters) {
toweapons -No -Bombs -And -Arrows;
}
if(isweapon){
playerbombs==0;
playerdarts==0;
}


and i made this by myself so dont balme me that i stealed it!!!!!!!!!!!!!!!!!!!!!!!!!!!
__________________
==========================
I Script Really Good
&
Looking For A NAT Job
==========================
Quote:
That's like a big lugee!
-Evolution The Movie
Quote:
Ha Ha Ha Give It Up!
-Cyrus From Bomberman
I'm not a Bomy anymore.
I'm a MUTATED BROCLI MONSTER!
(or SIGN MONSTER)
If you make me angry,
I'LL EAT YOU WHOLE!
ME, MUTATED BROCLI MONSTER MASTER
(or SIGN MONSTER)
WILL EAT YOU ALL UP!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Quest Valley Owner
Looking For Staff
Pm Me
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
O.o Still Have My Braen Damaegd o.O


Thanks To Esiah, He Made This For Me!
Thanks Esiah!
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 05:53 AM.


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