👨‍💻 dev time to cook

development

owly

闇の伝説
Staff member
戦闘 コーダー
Code:
trgTime:tolerance.reset()
// stop shout out
if so.engage(ear){cmdArgue("do i have to wear a diaper?");tolerance.disable();event}
// shout out
if tolerance.trigger:
 if drip{so.activate();shoutout}

cmdArgue(ear)

@fukurou
 

fukurou

the supreme coder
ADMIN
Java:
package skills;

import AXJava.*;
import LivinGrimoire.DiSkillV2;

public class DiTreater extends DiSkillV2 {
    private TrgTime trgTime = new TrgTime();
    public TrgTolerance trgTolerance = new TrgTolerance(10);
    public AXShoutOut shoutOut = new AXShoutOut();
    public Responder replies = new Responder("stop arguing", "just do it", "behave","be a big boy and do it","bad boy no more fussing","i know best");
    public TrgArgue contextCmd = new TrgArgue();
    private PercentDripper dripper = new PercentDripper();
    public DiTreater setTime(String time_stamp){
        // set time in which the event eventifies
        trgTime.setTime(time_stamp);
        return this;
    }
    public DiTreater setDripper(int percentage){
        dripper.setLimis(percentage);
        return this;
    }

    public DiTreater() {
        trgTime.setTime("19:30");
        shoutOut.handshake.addResponse("what");
        shoutOut.handshake.addResponse("yes");
        shoutOut.handshake.addResponse("i am here");
        contextCmd.contextCommands.add("do i have to wear a diaper");
        contextCmd.commands.add("but");
        contextCmd.commands.add("do not want to");
        contextCmd.commands.add("why");
        contextCmd.commands.add("no");
    }

    @Override
    public void input(String ear, String skin, String eye) {
        if (trgTime.alarm()){trgTolerance.reset();}
        // stop shout out
        if (shoutOut.engage(ear)){contextCmd.engageCommand("do i have to wear a diaper");trgTolerance.disable();setVerbatimAlg(4,"put on your diaper sweet heart");return;}
        // shout out
        if (trgTolerance.trigger()){
            if (dripper.drip()){shoutOut.activate();setVerbatimAlg(4,"user");return;}
        }
        switch (contextCmd.engageCommand(ear)){
            case 1:
                setVerbatimAlg(4,"you know you do");
                break;
            case 2:
                setVerbatimAlg(4, replies.getAResponse());
                break;
        }
    }
}
 

fukurou

the supreme coder
ADMIN
Java:
        b1.logicChobit.addSkill(new DiTreater().setDripper(100).setTime(new PlayGround().getCurrentTimeStamp()));

        b1.hardwareChobit.addSkill(new DiSysOut());
        b1.doIt("hello","","");

        b1.logicChobit.addSkill(new DiTime());

        Scanner scanner = new Scanner(System.in);
        System.out.println("enter input");
        String str1 = scanner.nextLine();
        while (!str1.equals("exit")){
            b1.doIt(str1,"","");
            str1 = scanner.nextLine();
        }
user
enter input

user

user

user
what
put on your diaper sweet heart
no
i know best
no
bad boy no more fussing
but i am too big for diapers
be a big boy and do it
ok
exit

Process finished with exit code 0
 
Top