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 06-01-2002, 12:07 PM
Bhala Bhala is offline
Disgruntled Monkey
Bhala's Avatar
Join Date: Mar 2001
Posts: 779
Bhala is on a distinguished road
Flags/Events

OK i need help. I have a list of flags & events. I need to know what ones are missing & if any are wrong.... pls let me know....

Events:
timeout
compusdied
exploded
firedonhorse
peltwithblackstone
peltwithbush
peltwithnpc
peltwithsign
peltwithstone
peltwithvase
playerchats
playerdies
playerendsreading
playerenters
playerhurt
playerlaysitem
playertouchsme
playertouchsother
shotbybaddy
shotbyplayer
washit
waspelt
wasshot
wasthrown
weaponfired

Flags
weaponsenabled
visible
startswith()
strcontains()
strequals()
playerattached
playeronhorse
playerreading
playerswimming
playerisfemale
playerismale
followsplayer
hasweapon()
isleader
isonmap
issparringzone
isweapon
keydown()
lighteffectsenabled
nopkzone
onmapx()
onmapy()
onwall()
onwater()
playeronline
canspin
carrying
carriesblackstone
carriesbush
carriessign
carriesstone
carriesvase
compsdead
__________________
Reply With Quote
  #2  
Old 06-01-2002, 12:09 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
mousedown is an event, and not that many people know about it, I think, but
if (emoticon)
exists
Reply With Quote
  #3  
Old 06-01-2002, 12:14 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
leftmousebutton,rightmousebutton, and middlemousebutton are flags
Reply With Quote
  #4  
Old 06-01-2002, 12:20 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by CheeToS2
leftmousebutton,rightmousebutton, and middlemousebutton are flags
No, they would be events, events are things that are true when an action happens, flags are things that are true when something equals the flag
Reply With Quote
  #5  
Old 06-01-2002, 12:27 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Re: Re: Flags/Events

Quote:
Originally posted by Kaimetsu
startswith()
strcontains()
strequals()
hasweapon()
keydown()
onmapx()
onmapy()
onwall()
onwater()

THESE ARE NOT FLAGS.
I think Bhala got the idea that they were flags from the commands.rtf, which lists them as built-in flags
Reply With Quote
  #6  
Old 06-01-2002, 01:15 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Re: Re: Re: Flags/Events

Quote:
Originally posted by Python523

I think Bhala got the idea that they were flags from the commands.rtf, which lists them as built-in flags
Probably. *scolds bhala*
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #7  
Old 06-01-2002, 03:54 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
Re: Re: Flags/Events

Quote:
Originally posted by Kaimetsu
startswith()
strcontains()
strequals()
hasweapon()
keydown()
onmapx()
onmapy()
onwall()
onwater()

THESE ARE NOT FLAGS.
Calm down, don't get your panties in a bunch.
Reply With Quote
  #8  
Old 06-01-2002, 04:05 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
Re: Re: Re: Re: Flags/Events

Quote:
Originally posted by Kaimetsu


This from the guy holding a vendetta because I deleted his against-the-rules posts?
No, your just getting a little TOO intense with someones errors...
Reply With Quote
  #9  
Old 06-01-2002, 05:48 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
Re: Re: Re: Re: Re: Re: Flags/Events

Quote:
Originally posted by Kaimetsu


No, getting a little TOO intense would be pointing out that you put "your" instead of "you're" and "someones" instead of "someone's".
I have a reason though.

It's 4 o'clock in the morning.
Reply With Quote
  #10  
Old 06-01-2002, 06:11 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
Re: Re: Re: Re: Re: Re: Re: Re: Flags/Events

Quote:
Originally posted by Kaimetsu


Yes indeed. Which is why I won't be that intense
Reply With Quote
  #11  
Old 06-02-2002, 12:26 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by Python523

No, they would be events, events are things that are true when an action happens, flags are things that are true when something equals the flag
Actually, if you have ever tried to use them, you would know they are flags. To find out when someone has clicked the left mouse button, this does not work...

NPC Code:

if (leftmousebutton) {}



The EVENT to figure out when a mouse button is pressed is mousedown. So, to figure out when a player clicks the left mouse button...

NPC Code:

if (mousedown && leftmousebutton) {}



It fooled me the first time, too, but leftmousebutton, rightmousebutton, and middlemousebutton are flags.
Reply With Quote
  #12  
Old 06-03-2002, 07:14 AM
Bhala Bhala is offline
Disgruntled Monkey
Bhala's Avatar
Join Date: Mar 2001
Posts: 779
Bhala is on a distinguished road
i know thos are not flags. They were just posted as such in commands.rtf & i didnt have time to move them. There posted under flags because they return ether true or false like a flag.
__________________
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 12:32 AM.


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