You are viewing a single comment's thread from:
RE: Welcome to the IBT Development Zone - Player Vs. Player Trial 3 - Games on Steemit
Ok @doughtaker I have made the major code adjustments, just need to get these mechanics right..have I interpreted correctly?
!ibtbattle
Welcome New Player
![](https://steemitimages.com/0x0/https://image.ibb.co/bFsGFf/wizardwelcome.gif)
Please choose your permanent class
- reply with !warrior, !wizard or !archer
!archer
You chose wisely
![](https://steemitimages.com/0x0/https://image.ibb.co/bFsGFf/wizardwelcome.gif)
A default archer will be assigned to you. Should you wish a custom build character simply send 1 Steem to @lordnigel with a Memo stating:
(1) Your preferred character name (steemit name is default)
(2) Your Characters Gender
(3) Spefic features you would like to appear on your character
....If you do ask for a custom char in a few days your default character will be updated. In the meantime you can play by loading credits. To load credits simply transfer at least 0.01 Steem or SBD to @wizardzap with exact memo:for ibtbattle
Type !ibtbattle for your first fight
!ibtbattle
PREPARE FOR BATTLE
Vs. ![](https://steemitimages.com/0x0/https://image.ibb.co/kXGyT0/warriorlevel1.gif)
Available credits: 10
Player total XP is:0
Your progress to the next level:0.00%
lordnigel Lvl 0 Vs. testuser Lvl 0
...Battle in progress, chance of success is:45%
BATTLE RESULTS
You won the fight!
Attacker XP gained: 56
Defender XP gained: 0
PREPARE FOR BATTLE
Vs. ![](https://steemitimages.com/0x0/https://image.ibb.co/kXGyT0/warriorlevel1.gif)
Available credits: 9
Player total XP is:56
Your progress to the next level:56.00%
lordnigel Lvl 0 Vs. testuser Lvl 0
...Battle in progress, chance of success is:45%
BATTLE RESULTS
You lost the fight!
Attacker XP gained: 0
Defender XP gained: 56
is this correct @doughtaker? you want the defender to get this high amount or 1/3 of this. Right now I'm assuming this is correct...
1/3 of that amount. What you have displayed is the defender's correct base value, which must then be divided by 3 every time.
PREPARE FOR BATTLE
Vs. ![](https://steemitimages.com/0x0/https://image.ibb.co/kXGyT0/warriorlevel1.gif)
Available credits: 8
Player total XP is:56
Your progress to the next level:56.00%
lordnigel Lvl 0 Vs. testuser Lvl 0
...Battle in progress, chance of success is:45%
BATTLE RESULTS
You won the fight!
Attacker XP gained: 56
Defender XP gained: 0
PREPARE FOR BATTLE
Vs. ![](https://steemitimages.com/0x0/https://image.ibb.co/kXGyT0/warriorlevel1.gif)
Available credits: 7
Player total XP is:112
Your progress to the next level:37.33%
lordnigel Lvl 1 Vs. testuser Lvl 0
...Battle in progress, chance of success is:55%
Hi Doughtaker is this progress indicator correct - you prefer is to say you have 112 XP or the required 300XP which equals 37.3%...Do you think it would look better if I also did a line that stated your next level up at XX XP?
I think adding that line "your next level up at XXX XP" is a good idea.
The 37.3% is acceptable, I was thinking more along the lines that it was 12/200 = 6%, but your method is not wrong either.
In fact, now that I think about it, the best way to avoid any chance of confusion would be to swap out the progress line for the "Your next level up is at XXX XP" line.
BATTLE RESULTS
You lost the fight!
Attacker XP gained: 0
Defender XP gained: 65
Defender base XP is correct. But as I mentioned before, I want that number divided by 3 to get the defender's final xp award.
Looks like we now have the correct xp base values for all winning players (even in ties), which is good. But the defender's base value must always be divided by 3 to get their final award. In the case of a tie, you take both players' base values and divide them both by 3 (which the bot did correctly here), then you take the defender's result and divide by 3 again to get their final result.