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


Author Topic: Some simple questions.  (Read 4003 times)

0 Members and 1 Guest are viewing this topic.

Offline 1stGarySmithFan

  • Full Member
  • ***
  • Posts: 378
  • Gender: Male
  • I like bow ties. Bow ties are cool.
    • View Profile
Some simple questions.
« on: February 17, 2013, 02:02:20 PM »
Okay first question.

How can I make a simple pedestrian like Gary hang out with me?

Second one.

How can I hang out with more than 1 person ?

The third.

How can I make a non-clique ped join a clique ? For example... Bullies ?

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Some simple questions.
« Reply #1 on: February 17, 2013, 02:51:45 PM »
The first and second question can be done in LUA
For changing factions change it in the IDE from STUDENT to NERD,PREPPY,GREASER etc..

Offline 1stGarySmithFan

  • Full Member
  • ***
  • Posts: 378
  • Gender: Male
  • I like bow ties. Bow ties are cool.
    • View Profile
Re: Some simple questions.
« Reply #2 on: February 17, 2013, 04:07:29 PM »
Thank you. :) Can you explain me more about first two ? Or redirect me to a tutorial?

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Some simple questions.
« Reply #3 on: February 17, 2013, 05:40:14 PM »
I would love to when I get back home lol im on my phone right now... but I can tell you to go to the script section of modding and use MadmaN's Test ally script and add on more body guards from there.. if you need help on how its done you can use the multi bodyguard script as an example.

Offline 1stGarySmithFan

  • Full Member
  • ***
  • Posts: 378
  • Gender: Male
  • I like bow ties. Bow ties are cool.
    • View Profile
Re: Some simple questions.
« Reply #4 on: February 18, 2013, 09:48:23 AM »
Thanks I'll take a look at it :)

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Some simple questions.
« Reply #5 on: February 18, 2013, 11:51:53 AM »
This is a bodyguard code that spawns Two Peds... Gary and Johnny I mixed a couple of commands from different scripts. Test it and tell me how it goes.

Code: [Select]
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 = 274 -- X coords
  local l_1_1 = -111 -- Y coords
  local l_1_2 = 6.40000094275 -- Z coords
  PlayerSetHealth(300) -- gives the player 300 health
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2) -- teleports the player to the sidewalk outside the boys dorm
  WeatherSet(5)
  AreaSetDoorPathableToPeds(TRIGGER._BUSDOORS, true)
 
   
--BodyGuard Code--                           
 
  l_0_3 = PedCreatePoint(130, POINTLIST._BEGGINING, 1) -- Gary
    l_0_4 = PedCreatePoint(217, POINTLIST._BEGGINING, 1) -- Johnny(BOSS)


    PedSetActionTree(l_0_3, "/Global/Nemesis", "Act/Anim/Nemesis.act") -- Gary
    PedSetActionTree(l_0_4, "/Global/G_Johnny", "Act/Anim/G_Johnny.act") -- Johnny(BOSS)


-- PedSetTaskNode(l_0_3, "/Global/AI", "Act/AI/AI.act")
--    PedSetTaskNode(gPlayer, "/Global/Player", "Act/Player.act")
ClothingGivePlayerOutfit("Panda") -- Gives Player Panda Outfit "Check in your room!"

-- Test Code Start

-- PedSetAITree(l_0_3, "/Global/AI", "Act/AI/AI.act")
    --PedSetMaxHealth(idDarby, 500)
    --PedSetHealth(idDarby, 500)
-- PedSetActionTree ("/Global/WrestlingACT......Act", "/Anim/WrestlingACT.act")
    PedSetInfiniteSprint(gPlayer, true)
SoundEnableInteractiveMusic(true)
DisablePunishmentSystem(true)
AreaSetDoorOpen(TRIGGER._TSCHOOL_FRONTGATE, true)
AreaSetPopulationSexGeneration(true, true)
PedSetAlwaysStrafe(gPlayer, "Act/Default.act", true)

-- ButtonHistoryEnableActionTreeInput

-- test code end

-- Ally Blip Code Start

   l_2_7 = AddBlipForChar(l_0_3, 6, 2, 2)
   l_2_8 = AddBlipForChar(l_0_4, 6, 2, 2)

   
PedSetInfiniteSprint(l_0_3, true)
PedSetInfiniteSprint(l_0_4, true)

   PedRecruitAlly(gPlayer, l_0_3)
   PedRecruitAlly(l_0_3, l_0_4)
 


--Code End

 
end
 
 

MissionCleanup = function() -- mission cleanup function
ClearTextQueue() -- Clears all queued text in active memory
  EnablePOI() -- Enables the POI Interface
  gMissionRunning = false -- Terminates Mission Script
  shared.gMissionEventFunction = nil -- This is for shared events
  WeatherRelease() -- Releases the Weather Settings
  PlayerSetControl(1) -- Sets Controller to be used for player
  PlayerSetPunishmentPoints(-1) -- Sets Punishment Points.   
  CollectGarbage()
end

 

main = function() -- Function Call
  F_MissionSetup() -- Mission Setup Function
  F_UpdateGlobalHatred() -- Sets everyone to hate eachother and fight.
  gMissionRunning = true -- This tells the game that this mission is running.
  while gMissionRunning do -- This instructs bully to execute further tasks while the mission is running.
    UpdateTextQueue() -- Updates the state of text stored in active memory
    Wait(0) --Waits
   end -- End Statement
   
end

Offline 1stGarySmithFan

  • Full Member
  • ***
  • Posts: 378
  • Gender: Male
  • I like bow ties. Bow ties are cool.
    • View Profile
