![]() |
Colored Item Names - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Colored Item Names (/Thread-Colored-Item-Names) |
RE: Colored Item Names - JohnVeritas - 03-02-2014 03:47 AM Seems like magicals, give morey to items ( as usual way +3 got 200 morey +6 400 etc. ) under click trigger if (<morey> > 100) && (<color> != <purple>) color <purple> elseif (<morey> > 200) && (<color> != <blue>) color <blue> ... . .. I think you get what i want to explain ![]() RE: Colored Item Names - Osirirs - 03-02-2014 04:11 AM Thanks guys! XuN I'm getting a bit lost in the event thing, adding a tag to an event related to all players would change the rarity on the items? John I could do it like that too yeah, so I'd just have to add the Morey under the type and stuff? Sorry guys I sound like the Total newb xD its just I'm trying to make the link between this and the items. I get lost when it gets to Tags and events :/ RE: Colored Item Names - JohnVeritas - 03-02-2014 05:32 AM If item is custom ( scripted by you ), you can set morey value under crate trigger; on=@create morey 200 .. .. .. otherwise ( default magicals or artifact items ) you have to edit values. Also type isnt matter it could be t_armor, t_weapon_sword, t_weapon_fence just define that types as like i defined. RE: Colored Item Names - Osirirs - 03-02-2014 06:30 AM Okay but wouldn't that set the item color?? o.O instead of the item name? RE: Colored Item Names - JohnVeritas - 03-02-2014 09:45 AM You can use click trigger for multiple events. If item got color that u want nothing changes otherwise it will change color. One way or another clicking will show item name as colored. Like; on=@click if (<more> > 100) color 07a1 elseif (<more> > 300) color 080a endif message @07a1,,1 <name> return 1 RE: Colored Item Names - Alaric - 03-02-2014 09:54 AM Checking is ugly, its better to use defs as xun suggested. There are many ways to do coloured naming, it depends what exactely you want. But since this fires very often, it's better not to do lots of operations. RE: Colored Item Names - Osirirs - 03-02-2014 12:52 PM yes that's what I figured, tho I'm not sure how to use the defs with the tag. And then I thought about it too and I don't think I can use John's way either cause I still write the weapon stats as a sysmessage so even if I used a command to pre-set the item rarity with a color I'd still have to write the stats ![]() tho I'd very much like to set a rarity system, I started with what XuN suggested but not sure of what to do next :/ thanks a lot for your help guys! I appreciate it ![]() RE: Colored Item Names - XuN - 03-02-2014 03:14 PM About the tag... it was just an example, I don't know how are you going to store the rarity of the item, but I guessed you are going to use a tag, you can use what you want to and change the tag line with the identifier for the rarity. RE: Colored Item Names - Osirirs - 03-03-2014 02:06 AM Oh okay, well then I'll just keep writing everything as sysmessages until I know better xD I'm learning really fast here so I guess it won't be too long until I can figure out how to use these tags ![]() Thank you! ![]() by the way, if anyone knows a great tutorial about Tags which would help me understand how to use them it would be very appreciated! Followed the one on spherewiki but damn the guy lost me :/ Thanks again ^^ RE: Colored Item Names - XuN - 03-03-2014 06:03 AM Code: [Itemdef i_staff_dragonwrath] |