![]() |
weapon list..
I was b0red.. nothing much . u can learn off of it .. ^^ (i still rather use the one that comes with Graal)
I would make it go around like instead of just showing 1 it shows a circle of them. . but its not like im going to use this ^_^ NPC Code: |
what does it do?
dose not work for me |
Dude that is awesome! Could you help me learn that type of stuff like:
for (this.i=0;this.i<weaponscount;this.i++) { please? |
Quote:
|
Quote:
since even hidden weapons that start with - are considered weapons,when you make your own weapon list you want to keep those away. If you do selectedweapon+=1; (to go to the next weapon) it will work fine. but if you subtract one it wont. why? because of the hidden npc's.. If a hidden npc is before the one it will just add 1 to it until it finds a non hidden one.. So i use NPC Code: which will go from your current weapon down to 0 (the first weapon) and find the closest one to it which is not a hidden weapon. For example lets say you have bow, bomb, -system, fireblast When It is on fireblast and I want to go back, I dont want the -system to become the weapon, because if I set it to -system, Graal will say "thats a hidden weapon" and will go back to the fireblast. Now using the loop It will go from -system to bow looking for the first one that is not hidden, which in the case would be bomb^_^ (confusing i hope it helps hehe) |
Yea I guess it helps a bit. is this.i a built in graal var or is it just the one people most commonly use?
|
Quote:
i, z, a, b ,x , y those are like the most common I believe |
Hmm...very interesting.
|
~AlphaFlame~
this.i is a this. variable, which means it's basically a variable that only the NPC its located in can use. This. variables can be named anything you want... ex: this.thisisathisvariablelookitisntitlikethecoolest thing... just a really stupid example though :-P Most people use this.i... probably because i stands for index in most peoples minds... *shrug*. |
Nice scripting, but you could at least be more original on how the weapons scroll and appear on the screen ;)
|
Quote:
It would be neat if it was like listed alphabetically or something like that .. or listed FF7 style (like a screen then opens up a screen in a screen..and so on) .. or have like the Hat item where its a circle of the weapons (would be trouble with too many weapons though) |
~AlphaFlame~
Quote:
... for loop... strequals... FF7 style: ... showimg... for loops... and hidden weapons to determine what goes where... Circle: ... limit the amount of weapons shown at one time... showimg... yet again, for loop... |
Quote:
alphabetically u would have to create an array with all the letters in order.. and FF7 style is just like a menu then it would be grouped.. for circle u would just use cosine/sine (or that new getangle thing) and add radius depending on weaponscount |
Simple but neat. Useless though, unless it servers somesort of purpose like showing other things besides wepons. ect ect.
|
Cool, I wish my computer worked so I could finish my weapon list script :(
Its going to be "special", mainly because I'm not a good scripter. ;) |
hes right
Quote:
|
that would look twice as awesome with some background gifs for it too ...
|
Re: hes right
Quote:
|
yes it works ;)
it could be useful if you were developing your own type of weapon system .. like Boco was .. also if you wanted to make a FF style battlesystem you could use this to change weapons or something .. or just use the disableselectweapons command to just disable the weapon list ;) |
| All times are GMT +2. The time now is 06:38 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.