Re: Some simple questions.
« Reply #6 on: February 18, 2013, 02:21:09 PM »
Where to put it ?

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Some simple questions.
« Reply #7 on: February 18, 2013, 02:26:51 PM »
You can open it in NotePad++ and save it as a LUA source file.. then compress it using the luac -o command... if you dont know how to use lua you can check out SWEGTA's tut.

Offline 1stGarySmithFan

  • Full Member
  • ***
  • Posts: 378
  • Gender: Male
  • I like bow ties. Bow ties are cool.
    • View Profile
Re: Some simple questions.
« Reply #8 on: February 18, 2013, 02:29:16 PM »
I know how to use it, but I am not expert. :)Honestly I don't know how to compress, maybe thats because I don't know what is a compress :D

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Some simple questions.
« Reply #9 on: February 18, 2013, 02:34:16 PM »
you can take that code and save it (as an example) BodyGuard.lua.. then use lua (luac -o ArcRace1.lur Bodyguard.lua)

Offline 1stGarySmithFan

  • Full Member
  • ***
  • Posts: 378
  • Gender: Male
  • I like bow ties. Bow ties are cool.
    • View Profile
Re: Some simple questions.
« Reply #10 on: February 18, 2013, 02:37:39 PM »
Oh so i will save it as -o thing with lua ?

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Some simple questions.
« Reply #11 on: February 18, 2013, 02:59:28 PM »
Here download the ArcRace1.lur and replace it with the imgtool http://www.bully-board.com/index.php?action=downloads;sa=view;down=64

deadpoolXYZ

  • Guest
Re: Some simple questions.
« Reply #12 on: February 18, 2013, 06:20:28 PM »
This is a bodyguard code that spawns Two Peds... Gary and Johnny I mixed a couple of commands from different scripts. Test it and tell me how it goes.

Code: [Select]
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 = 274 -- X coords
  local l_1_1 = -111 -- Y coords
  local l_1_2 = 6.40000094275 -- Z coords
  PlayerSetHealth(300) -- gives the player 300 health
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2) -- teleports the player to the sidewalk outside the boys dorm
  WeatherSet(5)
  AreaSetDoorPathableToPeds(TRIGGER._BUSDOORS, true)
 
   
--BodyGuard Code--                           
 
  l_0_3 = PedCreatePoint(130, POINTLIST._BEGGINING, 1) -- Gary
    l_0_4 = PedCreatePoint(217, POINTLIST._BEGGINING, 1) -- Johnny(BOSS)


    PedSetActionTree(l_0_3, "/Global/Nemesis", "Act/Anim/Nemesis.act") -- Gary
    PedSetActionTree(l_0_4, "/Global/G_Johnny", "Act/Anim/G_Johnny.act") -- Johnny(BOSS)


-- PedSetTaskNode(l_0_3, "/Global/AI", "Act/AI/AI.act")
--    PedSetTaskNode(gPlayer, "/Global/Player", "Act/Player.act")
ClothingGivePlayerOutfit("Panda") -- Gives Player Panda Outfit "Check in your room!"

-- Test Code Start

-- PedSetAITree(l_0_3, "/Global/AI", "Act/AI/AI.act")
    --PedSetMaxHealth(idDarby, 500)
    --PedSetHealth(idDarby, 500)
-- PedSetActionTree ("/Global/WrestlingACT......Act", "/Anim/WrestlingACT.act")
    PedSetInfiniteSprint(gPlayer, true)
SoundEnableInteractiveMusic(true)
DisablePunishmentSystem(true)
AreaSetDoorOpen(TRIGGER._TSCHOOL_FRONTGATE, true)
AreaSetPopulationSexGeneration(true, true)
PedSetAlwaysStrafe(gPlayer, "Act/Default.act", true)

-- ButtonHistoryEnableActionTreeInput

-- test code end

-- Ally Blip Code Start

   l_2_7 = AddBlipForChar(l_0_3, 6, 2, 2)
   l_2_8 = AddBlipForChar(l_0_4, 6, 2, 2)

   
PedSetInfiniteSprint(l_0_3, true)
PedSetInfiniteSprint(l_0_4, true)

   PedRecruitAlly(gPlayer, l_0_3)
   PedRecruitAlly(l_0_3, l_0_4)
 


--Code End

 
end
 
 

MissionCleanup = function() -- mission cleanup function
ClearTextQueue() -- Clears all queued text in active memory
  EnablePOI() -- Enables the POI Interface
  gMissionRunning = false -- Terminates Mission Script
  shared.gMissionEventFunction = nil -- This is for shared events
  WeatherRelease() -- Releases the Weather Settings
  PlayerSetControl(1) -- Sets Controller to be used for player
  PlayerSetPunishmentPoints(-1) -- Sets Punishment Points.   
  CollectGarbage()
end

 

main = function() -- Function Call
  F_MissionSetup() -- Mission Setup Function
  F_UpdateGlobalHatred() -- Sets everyone to hate eachother and fight.
  gMissionRunning = true -- This tells the game that this mission is running.
  while gMissionRunning do -- This instructs bully to execute further tasks while the mission is running.
    UpdateTextQueue() -- Updates the state of text stored in active memory
    Wait(0) --Waits
   end -- End Statement
   
end

Did you get the script from someone or you made it? It has a lot of things that I didn't know.

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Some simple questions.
« Reply #13 on: February 18, 2013, 09:57:13 PM »
Nah some of those codes are from the multi bodyguard script mixed with weather changes and some stuff I found when I was looking through some scripts... some of them dont have the right codes like PedSetAlwaysStrafe and ButtonHistoryEnableActionTree... there real codes but idk how to get them working lol when I do then we can all stop blocking....and start fighting