ahh shiiiiieeet skill cooking time!

owly

闇の伝説
Staff member
戦闘 コーダー

@fukurou
startin with da NPC skill!

cmdContext: toggle skill_name, again, ...
**********
*per mode*
**********
cmdContext: switch skill_name_mode, again, repeate, ...->cyclerMode
cmdContext1: engage skill_name, engage, again, repeate, ...


switch(mode):
1) cmdContext1->NPC2_0 // engage + strEngage + learn (say n) + strEngageAndLearn(ear)
+ DiBurp forceEngage(per switch case);//via kokoro (npc0 only)
2) cmdContext1->NPC2_1 // engage + strEngage + learn (say n) + strEngageAndLearn(ear)
+timegate engage, drip+ if ear!empty
 

fukurou

the supreme coder
ADMIN
ahh shiiiiiiiiiiiiiiiiiiieeet in the ass man the coding force is overflowing!
switch talking mode
discreet mode
switch talking mode
friend mode
jizz
jizz
ass
shit
jizz
jizz
jizz ass shit nigga
jizz your ass
jizz
shit
shit in the ass
jizz your ass
fuck you shit man
jizz ass shit nigga

^ that's all her. she be learning n shit!
 

fukurou

the supreme coder
ADMIN
shit
shit
jizz
jizz
engage talking
shit
engage talking
jizz
engage talking
shit
engage talking
jizz
engage talking
jizz
engage talking
jizz
engage talking
shit
engage talking
shit
engage talking
jizz
engage talking
jizz
engage talking
jizz
engage talking
engage talking
jizz
engage talking
shit
engage talking
engage talking
engage talking
engage talking
shit
 

fukurou

the supreme coder
ADMIN
Java:
package skills;

import AXJava.AXContextCmd;
import AXJava.AXNPC;
import AXJava.AXNPC2;
import AXJava.Cycler;
import LivinGrimoire.DiSkillV2;

public class DIBlabber extends DiSkillV2 {
    private Boolean isActive = true; // skill toggle
    public AXContextCmd skillToggler = new AXContextCmd();
    // chat mode select
    public AXContextCmd modeSwitch = new AXContextCmd();
    protected Cycler mode = new Cycler(1); // chat-bot mode
    // engage chatbot
    public AXContextCmd engage = new AXContextCmd();
    // chatbots
    public AXNPC2 chatbot1 = new AXNPC2(30,90);
    public AXNPC2 chatbot2 = new AXNPC2(30,90);
    public DIBlabber(String skill_name) {
        skillToggler.contextCommands.add("toggle " + skill_name);
        skillToggler.commands.add("again");skillToggler.commands.add("repeat");
        modeSwitch.contextCommands.add("switch " + skill_name + " mode");
        modeSwitch.commands.add("again");modeSwitch.commands.add("repeat");
        engage.contextCommands.add("engage " + skill_name);engage.commands.add("talk");
        engage.commands.add("talk to me");
        engage.commands.add("again");engage.commands.add("repeat");
        mode.setToZero();
    }

    @Override
    public void input(String ear, String skin, String eye) {
        // skill toggle:
        if(skillToggler.engageCommand(ear)){isActive = !isActive;}
        if (!isActive){return;}
        // chat-bot mode switch mode
        if(modeSwitch.engageCommand(ear)){
            mode.cycleCount();
            setVerbatimAlg(4, talkMode());;
            return;
        }
        switch (mode.getMode()){
            case 0:
                mode0(ear);
                break;
            case 1:
                mode1(ear);
                break;
        }
    }
    private void mode0(String ear) {
        String result = "";
        // engage
        if (engage.engageCommand(ear)) {
            result = chatbot1.respond();
            if (!result.isEmpty()) {
                setVerbatimAlg(4, result);
                return;
            }
        }
        // str engage
        result = chatbot1.strRespond(ear);
        if (!result.isEmpty()) {
            setVerbatimAlg(4, result);
        }
        // forced learn (say n)
        if (!chatbot1.learn(ear)){
            // strlearn
            chatbot1.strLearn(ear);
        }
    }

