Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: bullymodder74 on January 20, 2016, 05:35:57 PM

Title: Bully Strafe and Speech Fighting Style error?
Post by: bullymodder74 on January 20, 2016, 05:35:57 PM
huh been testing these codes but do not work 3 I have to do?





Code: [Select]
PlayerSetHealth(5000) 
  function MissionSetup()
 AreaTransitionXYZ(0, 270, -110, 6)
 
 SoundPlayStream("MS_FightMid02.rsm", 0.6)
 
 PlayerSwapModel("JK_LuisWrestle")
 
 PedSetAITree(gPlayer, "/Global/PlayerAI","Act/PlayerAI.act")
 
 TextPrintString("Luis Wrestling Mod", 4, 1)
 
 WaitSkippable(4000)
 TextPrintString("When mod is at 75% Progress, I will certainly release a J_Striker_A", 4, 1)
 WaitSkippable(4000)
 TextPrintString("When this mod is 100% complete, I'll upload it to Bully Board :D", 3, 1)
 WaitSkippable(3000)
 TextPrintString("Fin This Mod Bully Modder done for me 74 Enjoy!", 3, 1) -- wtf
end

function MissionCleanup()
 collectgarbage()
end

function main()
 while true do
  if IsButtonPressed(8,0) then
   SoundPlayScriptedSpeechEvent(gPlayer, "FIGHT")
  end
  f_strafe()
  F_FightingStyle()
  F_Model()
  F_Moves()
  Wait(0)
 end
end

function f_strafe()
 if IsButtonPressed(10,0) and IsMoving() and not isStrafing and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  PedSetActionNode(gPlayer,"/Global/J_Grappler_A/Default_KEY/ExecuteNodes/LocomotionOverride/Combat/CombatBasic","Act/Anim/J_Grappler_A.act")
  isStrafing = true
 elseif (not IsButtonPressed(10,0) or not IsMoving()) and isStrafing and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  PedSetActionTree(gPlayer,"/Global/J_Grappler_A", "Act/Anim/J_Grappler_A.act")
  isStrafing = false
 elseif isStrafing then
  local x,y,z = PedGetPosXYZ(PedGetTargetPed())
  PedFaceXYZ(gPlayer,x,y,z)
 end
end

IsMoving = function()
 local s = 0.08
 return GetStickValue(16,0) > s or GetStickValue(16,0) < -s or GetStickValue(17,0) > s or GetStickValue(17,0) < -s
end

function MissionCleanup()
 collectgarbage()
end

function main()
 while true do
  if IsButtonPressed(8,0) then
   SoundPlayScriptedSpeechEvent(gPlayer, "FIGHT")
  end
  f_strafe()
  F_FightingStyle()
  F_Model()
  F_Moves()
  Wait(0)
 end



  F_MissionSetup()
  gMissionRunning = true
  while gMissionRunning do
  if IsButtonPressed(0,0) then
  PedSetActionNode(gPlayer, "/Global/Actions/Grapples/GrappleReversals/MountReversals/MountReversalPunches/GIVE","Act/Globals.act")
  elseif IsButtonPressed(6,0) then
  PedSetActionNode(gPlayer, "/Global/J_Striker_A/Offense/Medium/Grapples/GrapplesAttempt","Act/Anim/J_Striker_A.act")
  elseif IsButtonPressed(15,0) then
  PedSetActionNode(gPlayer, "/Global/J_Striker_A/Offense/Medium/Taunts/Taunt_1", "Act/Anim/J_Striker_A.act")
  elseif IsButtonPressed(6,0) and IsButtonPressed(7,0) then
  PedSetActionNode(gplayer, "/Global/Player/Attacks/Strikes/RunningAttacks/HeavyAttacks/RunShoulder","Act/Player.act")
  elseif IsButtonPressed(1,0) then
  PedSetActionNode(gPlayer, "/Global/Actions/Grapples/Front/Grapples/GrappleMoves/BodySlam","Globals/J_Grappler_A.act")
  elseif IsButtonPressed(6,0) and IsButtonPressed(8,0) then
  PedSetActionNode(gPlayer, "/Global/Player/Attacks/Strikes/RunningAttacks/HeavyAttacks/RunShoulder","Act/Player.act")
  elseif IsButtonPressed(3,0) then
  PedSetActionNode(gPlayer, "/Global/Ambient/HarassMoves/HarassShort/Shoves","Act/Conv/Ambient.act")
  end
  UpdateTextQueue()
    Wait(0)
end
Title: Re: Bully Strafe and Speech Fighting Style error?
Post by: AlphaTech on January 20, 2016, 10:46:42 PM
  • Still don't understand your fucking post dude wtf stop fucking typing like a twat - In m8 Daboos 6758317377372882828292992939939 voice
[/color]


