Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ryswick

Pages: [1]
1
I've been messing around with it more and I've come to the conclusion that I have no idea what's wrong with it.

It will work with calculations within the @if@ statements on some occasions, but not others. It just simply doesn't work like it used to. I might just try to do some weird work-around for the time being.

2
All right, so this might get a bit confusing because the command is huge, and it's connected to other commands, but I'll try my best to explain it...

This here was the original command, it worked for a couple weeks before the latest patch:

@if@[>=||@calc@[+|@if@[@readfile@[@user@armor.txt]||||0||@readfile@[@user@armor.txt]]|@calc@[+|@if@[@readfile@[@user@weapon.txt]||||0||@readfile@[@user@weapon.txt]]|@calc@[+|@rand@[0|@target@[1]]|@calc@[+|@points@|@calc@[+|@calc@[/|@if@[@readfile@[@user@prof.txt]||||0||@readfile@[@user@prof.txt]]|5]|@calc@[*|@streamrank@|@streamrank@]]]]]]||@target@[2]||@user@ has defeated the @target@[6]! @if@[>=||@points@||@target@[3]||||@exec@[0,!battleRewards @target@[4] @target@[7]]]||The @target@[6] has slain @user@!@editpoints@[@user@|@target@[5]]]

So this is the 'combat' system of an RPG mini-game I've been working on. Basically it adds a bunch of things together to get your combat rating such as level, armor, weapon, battleproficiency, and rank. It compares this to Target[2] which is the number you need to beat to kill the enemy. Target[1] is a random number attached to make sure you don't always lose/win every fight against that enemy. Target[3] is the level at which you stop gaining rewards from fighting that enemy. Target[4] is how many levels you gain for winning. Target[5] is how many levels you lose when you're defeated by the enemy. Target[6] is the enemy's name, and Target[7] is how much gold you earn.

I started stripping the command down piece by piece to see what was causing the problem, and I eventually got it to work like this:

@if@[>||@points@||@target@[2]||@user@ has defeated the @target@[6]! @if@[>=||@points@||99999||||@exec@[0,!battleRewards @target@[4] @target@[7]]]||The @target@[6] has slain @user@!@editpoints@[@user@|@target@[5]]]

But it only works when the player's overall combat level is simply @points@, no adding weapon power, armor power, ranking, battleproficiency, etc to it. It only works if it's simply @points@ compared to Target[2].

3
Before the latest patch I've had a command with an @if@ statement that compared two values which both were nested @calc@ statements.

We're talking nested at least 4-5 times.

This command no longer works since I've patched Deepbot, is this intentional? It seems to only work if I compare simple numbers together, no calculations allowed.

4
Help/Support / Re: Latest patch affecting commands?
« on: March 15, 2016, 11:22:11 AM »
All right, I've seemed to pinpoint the problem.

Within @if@ statements, Deepbot no longer likes @calc@'s  made within the comparing variables. I HAVE to just plug in a simple number, before the last patch I could have complex equations in the first or second variable, but now it only accepts just a simple number.

Anyone encounter this problem?

5
Help/Support / Latest patch affecting commands?
« on: March 14, 2016, 08:50:36 AM »
I've been working on a fairly in-depth mini-game for my viewers.

It's an RPG, where you can fight enemies, gain levels, earn gold, buy weapons and armor, progress through different areas. All of that was already implemented and working, I was planning to add more, but couldn't really figure out an easy compact inventory system that wouldn't flood the chat until a couple days ago. I decided to turn on deepbot, I noticed there was a patch so I downloaded it, and just wanted to level my own character when I noticed that it just... doesn't work anymore.

Normally you'd enter the command !battle <area>, so something like: !battle grass, and it'd say...

bot: <user> has encountered a Slime!
bot: <user> has slain the Slime!

but now it only goes...

bot: <user> has encountered a Slime!

and that's it.

I also put a personalized cooldown on each area, and that still works. It understands what area you're fighting in, and that you've initiated the fight, but no longer actually lets you fight anymore.

So I'm assuming the bugged part is somewhere within the combat command, but what stumps me is that it's been working for weeks straight before the patch, if there wasn't a problem before, if the code didn't change, what could I possibly do to fix it?

If it helps, here's the code:

@if@[>=||@calc@[+|@if@[@readfile@[@user@armor.txt]||||0||@readfile@[@user@armor.txt]]|@calc@[+|@if@[@readfile@[@user@weapon.txt]||||0||@readfile@[@user@weapon.txt]]|@calc@[+|@rand@[0|@target@[1]]|@calc@[+|@points@|@calc@[+|@calc@[/|@if@[@readfile@[@user@prof.txt]||||0||@readfile@[@user@prof.txt]]|5]|@calc@[*|@streamrank@|@streamrank@]]]]]]||@target@[2]||@user@ has defeated the @target@[6]! @if@[>=||@points@||@target@[3]||||@exec@[0,!battleRewards @target@[4] @target@[7]]]||The @target@[6] has slain @user@!@editpoints@[@user@|@target@[5]]]

Sorry about it looking like a mess, deepbot doesn't like spaces. If I put the letter 'r' at the start, deepbot will say:

bot: <user> has encoutnered a Slime!
bot: r

So it's reaching the combat command, it's just not understanding all of it?

I've copied it into a test commands and tried to deconstruct it piece by piece, but I can't figure out the problem. I can get it to work only after removing a unusually large portion of the code. This is my biggest command in the game, and I was hoping to add onto it for elemental weaknesses, loot drops, and possibly other ideas, but what I'm understanding from it so far is that deepbot isn't liking overly large commands.

6
You guys are gods, keep up the great job. I'm dabbling in creating a RPG within my chat, and this helps greatly.

Was going to have multiple areas for viewers to grind, each with a cooldown. But giving them all personal cooldowns is so much better.

7
Closed Beta Applications / Re: Closed Beta Applications Phase 2 - Now Open
« on: February 28, 2016, 05:07:52 AM »
1. Another streamer.
2. Ryswick
3. Robowick
4. Everyday, usually at 10AM-3PM, and 10PM-whenever I get tired.
5. No.
6. Varies greatly usually always under 10.
7. No.

I somehow accidentally doubled my donation of $10.

System Edit : Application Accepted. Install complete. Thanks for the support!

Pages: [1]