Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-22-2002, 09:15 AM
MaverickZero MaverickZero is offline
Registered User
Join Date: Jun 2002
Location: New York
Posts: 56
MaverickZero is on a distinguished road
Send a message via AIM to MaverickZero Send a message via Yahoo to MaverickZero
Question hat type stuff

How would i script a hat that add/takes away abblities of a player when used, like a wings that add to speed but take from defence and the same npc is use to put on sunglasses that boost attack and take from speed. and all of this at the same time...
If this makes sense to anyone... (I failed english 4 times. Wonder why?)
__________________
Maverick Zero

----------------------------
AIM: MaverickZeroUnit
Reply With Quote
  #2  
Old 07-22-2002, 09:37 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
strequals(#P1,hatimage)
Reply With Quote
  #3  
Old 07-22-2002, 03:10 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
lol, it seems that you need to script a system with defense first

lol
__________________
[signature]insert here[/signature]
Reply With Quote
  #4  
Old 07-23-2002, 12:41 PM
MaverickZero MaverickZero is offline
Registered User
Join Date: Jun 2002
Location: New York
Posts: 56
MaverickZero is on a distinguished road
Send a message via AIM to MaverickZero Send a message via Yahoo to MaverickZero
i wasnt clear about my post im if a hat like sunglasses was on the player it would make someones sword power go up but there walking speed go down without affecting the shield power but could also put on wings that will boost walk speed back up and lower the shield power. This is all useing the normal sword/shield system... Again if this makes sense to anyone please help...
(Im going for a 5th year)

oh what does "strequals(#P1,hatimage)" im confused...

I played graal for years and cant programm well...
__________________
Maverick Zero

----------------------------
AIM: MaverickZeroUnit
Reply With Quote
  #5  
Old 07-23-2002, 12:42 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
if (strequals(#P1,hatimage)){
the stuff to do.
}


edit. I added the needed parenthesis I left out.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.

Last edited by Torankusu; 07-24-2002 at 09:11 AM..
Reply With Quote
  #6  
Old 07-23-2002, 12:45 PM
MaverickZero MaverickZero is offline
Registered User
Join Date: Jun 2002
Location: New York
Posts: 56
MaverickZero is on a distinguished road
Send a message via AIM to MaverickZero Send a message via Yahoo to MaverickZero
???
__________________
Maverick Zero

----------------------------
AIM: MaverickZeroUnit
Reply With Quote
  #7  
Old 07-23-2002, 12:53 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by MaverickZero
???
if you cannot understand that, I wouldn't bother trying to script it.

But, if you insist.

if (strequals(#P1,hatimage)) --- will check if the player is wearing the specific hat.
in the brackets, you would put the effects it has on the player.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.

Last edited by Torankusu; 07-24-2002 at 09:12 AM..
Reply With Quote
  #8  
Old 07-23-2002, 12:57 PM
MaverickZero MaverickZero is offline
Registered User
Join Date: Jun 2002
Location: New York
Posts: 56
MaverickZero is on a distinguished road
Send a message via AIM to MaverickZero Send a message via Yahoo to MaverickZero
ooohhhhhhhh. ok, now i get it thanks now i cant get to work...
crap the baties n my kybrd ar diing!!
__________________
Maverick Zero

----------------------------
AIM: MaverickZeroUnit
Reply With Quote
  #9  
Old 07-23-2002, 08:20 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 Kaimetsu


Not to be pedantic, but you're missin' a bracket there.
thats been affecting me too lately
Reply With Quote
  #10  
Old 07-24-2002, 06:56 AM
sailortrixi sailortrixi is offline
Registered User
Join Date: Jul 2002
Location: NY, USA!!!
Posts: 30
sailortrixi is on a distinguished road
Send a message via AIM to sailortrixi Send a message via Yahoo to sailortrixi
I'm just repling cause i want MaverickZero to feel popular and heard, though he is stupid, he's got feelings, sometimes. You see I live with this ignoramous, he's my bro in real life.
__________________
I'm close to my friends, I'm at peace with others, and I hate the scum.
Reply With Quote
  #11  
Old 07-24-2002, 09:16 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by Kaimetsu


Not to be pedantic, but you're missin' a bracket there.
test detects it. I guess i've been using relying on it a bit too much.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #12  
Old 07-24-2002, 10:48 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Torankusu
test detects it. I guess i've been using relying on it a bit too much.
i would hope all scripters do

i know i use it a lot
__________________
[signature]insert here[/signature]
Reply With Quote
  #13  
Old 07-24-2002, 10:51 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
test doesn't help a lot once you get into serverside scripting but format is still helpful
Reply With Quote
  #14  
Old 07-24-2002, 11:47 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Python523
test doesn't help a lot once you get into serverside scripting but format is still helpful

true, true

i remember i spent hours trying to fix a script and it was one little typo Xx
__________________
[signature]insert here[/signature]
Reply With Quote
  #15  
Old 07-24-2002, 02:47 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
style button is awesome even helps find errors sometimes

course make sure you don't have say2 in there. possible it could move the text up... =/
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #16  
Old 07-24-2002, 08:50 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
lol

i remember when i scripting like a n00b without using "style"

but i dont need the button anymore, kai accidentally got me stuck on just putting the spaces myself Xx


remember my old sig kai?
__________________
[signature]insert here[/signature]
Reply With Quote
  #17  
Old 07-24-2002, 10:02 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by Kaimetsu
I HATE the style button.
Usually I use the style button to check if I forgot a bracket

I always format my stuff myself
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #18  
Old 07-24-2002, 10:17 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by adam


Usually I use the style button to check if I forgot a bracket

I always format my stuff myself

wouldn't that be test?
__________________
[signature]insert here[/signature]
Reply With Quote
  #19  
Old 07-25-2002, 03:00 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
lol, if it weren't for you insisting on me styling that i probably wouldn't style at all
__________________
[signature]insert here[/signature]
Reply With Quote
  #20  
Old 07-25-2002, 03:05 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by screen_name



wouldn't that be test?
Style can show you where you need a bracket too ;-/
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #21  
Old 07-26-2002, 11:10 AM
sailortrixi sailortrixi is offline
Registered User
Join Date: Jul 2002
Location: NY, USA!!!
Posts: 30
sailortrixi is on a distinguished road
Send a message via AIM to sailortrixi Send a message via Yahoo to sailortrixi
wow, I wish i understood this stuff you pll talk about. when it comes to scripting, I'm beyond a Noob
__________________
I'm close to my friends, I'm at peace with others, and I hate the scum.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:52 PM.


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