Jump to content

Home

Scripting question....


Pseudopath

Recommended Posts

Posted

Hi,

 

Can anyone tell me how I would set a key value eg. to make a NPC use a script after a counter has fired it target?

 

I have an idea how it might work but thought it better to ask as well.

 

Thanks.

 

- Pseudopath.

Posted

Why don't you just make counter fire target_scriptrunner which runs a script which "affects" the NPC?

 

ps: you can target counter at multiple targets.

Posted

Thanks Xcom, could you be a bit more specific....

I understand that I could fire a target_scriptrunner..

The script I know could be set to affect a NPC, but how exactly, like this :-

 

set ("affect" ,"NPC_targetname");

 

??

 

I look forward to your reply.

 

Thanks.

 

- Pseudopath.

Posted

it's just

affect ( "NPC_targetname", FLUSH )

FLUSH means that all the things the NPC was doing before get completely deleted, if you type INSERT instead, the commands of the script will just be inserted into the things the NPC did. After the script had run, these things will continue to happen like before the script started.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...