devolution

Author Topic: Scripting: What do the Global & Girl flags do?  (Read 3434 times)

0 Members and 1 Guest are viewing this topic.

Offline MaxVirile

  • Newbie
  • *
  • Posts: 9
Scripting: What do the Global & Girl flags do?
« on: May 31, 2015, 09:23:44 AM »
Hello all,

I'm playing around with scripting, and am wondering what the global & girl flags do.  I'm presuming that the girl flags control things like pregnant, slave, etc...

Thank you,
MaxVirile

Offline aevojoey

  • Hero Member
  • *****
  • Posts: 1413
  • Thats ok, I'm used to disappointment.
Re: Scripting: What do the Global & Girl flags do?
« Reply #1 on: May 31, 2015, 11:42:14 AM »
I'm playing around with scripting, and am wondering what the global & girl flags do.  I'm presuming that the girl flags control things like pregnant, slave, etc...
I'm not sure exactly what they all do, I have never really looked at them before now.

There are 5 Game Flags:    #   
FLAG_CUSTNOPAY    0    This is set when a customer doesn't pay and gets caught by your guards.
FLAG_DUNGEONGIRLDIE    1    When a girl dies in the dungeon
FLAG_DUNGEONCUSTDIE    2    When a customer dies in the dungeon
FLAG_CUSTGAMBCHEAT    3    Not used but probably intended for if a customer cheats at gambling
FLAG_RIVALLOSE    4    When a rival is killed

Girl flags seem to just be used as temporary place holders for script data.
I'm not sure if they are intended to be used anywhere else in the code.
Fixing the game is a better game than actually playing it.
Get the Current Version <|> Discuss the Game <|> Report a bug

Offline HuiBui

  • Full Member
  • ***
  • Posts: 148
Re: Scripting: What do the Global & Girl flags do?
« Reply #2 on: June 01, 2015, 12:01:07 AM »
The Girlflags can be used for scripts. And they will be saved together with the girls data if you save a game.

Offline HuiBui

  • Full Member
  • ***
  • Posts: 148
Re: Scripting: What do the Global & Girl flags do?
« Reply #3 on: July 13, 2015, 03:07:08 PM »
I don't know where to place the request, but it has to do with scripts.

Could you please add a command into the scripteditor which makes it possible to raise/decrease the value of a girlflag ?
something like:
adjust girlflag (x) (y)  x= the specific girlflagnumber    y= is the amount of increase/decrease

By now thats not implemented

Kind regards,
HuiBui

Offline aevojoey

  • Hero Member
  • *****
  • Posts: 1413
  • Thats ok, I'm used to disappointment.
Re: Scripting: What do the Global & Girl flags do?
« Reply #4 on: July 13, 2015, 06:46:40 PM »
I don't know where to place the request, but it has to do with scripts.

Could you please add a command into the scripteditor which makes it possible to raise/decrease the value of a girlflag ?
something like:
adjust girlflag (x) (y)  x= the specific girlflagnumber    y= is the amount of increase/decrease

By now thats not implemented

Kind regards,
HuiBui
I have added "AdjustGirlFlag ~ ~" that will accept "INT 0 29" and "INT -254 254"
I have also expanded girl flags to allow negative numbers -254 to +254.
I don't think this will break anything but you never know unless you try it.

I have attached the ScriptCommands.txt so you can start adding them but they will not run properly until .06.02.11
Fixing the game is a better game than actually playing it.
Get the Current Version <|> Discuss the Game <|> Report a bug