106
Bully 1 Discussion / Re: Bully's Ingame Story
« on: March 08, 2016, 03:25:17 PM »
Bully's story was OK. It did have a lot of loopholes and a rushed ending, but still, i like it
News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..
Messages |
Topics |
Attachments
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
ImportScript("\\Library\\LibTable.lua") -- imports the LibTable library
ImportScript("\\Library\\LibPed.lua") -- imports the LibPed library
local l_0_0 = false
MissionSetup = function() -- basic mission setup function which is used in almost all bully scripts
local l_1_0 = 270 -- X coords
local l_1_1 = -110 -- Y coords
local l_1_2 = 6.4000000953674 -- Z coords
local Algernon = Nil -- Initialize bullied char
local Damon = Nil -- Initialize bully
DisablePunishmentSystem(true) -- Necessary to keep the prefects from interfering
PlayerSetHealth(200) -- gives the player 200 health
AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2) -- Moves player to outside boys' dorm
TextPrintString("Algernon is one of the geeks at school. He needs protection from Damon, the jock who has been bullying him.", 4, 1) -- Posts red text on screen
Algernon = PedCreateXYZ(4,265,-110,6.4000000953674) -- Spawn bully target
Damon = PedCreateXYZ(12,262,-110,6.4000000953674) -- Spawn bully
PedRecruitAlly(Algernon,gplayer) -- Second character assigned to bodyguard first
PedAttack(Damon, Algernon, 1) -- Bully attacks target
PedShowHealthBar(Algernon, true, "N_Algernon", true) -- Display Algernon's health bar
end
MissionCleanup = function()
end -- end statement
F_MissionCheck = function()
if PedIsDead(Damon) then
TextPrintString("Congratulations! Algernon is safe for now thanks to your intervention.", 4, 1)
Wait(5000)
end
end
main = function() -- Main mission function
repeat
F_MissionCheck()
Wait(2000)
until not Alive
end