Difference between revisions of "IsBribedbyPlayer"
Jump to navigation
Jump to search
imported>SJML Bot (Bot creating condition functions pages.) |
DavidJCobb (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This function returns 1 if it's run on an actor who [[SetBribed - Actor|has been bribed by the player]], or 0 otherwise. | |||
The function works by checking an internal datestamp which indicates when the actor was marked as bribed, comparing that datestamp to the current date. Tampering with the current date (i.e. by modifying the values of [[global]]s like GameYear) and rewinding to before an actor was bribed may cause this condition to no longer recognize them as bribed. (Using [[SetBribed - Actor|Actor.SetBribed]] would be a saner way to clear the "bribed" flag.) | |||
== See Also == | |||
* [[IsIntimidatedbyPlayer]] | |||
[[Category:Condition Functions]] | [[Category:Condition Functions]] |
Latest revision as of 18:36, 12 May 2024
This function returns 1 if it's run on an actor who has been bribed by the player, or 0 otherwise.
The function works by checking an internal datestamp which indicates when the actor was marked as bribed, comparing that datestamp to the current date. Tampering with the current date (i.e. by modifying the values of globals like GameYear) and rewinding to before an actor was bribed may cause this condition to no longer recognize them as bribed. (Using Actor.SetBribed would be a saner way to clear the "bribed" flag.)