Anyway you have the line for controlling your keyboard twice erase one.
Title: Re: Bully Strafe and Speech Fighting Style error?
Post by: Unknownsoldier on January 20, 2016, 11:35:51 PM
alpha tech is 2 much of a fgt to help

Anyways dude. You might wanna try actually making a mod by yourself, or learn how to do it. It's not that hard. If I can learn how to make a working mod in just a week during a time where there were less tutorials than now, so can you.
If my dumbass can find new functions and how things work(like forloops!) work all by myself, so can you. And you might wanna try adding someone on steam or something like that. 1 on 1 help is always good.
There's no point in modding when other people are pretty much scripting the entire mod for you.

Here's the fixed code.

Code: [Select]
function MissionSetup()
PlayerSetHealth(500)
AreaTransitionXYZ(0, 270, -110, 6)
SoundPlayStream("MS_FightMid02.rsm", 0.6)
PlayerSwapModel("JK_LuisWrestle")
PedSetAITree(gPlayer, "/Global/PlayerAI","Act/PlayerAI.act")
TextPrintString("Luis Wrestling Mod", 4, 1)
WaitSkippable(4000)
TextPrintString("When mod is at 75% Progress, I will certainly release a J_Striker_A", 4, 1)
WaitSkippable(4000)
TextPrintString("When this mod is 100% complete, I'll upload it to Bully Board :D", 3, 1)
WaitSkippable(3000)
TextPrintString("Fin This Mod Bully Modder done for me 74 Enjoy!", 3, 1) -- wtf
end

function MissionCleanup()
collectgarbage()
end

function main()
while true do
if IsButtonPressed(8,0) then
SoundPlayScriptedSpeechEvent(gPlayer, "FIGHT")
end
f_strafe()
F_FightingStyle()
Wait(0)
end
end

function f_strafe()
if IsButtonPressed(10,0) and IsMoving() and not isStrafing and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
PedSetActionNode(gPlayer,"/Global/J_Grappler_A/Default_KEY/ExecuteNodes/LocomotionOverride/Combat/CombatBasic","Act/Anim/J_Grappler_A.act")
isStrafing = true
elseif (not IsButtonPressed(10,0) or not IsMoving()) and isStrafing and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
PedSetActionTree(gPlayer,"/Global/J_Grappler_A", "Act/Anim/J_Grappler_A.act")
isStrafing = false
elseif isStrafing then
local x,y,z = PedGetPosXYZ(PedGetTargetPed())
PedFaceXYZ(gPlayer,x,y,z)
end
end

IsMoving = function()
 local s = 0.08
 return GetStickValue(16,0) > s or GetStickValue(16,0) < -s or GetStickValue(17,0) > s or GetStickValue(17,0) < -s
end



function F_FightingStyle()
if IsButtonPressed(0,0) then
PedSetActionNode(gPlayer, "/Global/Actions/Grapples/GrappleReversals/MountReversals/MountReversalPunches/GIVE","Act/Globals.act")
elseif IsButtonPressed(6,0) then
PedSetActionNode(gPlayer, "/Global/J_Striker_A/Offense/Medium/Grapples/GrapplesAttempt","Act/Anim/J_Striker_A.act")
elseif IsButtonPressed(15,0) then
PedSetActionNode(gPlayer, "/Global/J_Striker_A/Offense/Medium/Taunts/Taunt_1", "Act/Anim/J_Striker_A.act")
elseif IsButtonPressed(6,0) and IsButtonPressed(7,0) then
PedSetActionNode(gplayer, "/Global/Player/Attacks/Strikes/RunningAttacks/HeavyAttacks/RunShoulder","Act/Player.act")
elseif IsButtonPressed(1,0) then
PedSetActionNode(gPlayer, "/Global/Actions/Grapples/Front/Grapples/GrappleMoves/BodySlam","Globals/J_Grappler_A.act")
elseif IsButtonPressed(6,0) and IsButtonPressed(8,0) then
PedSetActionNode(gPlayer, "/Global/Player/Attacks/Strikes/RunningAttacks/HeavyAttacks/RunShoulder","Act/Player.act")
elseif IsButtonPressed(3,0) then
PedSetActionNode(gPlayer, "/Global/Ambient/HarassMoves/HarassShort/Shoves","Act/Conv/Ambient.act")
end
end
Title: Re: Bully Strafe and Speech Fighting Style error?
Post by: bullymodder74 on January 21, 2016, 02:39:57 PM
alpha tech is 2 much of a fgt to help

Anyways dude. You might wanna try actually making a mod by yourself, or learn how to do it. It's not that hard. If I can learn how to make a working mod in just a week during a time where there were less tutorials than now, so can you.
If my dumbass can find new functions and how things work(like forloops!) work all by myself, so can you. And you might wanna try adding someone on steam or something like that. 1 on 1 help is always good.
There's no point in modding when other people are pretty much scripting the entire mod for you.

