![]() |
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?) |
strequals(#P1,hatimage)
|
lol, it seems that you need to script a system with defense first :)
lol |
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... |
if (strequals(#P1,hatimage)){
the stuff to do. } edit. I added the needed parenthesis I left out. |
???
|
Quote:
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. |
ooohhhhhhhh. ok, now i get it thanks now i cant get to work...
crap the baties n my kybrd ar diing!! |
Quote:
|
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
|
Quote:
|
Quote:
i know i use it a lot |
test doesn't help a lot once you get into serverside scripting :( but format is still helpful :)
|
Quote:
true, true i remember i spent hours trying to fix a script and it was one little typo Xx |
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... =/ |
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? :) |
Quote:
I always format my stuff myself |
Quote:
wouldn't that be test? |
lol, if it weren't for you insisting on me styling that i probably wouldn't style at all :)
|
Quote:
|
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.