Player bodyguards. - by Kurtisb
Kurtisb on 2/6/2007 at 01:56
Is it possible to make the City Watch (or any "Official", like Hammer Guards) act as bodyguards?
EDIT: I finally got it so that the City Watch notice you, but ignore you unless you attack them.
EDIT2: Now the game dosen't crash except for unrelated reasons.
Any ideas?
Thanks in advance!
Regards,
Kurtisb
nomad of the pacific on 2/6/2007 at 10:52
Hmm. I didn't have any problems keeping body guards throughout my level when I used them as interference while testing Evicted. :erg:
Kurtisb on 2/6/2007 at 11:59
Would you like to enlighten me as to how you scripted (or however) bodyguards?
Regards,
Kurtisb
nomad of the pacific on 2/6/2007 at 21:56
I can't open Evicted to give you the exact script, but I remember I used:
Condition:When this AI sees the Player
Action: Guard the player
I probably have the wording wrong since I don't have the editor open, but I think you know which Condition and Action I'm referring to. Maybe something else is crashing your level?
Kurtisb on 2/6/2007 at 22:09
Where did you put the script? AIFaction, AIBehaviours or what? This should help me alot.
Regards,
Kurtisb
nomad of the pacific on 3/6/2007 at 05:37
Oh, I just had four pirate females, so I put it on each of them. If you want ALL the guards to protect you, I guess you could put it on the archtype and save the gamesys.
Kurtisb on 3/6/2007 at 18:01
Yes, I want City Watchmen to guard me on site (but not every single one in the area, just 1-3). I have been messing with the City Watch stuff, but even if I were to set it so that if they are within 8,000 feet (or Unreal units, I'm not sure what it is), they still don't guard me.
It's still funny to see the city watch fighting unarmed peasants and noblemen on site, using faction options. :D
Regards,
Kurtisb
Kurtisb on 12/6/2007 at 23:13
I've gotten the GuardPlayer script to work since my last post, but it has since stopped working. It seems as though guarding script is extremely touchy. It'll work one moment, then as soon as you try to edit anything at all related, it all messes up.
What I did was:
CONDITION: When player has 500 of cash and include unsold loot TRUE
CONDITION: When player is within 16 feet of this actor
ACTION: Guard player
P.S. @ Nomad - I'm trying to get Evicted1.3 installed, but fact that the files are compressed means I need GarrettLoader, which won't let me install it. Could you help me, please? I am using Windows Vista Ultimate.
Regards,
Kurtisb
nomad of the pacific on 13/6/2007 at 09:18
If you really want it, I still have the uncompressed version. It's 60 Mb. If you only want it to see how I did characters guarding the player, it won't do you any good since they were only used to run interference while I was beta testing. They aren't in the release version. Let me know if you still want it and I'll upload it somewhere for you this weekend.
Kurtisb on 13/6/2007 at 14:35
Yes. That would be most appreciated if you were to upload the uncompressed version.
EDIT: Wow!!! I just found moments ago that entering "guardplayer" into the debug-mode console will cause the nearest AI to guard you! Even if he/she was attacking you before!
Regards,
Kurtisb