Tuesday, May 13, 2014

Felling a little like cheater :)

Trying to do working life simulation through scripts only is possible. I'm technicaly done it. But after I seen all this scripts listing, I feel that it's something too much for anyone then maybe me alone. :)  (Long time ago joke: program complexity grow so long as it's not surpass programmer's ability to remember his own code. :) )

So I decided to add new class/object to the game engine - InternalClock. It's now can be used to setup daily schedule for cahracters and monitor where they are with only few script lines. It's more effective, but I still felling a little like cheater - adding new game engine functional for secific task. :)

13 comments:

  1. Does this mean tasks will be 1 hour instead of 6 hours?

    ReplyDelete
    Replies
    1. No, this is completely another scheduler - for NPC mainly.

      Delete
    2. I was hoping for more flexibility with the task scheduler. Like doubling or tripling the task slots. I'm probably be stuck with two proxies and use the task scheduler for resting. That's my current routine. The NPC scheduler will probably make this routine more difficult to maintain.

      Delete
    3. This not related to the management tab schedule at all. And current task system (Night, Morning, Day, Evening) I do not have plans to change. It's the game design that I feel is right for gameplay balance.

      Delete
  2. Will the sytem you are building potentialy lead to persistant NPCs, such as Merril, having offspring?

    We can create custom contracts but is there a function to set a worker to use a custom contract?

    ReplyDelete
    Replies
    1. Yes pesistent NPC is one of my initial idea's that I'm store in the "long time plans" box and take it out again. :) Just not been sure before: if I can do it, and if java and scripts is fast enough for them. Now I know answers: "yes" for both questions. :)

      To use contract - such function is present. Well, it's can be a little non intuitive. Baybe I need to write additional function to do it a simplier way, but so far it's done this way (example):

      c = LoadCharacter("filename_of_chracter_template");
      contract = LoadContract("contract_filename");
      contract.setValue(1000); //here is value of contract if player need to pay for it (if this contract added to agency for example).
      c.addToWorkers(contract); //to add this character immidiately, baypassing contract payment.

      Delete
  3. Maybe you can use time scheduler to even make NPCs interact with each other.

    ReplyDelete
  4. You know, I'd like to see some of the sexual training features show up in management. Stretch Vagina notably sticks out at me so females and herms can keep themselves loose.

    ReplyDelete
    Replies
    1. Why no? Adding management task for me easier then even normal training events - fewer texts. :) So tell what else you like to see, and I will think what can be added without beaking a game balance.

      Delete
  5. I've run into the issue where my character's breasts have reached the point where she's unable to move. Attempting to use proxy allows me to move a single room but unable to actually perform any action, so you get kicked back to the Management tab and have to wait a day before attempting to Use Proxy again, but run into the same problem.

    Attempted to reduce the breasts using the edit mode, but it is...confusing, to say the least. I know what I want to do, I found the value I want to change, I see it, it's right there.http://puu.sh/8Vn02.png

    But you have to...edit DNA? RNA? Okay, *clicks DNA* ... Ah here we go, *scrolls down* Wait, breast weight isn't on DNA. Okay let's go to RNA. *Scrolls down* Ahah! http://puu.sh/8VnbC.png

    Okay let's edit the gene. *click* Easy, let's reduce the number to half. Aaaaannd Save Gene-.... http://puu.sh/8VnmF.png

    So....What now?

    ReplyDelete
    Replies
    1. Save and load in gene editor should be named "Export" and "Import" in case that it used for the characters editing. :) They usually not needed for editing characters at all, changes done to gene apply to character immidiatly.

      DNA - store gentic info for the children. RNA - this is actual used stats for the character. So usually you need to change RNA. More about this system you can read in the game SDK.

      In yours situation you need to change gene "breasts.size" - or "breasts.weight" will be recalculated after one hour automaticaly (it's can be seen in the organ "breasts" scripts how and why this done).

      Most genes related to organs is not separate values - they are linked in some sort of system through organs scripts. Changing one will affect others.

      Delete