Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   hat type stuff (https://forums.graalonline.com/forums/showthread.php?t=33988)

MaverickZero 07-22-2002 09:15 AM

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

Python523 07-22-2002 09:37 AM

strequals(#P1,hatimage)

screen_name 07-22-2002 03:10 PM

lol, it seems that you need to script a system with defense first :)

lol

MaverickZero 07-23-2002 12:41 PM

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

Torankusu 07-23-2002 12:42 PM

if (strequals(#P1,hatimage)){
the stuff to do.
}


edit. I added the needed parenthesis I left out.

MaverickZero 07-23-2002 12:45 PM

???

Torankusu 07-23-2002 12:53 PM

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.

MaverickZero 07-23-2002 12:57 PM

ooohhhhhhhh. ok, now i get it thanks now i cant get to work...
crap the baties n my kybrd ar diing!!

Poogle 07-23-2002 08:20 PM

Quote:

Originally posted by Kaimetsu


Not to be pedantic, but you're missin' a bracket there.

thats been affecting me too lately

sailortrixi 07-24-2002 06:56 AM

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

Torankusu 07-24-2002 09:16 AM

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.

screen_name 07-24-2002 10:48 AM

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

Python523 07-24-2002 10:51 AM

test doesn't help a lot once you get into serverside scripting :( but format is still helpful :)

screen_name 07-24-2002 11:47 AM

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

adam 07-24-2002 02:47 PM

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

screen_name 07-24-2002 08:50 PM

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

adam 07-24-2002 10:02 PM

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

screen_name 07-24-2002 10:17 PM

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?

screen_name 07-25-2002 03:00 AM

lol, if it weren't for you insisting on me styling that i probably wouldn't style at all :)

adam 07-25-2002 03:05 AM

Quote:

Originally posted by screen_name



wouldn't that be test?

Style can show you where you need a bracket too ;-/

sailortrixi 07-26-2002 11:10 AM

wow, I wish i understood this stuff you pll talk about. when it comes to scripting, I'm beyond a Noob


All times are GMT +2. The time now is 05:22 PM.

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