Script to add to faction you have made

Post » Wed Jun 20, 2012 7:02 pm

I know I can do this





;======================================================================================;
; VARIABLES /
;=============/

actor Victim


;======================================================================================;
; SCRIPT /
;=============/

if victim.IsInFaction(ZZDeathFaction)
Debug.Trace("in faction")
endIf


But I get this error variable ZZDeathFaction is undefined So I know I need to define it but I am not sure how ?
User avatar
Albert Wesker
 
Posts: 3499
Joined: Fri May 11, 2007 11:17 pm

Post » Wed Jun 20, 2012 4:06 pm

What are attaching the script to? I ask because that is not a complete script. Unless its a fragment.
With a little information we might be able to help.
User avatar
yessenia hermosillo
 
Posts: 3545
Joined: Sat Aug 18, 2007 1:31 pm

Post » Wed Jun 20, 2012 5:56 pm

Properties. You needz them.

put this line in:

Faction Property ZZDeathFaction auto
User avatar
carrie roche
 
Posts: 3527
Joined: Mon Jul 17, 2006 7:18 pm

Post » Wed Jun 20, 2012 1:38 pm

Faction Property ZZDeathFaction auto worked Great. I use to program in Oblivion and had no problem. This scripting has some rules I am a tad unfamiliar with. I wish someone would take tit for tat and draw up a sample script that uses one of each
thus showing how to associate the variables or constants or references with the commands as understanding the command is easy... know the format expected to declare it is a bit harder. I have figured out a lot but but there are still some dark holes
?in this process. Thanks a million for the replies.. oh and I know there are extend form tags at the top which if I am assuming correct attach a script to say and actor or a chest or a magical spell...
User avatar
City Swagga
 
Posts: 3498
Joined: Sat May 12, 2007 1:04 am

Post » Wed Jun 20, 2012 4:54 pm

Happy to be of help.
There are a few holes, you're right, but I started modding about three weeks ago (had never worked with video games before) and I think I'm pretty much up to speed. I'm sure you'll have no problems. Yeah, I heard Oblivion doesn't have properties, but honestly I can't IMAGINE life without them, even with the trouble they sometimes cause.
User avatar
Sanctum
 
Posts: 3524
Joined: Sun Aug 20, 2006 8:29 am


Return to V - Skyrim