Jump to content

Faction script


SEanfitzey7139

Recommended Posts

Here you go. Put it on an object that can be activated.

 

scriptname GBHisFactionForFitzey

; Delete the line below and replace all occurances of "someperson" with
; "player" if only the player should be allowed to enter the faction this way.
ref someperson

Begin OnActivate
;Delete the line below if you deleted the ref someperson line.
set someperson to GetActionRef

If (player.GetInFaction FitzeyFaction != 1)
;Put them in the faction
someperson.SetFactionRank FitzeyFaction, 1
else
;Throw them out of the faction
someperson.SetFactionRank FitzeyFaction, -1
Endif
End

 

It isn't possible to set the player birthsign, but you CAN check which birthsign the player chose.

 

Scriptname GBHisBirthsignHelpForFitzey

Begin OnActivate
if (PlayerRef == GetActionRef) && (GetIsPlayerBirthsign FitzeyBirthsign != 1)
messagebox "You idiot! Choose my Birthsign or DIE!"
showbirthsignmenu
set killhim to 1
endif
End

Begin Gamemode
; I really mean to do this!
if (killhim == 1) && (GetIsPlayerBirthsign FitzeyBirthsign != 1)
player.kill
endif
End

In this case, the player gets a dialog box which - in a very rude way - tells the player to choose your birthsign.

If he doesn't, he dies.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...