Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Flags/Events (https://forums.graalonline.com/forums/showthread.php?t=30568)

Bhala 06-01-2002 12:07 PM

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

Python523 06-01-2002 12:09 PM

mousedown is an event, and not that many people know about it, I think, but
if (emoticon)
exists

CheeToS2 06-01-2002 12:14 PM

leftmousebutton,rightmousebutton, and middlemousebutton are flags

Python523 06-01-2002 12:20 PM

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

Python523 06-01-2002 12:27 PM

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

Saga2001 06-01-2002 01:15 PM

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*

nyghtGT 06-01-2002 03:54 PM

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.

nyghtGT 06-01-2002 04:05 PM

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...

nyghtGT 06-01-2002 05:48 PM

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.

nyghtGT 06-01-2002 06:11 PM

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 :)

;)

BBflat 06-02-2002 12:26 AM

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.

Bhala 06-03-2002 07:14 AM

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.


All times are GMT +2. The time now is 03:28 PM.

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