Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: FearlessBloodseeker on June 16, 2012, 03:37:02 AM
-
Hi guys, how do I make rumbles around the school like the "Complete Mayhem" rumble?
-
The only possible way is via editing the lua source code of bully. Once I finish rewriting every script I will release all of them including the final rumble script.
I can easily code up a rumble script from scratch but that will have to wait a while until I finish with several smaller scripts which will be released complete with sourcecode and a tutorial on how to edit bully lua.
This will be sometime in the coming week.
-
I see. Alright man :D
-
Actually, there is a file in config/dat called attitude.dat which handles the relationships between each clique, so you could change 'Adore', 'Dig', 'Dispassionate' and 'Averse' to 'Abhor' meaning they will attack on sight, you can even make a clique fight memebers of the same clique, I do hope i expalined this sufficiently.
However, as MadMan said, the lua version may be more accurate to the Rumble.
-
Actually changing the attitudes that way only works in hte start of the game.
as you progress that file gets bypassed and anything its set to will cease to work since 90% of this is in lua.
-
Yeah, I wondered why it didn't work when I first changed the Attitude. I guess I know now.
Cool Madman!
-
np.
In lua attitudes work like this:
For Faction respects towards the player:
SetFactionRespect(11, 25)
SetFactionRespect(1, 50)
SetFactionRespect(5, 50)
SetFactionRespect(4, 50)
SetFactionRespect(2, 50)
SetFactionRespect(3, 0)
in that example above the first number value is the faction....which would be the nerds...bullies...preps...etc..and the second number is the amount of respect. 0 means no respect and 100 means fully respected.
for attitudes of peds both towards the player as well as one another....this is the lua code used:
PedSetPedToTypeAttitude(Mascot, 13, 0)
PedSetPedToTypeAttitude(gHobo, 13, 3)
PedSetPedToTypeAttitude(gHobo, 3, 0)
PedSetPedToTypeAttitude(gEdna, 13, 0)
PedSetPedToTypeAttitude(gEdna, gPlayer, 4)
PedSetPedToTypeAttitude(idDarby, 13, 4)
I have not figured out yet how the above code works quite yet but that controls the attitudes directly.