Here's the fixed code.

Code: [Select]
function MissionSetup()
PlayerSetHealth(500)
AreaTransitionXYZ(0, 270, -110, 6)
SoundPlayStream("MS_FightMid02.rsm", 0.6)
PlayerSwapModel("JK_LuisWrestle")
PedSetAITree(gPlayer, "/Global/PlayerAI","Act/PlayerAI.act")
TextPrintString("Luis Wrestling Mod", 4, 1)
WaitSkippable(4000)
TextPrintString("When mod is at 75% Progress, I will certainly release a J_Striker_A", 4, 1)
WaitSkippable(4000)
TextPrintString("When this mod is 100% complete, I'll upload it to Bully Board :D", 3, 1)
WaitSkippable(3000)
TextPrintString("Fin This Mod Bully Modder done for me 74 Enjoy!", 3, 1) -- wtf
end

function MissionCleanup()
collectgarbage()
end

function main()
while true do
if IsButtonPressed(8,0) then
SoundPlayScriptedSpeechEvent(gPlayer, "FIGHT")
end
f_strafe()
F_FightingStyle()
Wait(0)
end
end

function f_strafe()
if IsButtonPressed(10,0) and IsMoving() and not isStrafing and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
PedSetActionNode(gPlayer,"/Global/J_Grappler_A/Default_KEY/ExecuteNodes/LocomotionOverride/Combat/CombatBasic","Act/Anim/J_Grappler_A.act")
isStrafing = true
elseif (not IsButtonPressed(10,0) or not IsMoving()) and isStrafing and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
PedSetActionTree(gPlayer,"/Global/J_Grappler_A", "Act/Anim/J_Grappler_A.act")
isStrafing = false
elseif isStrafing then
local x,y,z = PedGetPosXYZ(PedGetTargetPed())
PedFaceXYZ(gPlayer,x,y,z)
end
end

IsMoving = function()
 local s = 0.08
 return GetStickValue(16,0) > s or GetStickValue(16,0) < -s or GetStickValue(17,0) > s or GetStickValue(17,0) < -s
end



function F_FightingStyle()
if IsButtonPressed(0,0) then
PedSetActionNode(gPlayer, "/Global/Actions/Grapples/GrappleReversals/MountReversals/MountReversalPunches/GIVE","Act/Globals.act")
elseif IsButtonPressed(6,0) then
PedSetActionNode(gPlayer, "/Global/J_Striker_A/Offense/Medium/Grapples/GrapplesAttempt","Act/Anim/J_Striker_A.act")
elseif IsButtonPressed(15,0) then
PedSetActionNode(gPlayer, "/Global/J_Striker_A/Offense/Medium/Taunts/Taunt_1", "Act/Anim/J_Striker_A.act")
elseif IsButtonPressed(6,0) and IsButtonPressed(7,0) then
PedSetActionNode(gplayer, "/Global/Player/Attacks/Strikes/RunningAttacks/HeavyAttacks/RunShoulder","Act/Player.act")
elseif IsButtonPressed(1,0) then
PedSetActionNode(gPlayer, "/Global/Actions/Grapples/Front/Grapples/GrappleMoves/BodySlam","Globals/J_Grappler_A.act")
elseif IsButtonPressed(6,0) and IsButtonPressed(8,0) then
PedSetActionNode(gPlayer, "/Global/Player/Attacks/Strikes/RunningAttacks/HeavyAttacks/RunShoulder","Act/Player.act")
elseif IsButtonPressed(3,0) then
PedSetActionNode(gPlayer, "/Global/Ambient/HarassMoves/HarassShort/Shoves","Act/Conv/Ambient.act")
end
end

Thanks  8)
Title: Re: Bully Strafe and Speech Fighting Style error?
Post by: Bully_Lover13 on January 22, 2016, 03:59:28 AM
Stop with that moving text.

Also, may I ask what language you speak so I can google translate to communicate with you to help you further?
Title: Re: Bully Strafe and Speech Fighting Style error?
Post by: bullymodder74 on January 22, 2016, 12:10:34 PM
Stop with that moving text.

Also, may I ask what language you speak so I can google translate to communicate with you to help you further?





do Not They  Little  Of English Do not  use translator 
Title: Re: Bully Strafe and Speech Fighting Style error?
Post by: DahCobra33 on January 22, 2016, 04:06:35 PM
Te esta pidiendo que no uses el texto que se mueve..

Como este..

He's speaking Spanish.
Title: Re: Bully Strafe and Speech Fighting Style error?
Post by: bullymodder74 on January 22, 2016, 04:17:42 PM
Te esta pidiendo que no uses el texto que se mueve..

Como este..

He's speaking Spanish.





ok