News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Ped Attitude.  (Read 4185 times)

0 Members and 1 Guest are viewing this topic.

Offline Shrimp

  • Sr. Member
  • ***
  • Posts: 514
  • Gender: Male
  • your official b-b's chav. wag wan.
    • View Profile
Ped Attitude.
« 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?

Offline Masterreys100

  • Youtube.com/Masterreys100
  • Full Member
  • ***
  • Posts: 103
  • Gender: Male
    • View Profile
Re: Ped Attitude.
« Reply #1 on: June 27, 2015, 04:56:35 PM »
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

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Ped Attitude.
« Reply #2 on: June 27, 2015, 04:57:40 PM »
If you want to do that in a script, you can do so with the following information:

Code: [Select]
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

Offline Shrimp

  • Sr. Member
  • ***
  • Posts: 514
  • Gender: Male
  • your official b-b's chav. wag wan.
    • View Profile
Re: Ped Attitude.
« Reply #3 on: June 27, 2015, 05:11:05 PM »
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?

deadpoolXYZ

  • Guest
Re: Ped Attitude.
« Reply #4 on: June 27, 2015, 05:23:10 PM »
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!

Code: [Select]
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
« Last Edit: June 27, 2015, 05:25:58 PM by The Dream Is Dead »

Offline Shrimp

  • Sr. Member
  • ***
  • Posts: 514
  • Gender: Male
  • your official b-b's chav. wag wan.
    • View Profile
Re: Ped Attitude.
« Reply #5 on: June 27, 2015, 07:03:02 PM »
I found my answer, thank's though. I only require it for a series and for cliques to like eachother, not the player.

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Ped Attitude.
« Reply #6 on: June 27, 2015, 09:51:12 PM »
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) has a detailed explanation on how to edit attitude in Lua.