Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: DreamEvo 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?
-
All the factions :D
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 :
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
-
All the factions :D
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 :
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)
-
my bad i forgot the other 1 lol. So if i wanted to make greasers adore me, would i put (4, 13, 4) ?
-
You got it ^_^ and it works for peds too like if you want the nerds to attack students it would be (2, 6, 0)
-
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?
-
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!!!!
-
The faction numbers in lua aren't the same as the one in Attitude/PedPop.
-
Already yes
But not in pedpop
-
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?
-
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.
-
Could you make a tutorial about more of your suits?