    private void mode1(String ear) {
        String result = "";
        // engage
        if (engage.engageCommand(ear)) {
            result = chatbot2.respond();
            if (!result.isEmpty()) {
                setVerbatimAlg(4, result);
                return;
            }
        }
        // str engage
        result = chatbot2.strRespond(ear);
        if (!result.isEmpty()) {
            setVerbatimAlg(4, result);
        }
        // forced learn (say n)
        if (!chatbot2.learn(ear)){
            // strlearn
            chatbot2.strLearn(ear);
        }
    }
    private String talkMode(){
        switch (mode.getMode()){
            case 0:
                return "friend mode";
            case 1:
                return "discreet mode";
        }
        return "mode switched";
    }
}
 

fukurou

the supreme coder
ADMIN
Java:
package AXJava;

public class AXNPC {
    public RefreshQ responder = new RefreshQ();
    public PercentDripper dripper = new PercentDripper();
    public AXCmdBreaker cmdBreaker = new AXCmdBreaker("say");

    public AXNPC(int replyStockLim, int outputChance) {
        responder.setLimit(replyStockLim);
        if (outputChance >0 && outputChance < 101){
            dripper.setLimis(outputChance);
        }
    }

    public String respond(){
        if (dripper.drip()){
            return responder.getRNDElement();
        }
        return "";
    }
    public String respondPlus(int plus){
        // increase rate of output
        if (dripper.dripPlus(plus)){
            return responder.getRNDElement();
        }
        return "";
    }
    public boolean learn(String ear){
        // say hello there : hello there is learned
        String temp = cmdBreaker.extractCmdParam(ear);
        if (temp.isEmpty()){return false;}
        responder.add(temp);
        return true;
    }
    public String strRespond(String ear){
        // respond if ear contains a learned input
        if (dripper.drip() && responder.strContainsResponse(ear)){
            return responder.getRNDElement();
        }
        return "";
    }
    public String forceRespond(){
        return responder.getRNDElement();
    }
    public void setConjuration(String conjuration){
        cmdBreaker.conjuration = conjuration;
    }
}
non coder will not get the sheer amount of jizz fuel in this snippet

IG we need to beef up the burp skill next
 

fukurou

the supreme coder
ADMIN
Java:
package skills;

import AXJava.DrawRndDigits;
import AXJava.Responder;
import AXJava.TrgMinute;
import LivinGrimoire.DiSkillV2;
import LivinGrimoire.LGFIFO;
import LivinGrimoire.PlayGround;

public class DiEngager extends DiSkillV2 {
    // makes the AI burp n  times per hour at random times
    private int burpsPerHour = 2;
    private TrgMinute trgMinute = new TrgMinute(0);
    private String skillToEngage = "unknown";
    private DrawRndDigits draw = new DrawRndDigits();
    private LGFIFO<Integer> burpMinutes = new LGFIFO<>();
    private PlayGround pl = new PlayGround();
    public DiEngager(int burpsPerHour, String skillToEngage) {
        super();
        if((burpsPerHour >0)&& (burpsPerHour <60)){
            this.burpsPerHour = burpsPerHour;
        }
        for (int i = 1; i < 60; i++) {
            draw.addElement(i);
        }
        for (int i = 0; i < burpsPerHour; i++) {
            burpMinutes.add(draw.draw());
        }
        this.skillToEngage = skillToEngage;
    }

    public void setSkillToEngage(String skillToEngage) {
        this.skillToEngage = skillToEngage;
    }

    @Override
    public void input(String ear, String skin, String eye) {
        // night? do not burp
        if (pl.partOfDay().equals("night")){
            return;
        }
        // reset burps
        if (trgMinute.trigger()){
            burpMinutes.clear();
            draw.reset();
            for (int i = 0; i < burpsPerHour; i++) {
                burpMinutes.add(draw.draw());
            }
            return;
        }
        // burp
        int nowMinutes = pl.getMinutesAsInt();
        if(burpMinutes.contains(nowMinutes)){
            burpMinutes.removeItem(nowMinutes);
            this.kokoro.toHeart.put(skillToEngage, "engage");
            return;
        }
    }
}

Java:
package skills;

import AXJava.*;
import LivinGrimoire.DiSkillV2;
import LivinGrimoire.TimeGate;

