leconbras on 13/3/2018 at 23:03
Thank you. I've done something like that. But what I'm trying to understand is how this script works, because I've tried the same procedure with several different properties on different objects, and none worked. Could you give me a simple example, using a switch that sends a TurnOn message and removes some property? I need to at least get it once. :D
voodoo47 on 13/3/2018 at 23:09
I would specify the turnon event just to be sure: NVRemovePropertyTrapOn="MySignal"; or something.
leconbras on 13/3/2018 at 23:11
I've tried this, but not in every attempt. If anyone has any setup examples that are working with NewDark 1.25 (NVScript 1.2.6) I would appreciate it.
R Soul on 13/3/2018 at 23:29
AI_Team is the correct name.
leconbras:
The cause of your problem is the space before the =
and the second parameter (...ReAdd) is unnecessary because the property is inherited (look at each of the AI's parent archetypes until you find it).
Larry:
3 - For any 'drop down list' property, the value type is 'enum' - A set of integers associated with a limited set of string values. In this case, 0 = Good, 1 = Neutral etc.
leconbras on 13/3/2018 at 23:40
[QUOTE=The cause of your problem is the space before the =
and the second parameter This space is because I copied and pasted. In fact, it does not exist. As I said, I have tried in many ways, and none of them worked, even without the second command.
R Soul on 13/3/2018 at 23:46
Have a look at this simple demo, which works fine for me:
(
http://www.mediafire.com/file/x7vy7wqh8v7l4cw/StopFighting.zip)
Turn off AI awareness before going in game. Pressing the button will stop the guards from fighting.
(I gave each one 100 hit points to ensure they both stayed alive long enough to be sure it worked)
LarryG on 14/3/2018 at 05:54
Quote Posted by R Soul
For any 'drop down list' property, the value type is 'enum' - A set of integers associated with a limited set of string values. In this case, 0 = Good, 1 = Neutral etc.
I thought that might be the case, hence the "It might be stored as just an integer code that maps to the strings." statement, but I wasn't certain. Nice to know. Is that documented anywhere, say, in The Dromesday Book?