Difference between revisions of "A beginner's guide, lesson 7 - Using Scripts in Quests"

Jump to navigation Jump to search
→‎Factions: fixing faction relations
imported>Pyrocow2
(→‎The Final Chamber: Blair's conversation)
imported>Pyrocow2
(→‎Factions: fixing faction relations)
Line 575: Line 575:
#To make groups of NPCs that can be used in condition statements. (e.g., when we used the ICFaction to apply conditions to citizens of the Imperial City)
#To make groups of NPCs that can be used in condition statements. (e.g., when we used the ICFaction to apply conditions to citizens of the Imperial City)


To create a new faction, open up the Faction box from the Character menu. The column on the left lists all of the existing factions. Rick-click in the column and select New. Give the Faction a unique ID, such as BGRedRoseBrigade. Now, add the name to the top: Red Rose Brigade.  
To create a new faction, open up the Faction box from the Character menu. The column on the left lists all of the existing factions. Rick-click in the column and select New. Give the Faction a unique ID, such as ''BGRedRoseBrigade''. Now, add the name to the top: ''Red Rose Brigade''.  


The "Hidden from PC" flag at the top basically controls whether or not a player can enter that faction. Check this box.
The "Hidden from PC" flag at the top basically controls whether or not a player can enter that faction. Check this box.
Line 587: Line 587:
The results are cumulative. Let’s say we decide that the Red Rose Brigade is closely affiliated with the various Bandits who occupy Tamriel. We can add a modifier of, say, +70 to that group. Create a new entry for the Bandit faction, and set the modifier to 70. From now on every member of the Red Rose faction will add 70 to there disposition towards bandits. We can add as many groups as we like.  
The results are cumulative. Let’s say we decide that the Red Rose Brigade is closely affiliated with the various Bandits who occupy Tamriel. We can add a modifier of, say, +70 to that group. Create a new entry for the Bandit faction, and set the modifier to 70. From now on every member of the Red Rose faction will add 70 to there disposition towards bandits. We can add as many groups as we like.  


We want the Red Rose members to be openly hostile to the PC. For this we can use the PlayerFaction, which has a solitary member: the player. We can adjust the disposition for this faction to -100. This means they will attack the player on sight.
We want the Red Rose members to be openly hostile to the PC. For this we can use ''PlayerFaction'', which has a solitary member: the player. We can adjust the disposition for this faction to -100. This means they will attack the player on sight.


Add one more disposition entry to make the Red Rose members friendly with other members of their own faction.
We also want Red Rose members to be friendly with one another. Add another disposition entry for the Red Rose faction itself, with a relatively high disposition value.
 
Finally, we need to add a separate faction for Brown, so that (1) the Red Rose members don't kill their prisoner and (2) the prisoner won't attack the player.
Name it something like ''BGRRPrisoner''. For the prisoner's faction, add a positive disposition towards the player. Then go back to the ''Red Rose Brigade'' faction and add a positive disposition towards the prisoner's faction.


===Enemy NPCs===
===Enemy NPCs===
Anonymous user

Navigation menu