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


Author Topic: LUA Respect?  (Read 3917 times)

0 Members and 2 Guests are viewing this topic.

Offline DreamEvo

  • Paragon
  • Full Member
  • ***
  • Posts: 247
  • Gender: Male
    • View Profile
LUA Respect?
« on: April 29, 2013, 09:08:34 PM »
I cant figure out how to make the code where everyone hates me but a certain clique. Can someone help?

Offline Walter20210

  • Hero Member
  • ****
  • Posts: 1,102
  • Gender: Male
  • I keep loving the old things :P
    • View Profile
    • YouTube Account
Re: LUA Respect?
« Reply #1 on: April 29, 2013, 09:45:38 PM »
All the factions :D

Code: [Select]
Prefect = 0
Nerd = 1
Jock = 2
Dropout =3
Greaser =4
Preppy = 5
Student = 6
Cop = 7
Teacher = 8
Townsperson = 9
ShopKeep = 10
Bully = 11
Player2 = 12
Player1 = 13

they are in the attitude.dat file
And the code to make a faction hate another faction is this :

PedSetTypeToTypeAttitude(2, 13, 11)

The first number is the faction who will change is attitude at the other faction
The second is the faction who the first faction will hate,ignore etc..
And the third one is the Respect they have for example if you put 1 will hate you
Here is all the numbers :

Code: [Select]
0 = Abhor
1 = Averse
2 = Dispassionate
3 = Dig
4 = Adore

Offline DreamEvo

  • Paragon
  • Full Member
  • ***
  • Posts: 247
  • Gender: Male
    • View Profile
Re: LUA Respect?
« Reply #2 on: April 29, 2013, 11:36:20 PM »
Can you make the numbers (2, 13, 11) and highlight which one does what im still confused on the order. XD

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: LUA Respect?
« Reply #3 on: April 29, 2013, 11:42:16 PM »
All the factions :D

Code: [Select]
Prefect = 0
Nerd = 1
Jock = 2
Dropout =3
Greaser =4
Preppy = 5
Student = 6
Cop = 7
Teacher = 8
Townsperson = 9
ShopKeep = 10
Bully = 11
Player2 = 12
Player1 = 13

they are in the attitude.dat file
And the code to make a faction hate another faction is this :


Code: [Select]
0 = Abhor
1 = Averse
2 = Dispassionate
3 = Dig
4 = Adore

Can you make the numbers (2, 13, 11) and highlight which one does what im still confused on the order. XD

No no dude xD walter mean't to put (2, 13 ,1) not 11 lol the codes from 0-4 are the respect levels which 4 being the highest and 0 means they attack on sight.
(2 <-- Faction, 13 <-- Player Faction, 1 <-- Respect)

Offline DreamEvo

  • Paragon
  • Full Member
  • ***
  • Posts: 247
  • Gender: Male
    • View Profile
Re: LUA Respect?
« Reply #4 on: April 29, 2013, 11:51:51 PM »
my bad i forgot the other 1 lol. So if i wanted to make greasers adore me, would i put (4, 13, 4) ?

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: LUA Respect?
« Reply #5 on: April 29, 2013, 11:53:57 PM »
You got it ^_^ and it works for peds too like if you want the nerds to attack students it would be (2, 6, 0)

Offline DreamEvo

  • Paragon
  • Full Member
  • ***
  • Posts: 247
  • Gender: Male
    • View Profile
Re: LUA Respect?
« Reply #6 on: April 30, 2013, 12:15:27 AM »
Thanks alot! So if i wanted to put my line with the respect towards me, does that mean i have to do every single faction factions settings towards others?

Offline DreamEvo

  • Paragon
  • Full Member
  • ***
  • Posts: 247
  • Gender: Male
    • View Profile
Re: LUA Respect?
« Reply #7 on: April 30, 2013, 07:51:15 PM »
i put the code in but everyone seems to like me anyways. Can someone post a pic on where to post the code?
Everything else works fine except for the respect. I made a new line and posted
nvm i got it!!!!
« Last Edit: April 30, 2013, 08:13:51 PM by DreamEvo »

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: LUA Respect?
« Reply #8 on: May 01, 2013, 05:29:42 PM »
The faction numbers in lua aren't the same as the one in Attitude/PedPop.

Offline Walter20210

  • Hero Member
  • ****
  • Posts: 1,102
  • Gender: Male
  • I keep loving the old things :P
    • View Profile
    • YouTube Account
Re: LUA Respect?
« Reply #9 on: May 01, 2013, 06:27:22 PM »
Already yes

But not in pedpop

Offline DreamEvo

  • Paragon
  • Full Member
  • ***
  • Posts: 247
  • Gender: Male
    • View Profile
Re: LUA Respect?
« Reply #10 on: May 01, 2013, 06:33:48 PM »
The faction numbers in lua aren't the same as the one in Attitude/PedPop.
I ment where to post the line. Do i just post another code on the bottom of my code?

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: LUA Respect?
« Reply #11 on: May 01, 2013, 07:14:54 PM »
You can also make members of the same faction attack one another on sight....and when set that way their attacks actually do damage....when normally members of the same faction cannot do damage to one another.

Offline DreamEvo

  • Paragon
  • Full Member
  • ***
  • Posts: 247
  • Gender: Male
    • View Profile
Re: LUA Respect?
« Reply #12 on: May 01, 2013, 07:35:19 PM »
Could you make a tutorial about more of your suits?