Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
ClearFactionRecord Class Reference
Inheritance diagram for ClearFactionRecord:
Script

Public Member Functions

def __init__
 
def __call__
 
- Public Member Functions inherited from Script
def __init__
 
def __call__
 

Data Fields

 faction
 
 newval
 
- Data Fields inherited from Script
 nextscript
 

Detailed Description

Definition at line 442 of file campaign_lib.py.

Constructor & Destructor Documentation

def __init__ (   self,
  fac,
  newrelation,
  nextscript = None 
)

Definition at line 443 of file campaign_lib.py.

444  def __init__(self,fac,newrelation,nextscript=None):
445  Script.__init__(self,nextscript)
446  self.faction=fac
self.newval=newrelation

Member Function Documentation

def __call__ (   self,
  room,
  subnodes 
)

Definition at line 447 of file campaign_lib.py.

References ClearFactionRecord.faction, and ClearFactionRecord.newval.

448  def __call__(self,room,subnodes):
449  Script.__call__(self,room,subnodes)
450  rel=VS.GetRelation(self.faction,"privateer")
451  VS.AdjustRelation(self.faction,"privateer",self.newval-rel,1.0)
452  rel=VS.GetRelation("privateer",self.faction)
VS.AdjustRelation("privateer",self.faction,self.newval-rel,1.0)

Field Documentation

faction

Definition at line 445 of file campaign_lib.py.

newval

Definition at line 446 of file campaign_lib.py.


The documentation for this class was generated from the following file: