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


Author Topic: Player faction and TextPrintString  (Read 5359 times)

0 Members and 1 Guest are viewing this topic.

Offline Reath

  • Jr. Member
  • **
  • Posts: 26
  • Gender: Male
    • View Profile
Player faction and TextPrintString
« on: March 22, 2014, 11:11:57 AM »
PedSetFaction is glitchy, how do I set the player back to the player faction? Or what other ways are there to set the player's faction and to allow them to open doors.

Is there any way to do other color text? Like the text in missions or chapter intros.

Offline c00ld0c26

  • The D0c
  • Moderator
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Player faction and TextPrintString
« Reply #1 on: March 22, 2014, 12:49:41 PM »
If you want to change the player's faction back, you could simply change the faction number to the player's faction (player's faction number is : 13).
Or you could just delete the script you placed inside scripts.img and put a new one instead.
As for the text, its : TextPrintString("TEXT" 0,0)
The red zero is the number of seconds you want the text to last on the screen.
The Orange zero is the number of the text style, changing the number around, (like 1, 2 , 3 , 4 ect...) will change the text's style (by size, and I think by color aswell).

deadpoolXYZ

  • Guest
Re: Player faction and TextPrintString
« Reply #2 on: March 22, 2014, 01:25:02 PM »
If you want to change the player's faction back, you could simply change the faction number to the player's faction (player's faction number is : 13).

That doesn't work. Once you changed your faction, you can't turn back to PLAYER1.

Offline c00ld0c26

  • The D0c
  • Moderator
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Player faction and TextPrintString
« Reply #3 on: March 22, 2014, 02:41:10 PM »
If you want to change the player's faction back, you could simply change the faction number to the player's faction (player's faction number is : 13).

That doesn't work. Once you changed your faction, you can't turn back to PLAYER1.

Then he needs to delete the script and make a new one.

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Player faction and TextPrintString
« Reply #4 on: March 22, 2014, 05:01:15 PM »
Correction to what c00l said about TextPrintString.

The 3rd parameter (what he had in orange) is the position on screen.
1 = top
2 = bottom

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Player faction and TextPrintString
« Reply #5 on: March 23, 2014, 09:47:45 AM »
Players faction is 13 ,but it doesn't work by itself.. I think the Players Faction includes flags for prop/ped interactions.

Offline Reath

  • Jr. Member
  • **
  • Posts: 26
  • Gender: Male
    • View Profile
Re: Player faction and TextPrintString
« Reply #6 on: March 23, 2014, 10:49:34 AM »
Players faction is 13 ,but it doesn't work by itself.. I think the Players Faction includes flags for prop/ped interactions.
Ah, ok. How would I set the flags? PedSetFlag?

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Player faction and TextPrintString
« Reply #7 on: March 23, 2014, 06:11:37 PM »
PedSetFlag is a working command that has it's mysteries.

Atm I do not have bully installed on my computer so I can't do any modding right now to tell you exactly how to do it.


Offline Reath

  • Jr. Member
  • **
  • Posts: 26
  • Gender: Male
    • View Profile
Re: Player faction and TextPrintString
« Reply #8 on: March 23, 2014, 09:17:23 PM »
Ok, thanks, maybe someone else knows, or I'll figure it out eventually.

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: Player faction and TextPrintString
« Reply #9 on: March 29, 2014, 09:07:28 PM »
PedSetFlag is used namely for npcs but it IS used on Jimmy during the boxing minigames.

I have not yet figured out what the flags actually do yet....but I do know one will make you invisible and another will allow you to walk through walls and things like that....kinda like a no clipping cheat would do.

I have detailed notes about this since I am the one who pretty much discovered most of the lua codes along with Rise who has helped with ones I never messed with.....between Rise...1emon...DaBOSS, SWEGTA, Red Blaster and myself....we have figured out what approx 70% of the lua codes actually do.

There are alternative codes to TextPrintString as well.....along with ones that create the text boxes you usually see on the screen holding hints and tips while playing the game......Creating brand new text boxes however is a bit difficult but doable as I have done it....but don't have my notes on this system atm so I can't exactly tell you how to do that yet.

Reath.....if you add me on xfire I can share with you some notes to make things a bit easier for you with modding....it is the least I can do....I actually have planned another bully modding magazine issue that will focus solely on the lua codes and how to use them...but have got this put on hold until I can come back to modding again...which hopefully will be real real soon since I really miss having fun here.