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


Author Topic: How can I change the respect of other factions with Jimmy using LUA?  (Read 2648 times)

0 Members and 2 Guests are viewing this topic.

Offline 2326_Bully

  • Newbie
  • *
  • Posts: 0
    • View Profile
Please help me, I can not use the LUA very well and also do not know if I should do this in Pedpop.dat or Attitude.dat
:/
OBS: Sorry for my english, I'm not American

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: How can I change the respect of other factions with Jimmy using LUA?
« Reply #1 on: August 03, 2014, 08:35:37 PM »
The actual respect can be changed using FactionSetRespect(f,r)
EX: FactionSetRespect(1,100) will set faction #1's respect for Jimmy to 100.

Here is a list of factions that i gathered the other day. someone else may have a more complete one but this one gets most of the important ones.

0 - Prefect/Orderly
1 - Nerds
2 - Jocks
3 - Dropouts
4 - Greasers
5 - Preps
6 - Generic
7 - Police
9 - Adult
10 - Shop Owner
11 - Bullies

and I think Jimmy is 13 but not 100% sure.


However when I used that function it didn't actually make their attitude different towards me. im pretty sure there is another function about attitudes but i have not used it before. i will experiment with it soon and come back here if someone else dosen't answer it before me.

Offline 2326_Bully

  • Newbie
  • *
  • Posts: 0
    • View Profile
Re: How can I change the respect of other factions with Jimmy using LUA?
« Reply #2 on: August 03, 2014, 09:00:22 PM »
The actual respect can be changed using FactionSetRespect(f,r)
EX: FactionSetRespect(1,100) will set faction #1's respect for Jimmy to 100.

Here is a list of factions that i gathered the other day. someone else may have a more complete one but this one gets most of the important ones.

0 - Prefect/Orderly
1 - Nerds
2 - Jocks
3 - Dropouts
4 - Greasers
5 - Preps
6 - Generic
7 - Police
9 - Adult
10 - Shop Owner
11 - Bullies

and I think Jimmy is 13 but not 100% sure.


However when I used that function it didn't actually make their attitude different towards me. im pretty sure there is another function about attitudes but i have not used it before. i will experiment with it soon and come back here if someone else dosen't answer it before me.

Dude, thanks Veii, thanks even got!
:)

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: How can I change the respect of other factions with Jimmy using LUA?
« Reply #3 on: August 03, 2014, 09:18:46 PM »
What is it for? Are you going to be releasing a mod? :D

Offline 2326_Bully

  • Newbie
  • *
  • Posts: 0
    • View Profile
Re: How can I change the respect of other factions with Jimmy using LUA?
« Reply #4 on: August 04, 2014, 02:57:53 PM »
Shit, I realized that this only works with the jocks, greasers and regular students

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: How can I change the respect of other factions with Jimmy using LUA?
« Reply #5 on: August 06, 2014, 10:05:20 AM »
It will change the respect stat and when you press the select button (Same as map button) and go over to respect it will change there. However I did notice that it dosen't always effect how they behave towards you for some reason... there is some function about attitude for that but as I said I haven't used it yet.