@name Targeter Framework
@inputs
@outputs
@persist Tar:entity
@trigger
if(first()){
runOnTick(1)
runOnChat(1)
}
if(chatClk(owner())){
#If the owner talks
Data=owner():lastSaid():explode(",")
if(Data:string(1)=="!tar"){
#If the owner started with "!tar" (To avoid it running everything owner says)
Tar=findPlayerByName(Data:string(2))#Find a target player by name
if(Tar){
#do this if we found a target
print(Tar:name())
}else{
#If there is no target
}
}
if(Tar){
#Do this everytime if we have a target
}