Improoved companion aprooval and attitude (once point 1 is done you can add attitude all you want)
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>399</ID>
<Description>"Companion Cheats (disabling will reset fields) [2WS] by TheMaoci"</Description>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">
[ENABLE]
alloc(m_MainCharacter,0x512)
registersymbol(m_MainCharacter)
alloc(m_Party_2,0x512)
registersymbol(m_Party_2)
alloc(m_Party_3,0x512)
registersymbol(m_Party_3)
alloc(m_Party_4,0x512)
registersymbol(m_Party_4)
m_MainCharacter:
dq 0
m_Party_2:
dq 0
m_Party_3:
dq 0
m_Party_4:
dq 0
[DISABLE]
unregistersymbol(m_MainCharacter)
dealloc(m_MainCharacter)
unregistersymbol(m_Party_2)
dealloc(m_Party_2)
unregistersymbol(m_Party_3)
dealloc(m_Party_3)
unregistersymbol(m_Party_4)
dealloc(m_Party_4)
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>104311</ID>
<Description>"1. Selection"</Description>
<Options moHideChildren="1" moManualExpandCollapse="1"/>
<LastState Value="" Activated="1" RealAddress="00000000"/>
<GroupHeader>1</GroupHeader>
<CheatEntries>
<CheatEntry>
<ID>104302</ID>
<Description>"Select Main Character [Slot 1]"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = GetHostCharacter()
writeString("m_MainCharacter", tostring(variable))
[DISABLE]
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>104307</ID>
<Description>"Variable Saved"</Description>
<LastState RealAddress="1F3663F0000"/>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>String</VariableType>
<Length>36</Length>
<Unicode>0</Unicode>
<CodePage>0</CodePage>
<ZeroTerminate>1</ZeroTerminate>
<Address>m_MainCharacter</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
<CheatEntry>
<ID>104304</ID>
<Description>"Select Companion [Slot 2]"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = GetHostCharacter()
writeString("m_Party_2", tostring(variable))
[DISABLE]
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>104310</ID>
<Description>"Variable Saved"</Description>
<LastState RealAddress="1F3663F0512"/>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>String</VariableType>
<Length>36</Length>
<Unicode>0</Unicode>
<CodePage>0</CodePage>
<ZeroTerminate>1</ZeroTerminate>
<Address>m_Party_2</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
<CheatEntry>
<ID>104306</ID>
<Description>"Select Companion [Slot 3]"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = GetHostCharacter()
writeString("m_Party_3", tostring(variable))
[DISABLE]
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>104309</ID>
<Description>"Variable Saved"</Description>
<LastState RealAddress="1F3663F0A24"/>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>String</VariableType>
<Length>36</Length>
<Unicode>0</Unicode>
<CodePage>0</CodePage>
<ZeroTerminate>1</ZeroTerminate>
<Address>m_Party_3</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
<CheatEntry>
<ID>104305</ID>
<Description>"Select Companion [Slot 4]"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = GetHostCharacter()
writeString("m_Party_4", tostring(variable))
[DISABLE]
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>104308</ID>
<Description>"Variable Saved"</Description>
<LastState RealAddress="1F3663F0F36"/>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>String</VariableType>
<Length>36</Length>
<Unicode>0</Unicode>
<CodePage>0</CodePage>
<ZeroTerminate>1</ZeroTerminate>
<Address>m_Party_4</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatEntry>
<CheatEntry>
<ID>104312</ID>
<Description>"2. Add"</Description>
<Options moHideChildren="1" moManualExpandCollapse="1"/>
<LastState Value="" Activated="1" RealAddress="00000000"/>
<GroupHeader>1</GroupHeader>
<CheatEntries>
<CheatEntry>
<ID>104313</ID>
<Description>"Companion [Slot 2]"</Description>
<LastState Value="" RealAddress="00000000"/>
<GroupHeader>1</GroupHeader>
<CheatEntries>
<CheatEntry>
<ID>104316</ID>
<Description>"+10 Attitude"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = readString("m_Party_2")
SetArgToString(0, variable)
local mc = readString("m_MainCharacter")
SetArgToString(1, mc)
SetArgToLong(2, 10)
ExecuteCall("AddAttitudeTowardsPlayer")
[DISABLE]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>104317</ID>
<Description>"+10 Approval"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = readString("m_Party_2")
SetArgToString(0, variable)
local mc = readString("m_MainCharacter")
SetArgToString(1, mc)
SetArgToLong(2, 0)
SetArgToLong(3, 10)
ClearArg(4)
ExecuteCall("ChangeApprovalRating")
[DISABLE]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>104318</ID>
<Description>"+100 Attitude"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = readString("m_Party_2")
SetArgToString(0, variable)
local mc = readString("m_MainCharacter")
SetArgToString(1, mc)
SetArgToLong(2, 100)
ExecuteCall("AddAttitudeTowardsPlayer")
[DISABLE]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>104319</ID>
<Description>"+100 Approval"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = readString("m_Party_2")
SetArgToString(0, variable)
local mc = readString("m_MainCharacter")
SetArgToString(1, mc)
SetArgToLong(2, 0)
SetArgToLong(3, 100)
ClearArg(4)
ExecuteCall("ChangeApprovalRating")
[DISABLE]
</AssemblerScript>
</CheatEntry>
</CheatEntries>
</CheatEntry>
<CheatEntry>
<ID>104315</ID>
<Description>"Companion [Slot 3]"</Description>
<LastState Value="" RealAddress="00000000"/>
<GroupHeader>1</GroupHeader>
<CheatEntries>
<CheatEntry>
<ID>104320</ID>
<Description>"+10 Attitude"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = readString("m_Party_3")
SetArgToString(0, variable)
local mc = readString("m_MainCharacter")
SetArgToString(1, mc)
SetArgToLong(2, 10)
ExecuteCall("AddAttitudeTowardsPlayer")
[DISABLE]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>104321</ID>
<Description>"+10 Approval"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = readString("m_Party_3")
SetArgToString(0, variable)
local mc = readString("m_MainCharacter")
SetArgToString(1, mc)
SetArgToLong(2, 0)
SetArgToLong(3, 10)
ClearArg(4)
ExecuteCall("ChangeApprovalRating")
[DISABLE]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>104322</ID>
<Description>"+100 Attitude"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = readString("m_Party_3")
SetArgToString(0, variable)
local mc = readString("m_MainCharacter")
SetArgToString(1, mc)
SetArgToLong(2, 100)
ExecuteCall("AddAttitudeTowardsPlayer")
[DISABLE]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>104323</ID>
<Description>"+100 Approval"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = readString("m_Party_3")
SetArgToString(0, variable)
local mc = readString("m_MainCharacter")
SetArgToString(1, mc)
SetArgToLong(2, 0)
SetArgToLong(3, 100)
ClearArg(4)
ExecuteCall("ChangeApprovalRating")
[DISABLE]
</AssemblerScript>
</CheatEntry>
</CheatEntries>
</CheatEntry>
<CheatEntry>
<ID>104314</ID>
<Description>"Companion [Slot 4]"</Description>
<LastState Value="" RealAddress="00000000"/>
<GroupHeader>1</GroupHeader>
<CheatEntries>
<CheatEntry>
<ID>104324</ID>
<Description>"+10 Attitude"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = readString("m_Party_4")
SetArgToString(0, variable)
local mc = readString("m_MainCharacter")
SetArgToString(1, mc)
SetArgToLong(2, 10)
ExecuteCall("AddAttitudeTowardsPlayer")
[DISABLE]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>104325</ID>
<Description>"+10 Approval"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = readString("m_Party_4")
SetArgToString(0, variable)
local mc = readString("m_MainCharacter")
SetArgToString(1, mc)
SetArgToLong(2, 0)
SetArgToLong(3, 10)
ClearArg(4)
ExecuteCall("ChangeApprovalRating")
[DISABLE]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>104326</ID>
<Description>"+100 Attitude"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = readString("m_Party_4")
SetArgToString(0, variable)
local mc = readString("m_MainCharacter")
SetArgToString(1, mc)
SetArgToLong(2, 100)
ExecuteCall("AddAttitudeTowardsPlayer")
[DISABLE]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>104327</ID>
<Description>"+100 Approval"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
if syntaxcheck then return end
[ENABLE]
local variable = readString("m_Party_4")
SetArgToString(0, variable)
local mc = readString("m_MainCharacter")
SetArgToString(1, mc)
SetArgToLong(2, 0)
SetArgToLong(3, 100)
ClearArg(4)
ExecuteCall("ChangeApprovalRating")
[DISABLE]
</AssemblerScript>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatTable>