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-03-2001, 03:46 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Unhappy #g problem

Is there a way to use the #g string (or any other script), to make an NPC do something only if the person is NOT in a specific guild.

(For example, everyone in a room without a specific guild tag has 5 halfhearts of damage done to them)
Reply With Quote
  #2  
Old 11-03-2001, 03:54 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Re: #g problem

Quote:
Originally posted by Googi
Is there a way to use the #g string (or any other script), to make an NPC do something only if the person is NOT in a specific guild.

(For example, everyone in a room without a specific guild tag has 5 halfhearts of damage done to them)
There is a special operator specifically for things like that, it is the !, or the "Not operator"..It will reverse the true/false value of whatever it is assigned to. so if (!strequals(#g,guildname)) { stuff; }
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #3  
Old 11-03-2001, 05:30 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Re: #g problem

Quote:
Originally posted by Googi
Is there a way to use the #g string (or any other script), to make an NPC do something only if the person is NOT in a specific guild.

(For example, everyone in a room without a specific guild tag has 5 halfhearts of damage done to them)
if (strequals(#g, Pirate Crew )) {
hurt 5;
} (hopefully that above goes online lol)
Reply With Quote
  #4  
Old 11-03-2001, 05:31 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
'!' before actions means when its not true, or when its not running.
__________________
==========================
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
  #5  
Old 11-03-2001, 05:58 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Poogle: he wanted it to do it to anyone except for a specific guild

Vinvect: Umm, sort of, what it does is if something is false, it makes it true, and if its true, it makes it false, "means when its not true, or when its not running" doesn't work as a complete sentance.
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #6  
Old 11-03-2001, 07:13 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
You could do this:
if (strequals(#g,Pirate Crew)) {playerhearts+=5;}
else
{hurt 10;}
Reply With Quote
  #7  
Old 11-03-2001, 08:08 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
A Quote:
One who dies... Well... Dies
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #8  
Old 11-03-2001, 10:04 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Now we know what u want >=(
__________________
No Webhost at the moment
Reply With Quote
  #9  
Old 11-03-2001, 04:50 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
if (!strequals(#g,GUILD NAME HERE)) {
hurt 5;
{
__________________
Donate money for my trip to Germany

Adiarde Manager
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 PM.


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