mob
verb
intangible()
density = 0
if(usr.key="War Dragoon")
Problem description:Can't seem to get this to work. Pls help?
ID:2102106
Jun 17 2016, 6:55 pm
|
|
mob Problem description:Can't seem to get this to work. Pls help? |
Jun 17 2016, 7:04 pm
|
|
you should check if theyre an admin before you set their density to 0 also = is for setting a value while == is for checking
|
mob Output: System.dm:15:warning: if: if statement has no effect |
you want the density change to only happen if the if statements true so you would put it inside the if (tab the density)
|
mob |
mob/verb/intangiblity() |
In response to War Dragoon
|
|
I'm surprised nobody has addressed how horrible of an idea handling verbs this way is. If only admins are able to use them, then there's no reason why regular players should have them. These verbs should be under /mob/admin and you should have a list of admin keys. On Login(), check if the key of the user who logged in is in the admins list. If so, give them all admin verbs(or some, depending on whether or not you have different admin levels) with typesof()
|