Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: embas10 on April 26, 2014, 09:27:41 AM

Title: Disable Or Enable Script during game?
Post by: embas10 on April 26, 2014, 09:27:41 AM
is there anyone now how to do this?
i wanted to make johnny and darby, to doing they special action like johnny tornado kick, and darby uppercut, with they normal boss action!
so how to active and disabling the script during the game?
ImportScript("2_B")??????

?????? mean what gone i put again to disable the script! ok please help me anyone !   :(
Title: Re: Disable Or Enable Script during game?
Post by: c00ld0c26 on April 26, 2014, 11:06:41 AM
ForceMissionStart("MissionName")
Title: Re: Disable Or Enable Script during game?
Post by: embas10 on May 01, 2014, 02:15:46 AM
ForceMissionStart("MissionName")

So the mean

ImportScript("2_B") = to enable the Mission? and
ForceMissionStart("2_B") = to disable the Mission?
Title: Re: Disable Or Enable Script during game?
Post by: DaBOSS54320 on May 01, 2014, 02:22:37 AM
Idk for sure but look for a terminate script function.  I thought I seen 1 b4. I'll help more when on pc (phone now)
Title: Re: Disable Or Enable Script during game?
Post by: c00ld0c26 on May 05, 2014, 12:17:44 AM
No no no.
ForceMissionStart("MissionName") - start script.
Disabling one isn't been found yet but the function for it is in the game some where.
Title: Re: Disable Or Enable Script during game?
Post by: DaBOSS54320 on May 05, 2014, 12:23:38 AM
You can easily stop the script. In the main function, for your repeat loop it should look something like...

repeat
  --stuff
  Wait(0)
until not Alive

so instead of "until not Alive" do "until Script1Terminated"
Script1Terminated would be a variable that can equal true or false. In the setup of your script, assign it to false. Script1Terminated = false. then when you want to end the script, make it equal true. (Script1Terminated = true)

name it Script2Terminated, Script3Terminated, and so forth. or whatever you want to name it. dosent really matter.
Title: Re: Disable Or Enable Script during game?
Post by: c00ld0c26 on May 05, 2014, 01:15:44 AM
That's only for when you want a script to run over and over because it has conditions but what if he wants to stop a script before some commands are running?
For example he has a function running with some of the code running instantly and some run after a Wait command.
So how do you disable the function then?
I think that is what he wants to do.
Title: Re: Disable Or Enable Script during game?
Post by: DaBOSS54320 on May 05, 2014, 05:13:16 PM
^ Good point, I have no idea.