General > Developers Corner

ULX targeting

(1/1)

hanleyjaa123:
so i have ULX and i am trying to have it so some ranks can't pickup/target eachother order is here
trialmod
moderator
seniormod
gamemaster
admin
senioradmin
head-gm
head-admin
dev
owner
founder

extra:
Diamond
bronze
silver gold
custom

groups.txt https://pastebin.com/rJHHQd3K
i realy need help

iViscosity:
https://forums.ulyssesmod.net/index.php/topic,5346.0.html

Related: https://forums.ulyssesmod.net/index.php/topic,4314.msg16844.html

There's a search bar on the top right of the screen, you should use that before making a new topic, to see if it has already been asked before.

hanleyjaa123:

--- Quote from: iViscosity on July 24, 2017, 10:48:24 AM ---https://forums.ulyssesmod.net/index.php/topic,5346.0.html

Related: https://forums.ulyssesmod.net/index.php/topic,4314.msg16844.html

There's a search bar on the top right of the screen, you should use that before making a new topic, to see if it has already been asked before.

--- End quote ---

i know but i don't understand it was wondering if someone else could explain it a bit better

iViscosity:
Ok. So say you have your group "trialmod". I'm assuming this is the lowest in your inheritance tree, so I'd guess your inherit_from would be "user". Assuming that "moderator" is your second group, the can_target for "trialmod" would be "!%moderator". What "!%moderator" means is "everything except" ( ! ) "the group 'moderator' and anything that inherits from it" ( %moderator ). I'm actually writing up a topic on this right now, so I can link it once I'm done if you still need help.

But your basics should be like this:

--- Code: ---user
    inherits: none
    can_target: !%trialmod
trialmod
    inherits: trialmod
    can_target: !%moderator
moderator
    inherits: trialmod
    can_target: !%seniormod

--- End code ---
and so on and so forth until you've reached the end of your chain. I recommend not having several 'branches' ( two groups inheriting from the same group ), it should be linear.

hanleyjaa123:

--- Quote from: iViscosity on July 24, 2017, 11:35:39 AM ---Ok. So say you have your group "trialmod". I'm assuming this is the lowest in your inheritance tree, so I'd guess your inherit_from would be "user". Assuming that "moderator" is your second group, the can_target for "trialmod" would be "!%moderator". What "!%moderator" means is "everything except" ( ! ) "the group 'moderator' and anything that inherits from it" ( %moderator ). I'm actually writing up a topic on this right now, so I can link it once I'm done if you still need help.

But your basics should be like this:

--- Code: ---user
    inherits: none
    can_target: !%trialmod
trialmod
    inherits: trialmod
    can_target: !%moderator
moderator
    inherits: trialmod
    can_target: !%seniormod

--- End code ---
and so on and so forth until you've reached the end of your chain. I recommend not having several 'branches' ( two groups inheriting from the same group ), it should be linear.

--- End quote ---

This does help, link me after, but somtimes i get complaints that they can't pickup/ target a user

Navigation

[0] Message Index

Go to full version