Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: Shrimp on June 27, 2015, 01:55:21 PM
-
Hey.
How do you change the Attitude, for cliques?
E;G Bullies & Jocks are Friendly, not Hostile and have 100% Respect or something.
I found this...
"Adore, Dig, Dispassionate, Averse, Abhor"
I don't understand any single one of those. Any help on two of these questions?
-
As far as I know you can only change it in lua with the code PedSetTypeToTypeAttitude(0, 0, 0)
change first 2 zeros to factions you want to hate so PedSetTypeToTypeAttitude(2, 4, 0) now the jocks hate greasers they would attack on sight if you want Relationship IDs and Faction IDs and lua coding go to http://www.bully-board.com/index.php?topic=18725.0 (http://www.bully-board.com/index.php?topic=18725.0)
-
If you want to do that in a script, you can do so with the following information:
Attitudes
0 Hate
1 Dislike
2 Ignore
3 Like
4 Love
Factions
0 Prefects
1 Nerd
2 Jock
3 Drop Out
4 Greaser
5 Prep
6 Student
7 Police
8 Teacher
9 Adult Civilian
10 Shop Keeper
11 Bully
12 PunchBag
13 Player
14 Player2
PedSetTypeToTypeAttitude(Faction, Faction, Attitude) | Set the 1st faction's attitude towards the 2nd faction
Here's some definitions of the words you don't get:
Adore - To really like, to respect fully
Dig - To like
Dispassionate - Neutral, don't really care
Averse - To dislike
Abhor - To hate, will attack on sight
-
How do I execute this in Free-Roam so it will work while it has the ArcRace1.lur file of Machinima Maker? Or how to use it via Attitude.dat?
-
If you beat the game ignore the Attitude.dat file because there is a script that overrides your respect so everyone likes you.
If you want it on freeroam create a custom STimeCycle script with the attitudes you desire.
Add your custom code inside the main function only!
main = function()
repeat
Wait(1000)
until not Alive
end
F_AttendedClass = function()
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
return
end
SetSkippedClass(false)
PlayerSetPunishmentPoints(0)
end
F_MissedClass = function()
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
return
end
SetSkippedClass(true)
StatAddToInt(166)
end
F_AttendedCurfew = function()
if not PedInConversation(gPlayer) and not MissionActive() then
TextPrintString("You got home in time for curfew", 4)
end
end
F_MissedCurfew = function()
if not PedInConversation(gPlayer) and not MissionActive() then
TextPrint("TM_TIRED5", 4, 2)
end
end
F_StartClass = function()
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
return
end
F_RingSchoolBell()
local l_6_0 = PlayerGetPunishmentPoints() + GetSkippingPunishment()
end
F_EndClass = function()
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
return
end
F_RingSchoolBell()
end
F_StartMorning = function()
F_UpdateTimeCycle()
end
F_EndMorning = function()
F_UpdateTimeCycle()
end
F_StartLunch = function()
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
F_UpdateTimeCycle()
return
end
F_UpdateTimeCycle()
end
F_EndLunch = function()
F_UpdateTimeCycle()
end
F_StartAfternoon = function()
F_UpdateTimeCycle()
end
F_EndAfternoon = function()
F_UpdateTimeCycle()
end
F_StartEvening = function()
F_UpdateTimeCycle()
end
F_EndEvening = function()
F_UpdateTimeCycle()
end
F_StartCurfew_SlightlyTired = function()
F_UpdateTimeCycle()
end
F_StartCurfew_Tired = function()
F_UpdateTimeCycle()
end
F_StartCurfew_MoreTired = function()
F_UpdateTimeCycle()
end
F_StartCurfew_TooTired = function()
F_UpdateTimeCycle()
end
F_EndCurfew_TooTired = function()
F_UpdateTimeCycle()
end
F_EndTired = function()
F_UpdateTimeCycle()
end
F_Nothing = function()
end
F_ClassWarning = function()
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
return
end
local l_23_0 = math.random(1, 2)
end
F_UpdateTimeCycle = function()
if not IsMissionCompleated("1_B") then
local l_24_0 = GetCurrentDay(false)
if l_24_0 < 0 or l_24_0 > 2 then
SetCurrentDay(0)
end
end
F_UpdateCurfew()
end
F_UpdateCurfew = function()
local l_25_0 = shared.gCurfewRules
if not l_25_0 then
l_25_0 = F_CurfewDefaultRules
end
l_25_0()
end
F_CurfewDefaultRules = function()
local l_26_0 = ClockGet()
if l_26_0 >= 23 or l_26_0 < 7 then
shared.gCurfew = true
else
shared.gCurfew = false
end
end
Compile it as STimeCycle.lur instead of ArcRace1.lur and then replace it in scripts.img
-
I found my answer, thank's though. I only require it for a series and for cliques to like eachother, not the player.
-
there is an outdated way too without lua. BULLYROOT\Config\dat\Attitude.dat. you can change things, according with the notes it has in it. C00ld0c's tutorial(http://www.bully-board.com/index.php?topic=18725.0 (http://www.bully-board.com/index.php?topic=18725.0)) has a detailed explanation on how to edit attitude in Lua.