public class DIBlabber extends DiSkillV2 {
    private Boolean isActive = true; // skill toggle
    public AXContextCmd skillToggler = new AXContextCmd();
    // chat mode select
    public AXContextCmd modeSwitch = new AXContextCmd();
    protected Cycler mode = new Cycler(1); // chat-bot mode
    // engage chatbot
    public AXContextCmd engage = new AXContextCmd();
    // chatbots
    public AXNPC2 chatbot1 = new AXNPC2(30,90);
    public AXNPC2 chatbot2 = new AXNPC2(30,90);
    // auto mode
    private Responder autoEngage = new Responder("engage automatic mode","automatic mode", "auto mode");
    private Responder shutUp = new Responder("stop","shut up", "silence", "be quite", "be silent");
    private TimeGate tg = new TimeGate(5);
    private int nPCPlus = 5;
    private int nPCNeg = -10;
    public DIBlabber(String skill_name) {
        skillToggler.contextCommands.add("toggle " + skill_name);
        skillToggler.commands.add("again");skillToggler.commands.add("repeat");
        modeSwitch.contextCommands.add("switch " + skill_name + " mode");
        modeSwitch.commands.add("again");modeSwitch.commands.add("repeat");
        engage.contextCommands.add("engage " + skill_name);engage.commands.add("talk");
        engage.commands.add("talk to me");
        engage.commands.add("again");engage.commands.add("repeat");
        mode.setToZero();
    }

    @Override
    public void input(String ear, String skin, String eye) {
        // skill toggle:
        if(skillToggler.engageCommand(ear)){isActive = !isActive;}
        if (!isActive){return;}
        // chat-bot mode switch mode
        if(modeSwitch.engageCommand(ear)){
            mode.cycleCount();
            setVerbatimAlg(4, talkMode());;
            return;
        }
        switch (mode.getMode()){
            case 0:
                mode0(ear);
                break;
            case 1:
                mode1(ear);
                break;
        }
    }
    private void mode0(String ear) {
        if (!kokoro.toHeart.getOrDefault("diblabber","").isEmpty()){
            kokoro.toHeart.put("diblabber","");
            setVerbatimAlg(4, chatbot1.forceRespond());
            return;
        }
        String result = "";
        // engage
        if (engage.engageCommand(ear)) {
            result = chatbot1.respond();
            if (!result.isEmpty()) {
                setVerbatimAlg(4, result);
                return;
            }
        }
        // str engage
        result = chatbot1.strRespond(ear);
        if (!result.isEmpty()) {
            setVerbatimAlg(4, result);
        }
        // forced learn (say n)
        if (!chatbot1.learn(ear)){
            // strlearn
            chatbot1.strLearn(ear);
        }
    }

    private void mode1(String ear) {
        // auto engage
        if(autoEngage.responsesContainsStr(ear)){
            tg.openGate();
            setVerbatimAlg(4,"auto NPC mode engaged");
            return;
        }
        if(shutUp.responsesContainsStr(ear)){
            tg.close();
            setVerbatimAlg(4,"auto NPC mode disengaged");
            return;
        }
        String result = "";
        if (tg.isOpen()){
            int plus = nPCNeg;
            if (!ear.isEmpty()){plus = nPCPlus;}
            result = chatbot2.respondPlus(plus);
            if (!result.isEmpty()) {
                setVerbatimAlg(4, result);
                return;
            }
        }
        // end auto engage code snippet
        // engage
        if (engage.engageCommand(ear)) {
            result = chatbot2.respond();
            if (!result.isEmpty()) {
                setVerbatimAlg(4, result);
                return;
            }
        }
        // str engage
        result = chatbot2.strRespond(ear);
        if (!result.isEmpty()) {
            setVerbatimAlg(4, result);
        }
        // forced learn (say n)
        if (!chatbot2.learn(ear)){
            // strlearn
            chatbot2.strLearn(ear);
        }
    }
    private String talkMode(){
        switch (mode.getMode()){
            case 0:
                return "friend mode";
            case 1:
                return "discreet mode";
        }
        return "mode switched";
    }
    public void setNPCTimeSpan(int n){
        tg.setPause(n);
    }
    public void setNPCNeg(int n){
        // lower NPC auto output chance
        nPCNeg = n;
    }
    public void setNPCPlus(int n){
        // increase NPC auto output chance
        nPCPlus = n;
    }
}
 

owly

闇の伝説
Staff member
戦闘 コーダー
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaass :s5:
javadoc it!!!
 

fukurou

the supreme coder
ADMIN
Java:
package skills;

import AXJava.*;
import LivinGrimoire.DiSkillV2;
import LivinGrimoire.TimeGate;

