mob/npc/var/mob/target = user
Will return the target as "[user]" instead of just user
Help please :)
ID:2121869
Jul 25 2016, 11:33 pm
|
|
I'm trying to define an npcs variable as a mob but I keep getting text as the mobs name instead of the actual mob.
mob/npc/var/mob/target = user
Will return the target as "[user]" instead of just user Help please :) |
Jul 26 2016, 1:07 am
|
|
Basically an npc is given a target. The target is a mob. When I try to access that target it returns as text. It will return the target as "[target.name]" instead of target. So an npcs target will be a text string instead of an actual mob.
|
Ohh it'd be something like this if im getting your drift
var |
In response to Hebrons
|
|
ummmmmmm
I just want to set a mobs variable as another mob. |
That's exactly what he showed you, when you output the value of a variable that's been set to the reference to another datum it'll show the name of that datum.
However you'd be able to utilize it as properly referencing said datum. src.target.some_variable = 50 Would be valid in Hebrons' example if /mob had a some_variable variable. |