The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Command to force a NPC to attack a given target
Author Message
Boydon
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #1
Command to force a NPC to attack a given target
As the subject say.

I remember there i command to force an npc to a attack a given target, but i cant remember.

It is neither .attack nor .xattack
04-29-2012 05:22 AM
Find all posts by this user Like Post Quote this message in a reply
Fallout
Apprentice
*

Posts: 6
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #2
RE: Command to force a NPC to attack a given target
.xattack - you select target what will attempt to attack you.
04-29-2012 05:45 AM
Find all posts by this user Like Post Quote this message in a reply
Boydon
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #3
RE: Command to force a NPC to attack a given target
Maybe I din't explain well: I want the NPC to attack the target I decide not me. That is what I mean. Smile
04-29-2012 05:51 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #4
RE: Command to force a NPC to attack a given target
in a speech file...


ON=@SeeNewPlayer
SAY Brains!
ATTACK
or to make NPCs fight, give one a berserker brain... NPC=brain_beserk

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 04-29-2012 09:40 AM by x77x.)
04-29-2012 09:39 AM
Find all posts by this user Like Post Quote this message in a reply
Boydon
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #5
RE: Command to force a NPC to attack a given target
This is not what I asked for: I don't need to know how to script it (I already do).

What I would like to know is the ingame command that works like this:
  1. I enter the command and a target comes up
  2. I target NPC X
  3. I target player Y
  4. NPC X attacks player Y


There used to be, I'm sure. I just can't remember it.
04-29-2012 10:36 PM
Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #6
RE: Command to force a NPC to attack a given target
Are you sure this is part of default and wasn't somebody's script package?

In any case, untested and off the top of my head... (and 56b syntax though I don't think it matters here)

[FUNCTION Attackorder]
TARGETF Attackorder1

[FUNCTION Attackorder1]
TARGETF Attackorder2 <TARG>

[FUNCTION Attackorder2]
TRYSRC <ARGS> TARG.ATTACK
04-30-2012 06:01 AM
Find all posts by this user Like Post Quote this message in a reply
Crusader
Master
**

Posts: 254
Likes Given: 7
Likes Received: 19 in 12 posts
Joined: Apr 2012
Reputation: 6

Erehwon New Hera

Post: #7
RE: Command to force a NPC to attack a given target
point is that is not a scripting issue....
the problem is that when he try to do .attack or .xattack on an NPC to let this npc attack another target (player or other NPC) the result is that the first targetted NPC will attack himself (the GM) and he is trying to avoid this.
So without scripting... as far as i undestand he just want to know a command that let an NPC attack another one, prolly for Roleplay/quest purpose.
04-30-2012 06:40 AM
Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #8
RE: Command to force a NPC to attack a given target
Yes, I get all that. ATTACK always attacks the source, so that behaviour is expected and normal.

Since I don't know of the command he wants or if it ever existed I just wrote it from scratch. Add that script and put the command in the Plevel and .Attackorder should do exactly what he wanted. Assuming I did it right of course.
04-30-2012 07:32 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #9
RE: Command to force a NPC to attack a given target
there is no attack command

its ATTACK scriptside


and 51a has no function... just saying

Dragons of Time 2000-2020
http://dragonsoftime.com
04-30-2012 09:16 PM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #10
RE: Command to force a NPC to attack a given target
Just script the function using targeting code.
05-01-2012 03:54 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)