Use of TAG.NAME.HUE for players? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Use of TAG.NAME.HUE for players? (/Thread-Use-of-TAG-NAME-HUE-for-players) |
Use of TAG.NAME.HUE for players? - pinku - 09-02-2013 07:45 PM Hey! I'm having another issue with my scripts. Right now, I am trying to use TAG.NAME.HUE to differ players from Order Faction to Chaos Faction. While it runs just fine on NPCs (@CREATE), I couldn't get it to work on players, I'm probably using it just wrong. What I have tried so far: Code: ELSEIF (<BLABLA> == 01) && (<SRC.RESTEST blabla>) Same if I use TAG.NAME.HUE. (never thought it would work, but...) I also tried with a normal function; Code: [FUNCTION test_click] And also with EVENTS... Code: [EVENTS e_test_click] Events and Functions: Code: ON=@CLICK And even in-game: Code: .set TAG.NAME.HUE=07ab Clearly, I don't know WTF I'm doing, can someone help me out with the proper use? Thanks again! RE: Use of TAG.NAME.HUE for players? - dagger4k - 09-02-2013 08:40 PM I assume more scripts connect with the tag.name.hue (this being the determining factor for the player?) Firstly If its just to change the player name colour you can handle this as an event that you add to the player.. For example Code: [event e_chaos] Then you can add more things to this to make sure you can't attack people in the same faction etc... message back if this isn't what you wanted to do RE: Use of TAG.NAME.HUE for players? - Mordaunt - 09-02-2013 09:42 PM TAG.NAME.HUE works fine. It does not however work for tooltips and I am wondering if this is what is causing you issue, since that is what will show above a players head if you have FEATURE_AOS_UPDATE_B enabled. You would have to override those under the @ClientToolTip trigger RE: Use of TAG.NAME.HUE for players? - pinku - 09-02-2013 09:51 PM Well, this is a faaaaaaaar easier way and will work for me.. I never really tried it on players, because on NPCs it shows the blue/red name on the journal anyway. So on NPCs it looks like: <COLORED NAME> <NAME> I'm surprised this works fine on players. EXCEPT it overwrites my guild tags and etc. However, I'm still looking for the solution for curiosity and because I planned to use TAG.NAME.PREFIX and TAG.NAME.SUFFIX. Not that it would be hard to set a prefix and suffix with your EVENT, but yeah, I'm curious. xD _________________________________________________________________________________________________________________________ @Mordaunt My FEATURE_AOS_UPDATE_B is disabled. TAG.NAME.HUE works on NPCs for me, but not on players, I'm not sure why RE: Use of TAG.NAME.HUE for players? - darksun84 - 09-02-2013 10:34 PM Tag.Name.Hue works fine for me, as dagger4k wrote, is it possible you have some sccripts that use tag.name.hue and conflicts each other ? |