public class DIBlabber extends DiSkillV2 {
    private Boolean isActive = true; // skill toggle
    public AXContextCmd skillToggler = new AXContextCmd();
    // chat mode select
    public AXContextCmd modeSwitch = new AXContextCmd();
    protected Cycler mode = new Cycler(1); // chat-bot mode
    // engage chatbot
    public AXContextCmd engage = new AXContextCmd();
    // chatbots
    public AXNPC2 chatbot1 = new AXNPC2(30,90); // pal mode chat module
    public AXNPC2 chatbot2 = new AXNPC2(30,90); // discreet mode chat module
    // auto mode
    private Responder autoEngage = new Responder("engage automatic mode","automatic mode", "auto mode");
    private Responder shutUp = new Responder("stop","shut up", "silence", "be quite", "be silent");
    private TimeGate tg = new TimeGate(5);
    private int nPCPlus = 5; // increase rate of output in self auto reply mode
    private int nPCNeg = -10; // decrease rate of output in self auto reply mode
    public DIBlabber(String skill_name) {
        skillToggler.contextCommands.add("toggle " + skill_name);
        skillToggler.commands.add("again");skillToggler.commands.add("repeat");
        modeSwitch.contextCommands.add("switch " + skill_name + " mode");
        modeSwitch.commands.add("again");modeSwitch.commands.add("repeat");
        engage.contextCommands.add("engage " + skill_name);engage.commands.add("talk");
        engage.commands.add("talk to me");
        engage.commands.add("again");engage.commands.add("repeat");
        mode.setToZero();
    }

    @Override
    public void input(String ear, String skin, String eye) {
        // skill toggle:
        if(skillToggler.engageCommand(ear)){isActive = !isActive;}
        if (!isActive){return;}
        // chat-bot mode switch mode
        if(modeSwitch.engageCommand(ear)){
            mode.cycleCount();
            setVerbatimAlg(4, talkMode());;
            return;
        }
        switch (mode.getMode()){
            case 0:
                mode0(ear);
                break;
            case 1:
                mode1(ear);
                break;
        }
    }
    private void mode0(String ear) {
        if (!kokoro.toHeart.getOrDefault("diblabber","").isEmpty()){
            kokoro.toHeart.put("diblabber","");
            setVerbatimAlg(4, chatbot1.forceRespond());
            return;
        }
        NPCUtilization(chatbot1,ear);
    }

    private void mode1(String ear) {
        // auto engage
        if(autoEngage.responsesContainsStr(ear)){
            tg.openGate();
            setVerbatimAlg(4,"auto NPC mode engaged");
            return;
        }
        if(shutUp.responsesContainsStr(ear)){
            tg.close();
            setVerbatimAlg(4,"auto NPC mode disengaged");
            return;
        }
        if (tg.isOpen()){
            int plus = nPCNeg;
            if (!ear.isEmpty()){plus = nPCPlus;}
            String result = chatbot2.respondPlus(plus);
            if (!result.isEmpty()) {
                setVerbatimAlg(4, result);
                return;
            }
        }
        // end auto engage code snippet
        NPCUtilization(chatbot2, ear);
    }
    private String talkMode(){
        switch (mode.getMode()){
            case 0:
                return "friend mode";
            case 1:
                return "discreet mode";
        }
        return "mode switched";
    }
    // auto mode setters
    public void setNPCTimeSpan(int n){
        tg.setPause(n);
    }
    public void setNPCNeg(int n){
        // lower NPC auto output chance
        nPCNeg = n;
    }
    public void setNPCPlus(int n){
        // increase NPC auto output chance
        nPCPlus = n;
    }
    // chat module common tasks
    private void NPCUtilization(AXNPC2 npc, String ear){
        String result = "";
        // engage
        if (engage.engageCommand(ear)) {
            result = npc.respond();
            if (!result.isEmpty()) {
                setVerbatimAlg(4, result);
                return;
            }
        }
        // str engage
        result = npc.strRespond(ear);
        if (!result.isEmpty()) {
            setVerbatimAlg(4, result);
        }
        // forced learn (say n)
        if (!npc.learn(ear)){
            // strlearn
            npc.strLearn(ear);
        }
    }
}
 

owly

闇の伝説
Staff member
戦闘 コーダー
I'll cook some time skill with gamification pseudo code next ass shit asses
 
Top