![]() |
Command to force a NPC to attack a given target - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions) +--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help) +--- Thread: Command to force a NPC to attack a given target (/Thread-Command-to-force-a-NPC-to-attack-a-given-target) Pages: 1 2 |
RE: Command to force a NPC to attack a given target - Nachtmusique - 05-01-2012 07:55 AM No script is needed to do what he is asking. There in no command function for it, but since all npcs act as pets to GMs, you can just say "all attack" or "bob attack". RE: Command to force a NPC to attack a given target - Boydon - 05-01-2012 11:03 AM (05-01-2012 03:54 AM)khaos Wrote: Just script the function using targeting code. Some advice on targeting code in sphere 51a? Cause the ATTACK function seems to have the same behavior also script side (the NPC is attacking me and not the desired target). I've tried many ways also forcing the ACT of the NPC supposed to attack and giving the desired target'UID as argument of the ATTACK function, but with no luck... This is what I have so far: Code: [7020] RE: Command to force a NPC to attack a given target - Khaos - 05-01-2012 11:36 AM Trying using 'link' in your targeting maybe? Have 1st target attack the linked second target and vice versa? I am not familiar with 51a coding. I can just offer coding advice as I remember it from the pre 56b era... ie 55r and 55i... @Nachtmusique If he is not trying to do this as a GM but as a provocation or some other effect, that will not help one bit ![]() RE: Command to force a NPC to attack a given target - evening - 01-11-2013 04:18 PM on=@attack or ON=@SeeNewPlayer if (<var.ack> == 0) && (<src.hits> > 0) var.ack=<src.serial> else var.ack= endif acttack <var.ack> RE: Command to force a NPC to attack a given target - Mordaunt - 01-11-2013 11:47 PM This thread was last active in April.. Please pay attention to dates of posts to save bringing up old threads. RE: Command to force a NPC to attack a given target - jdchixin - 02-23-2013 08:48 PM 51a has no function. no @attact if you want attact s b. you must know his uid. attact <uid> |