RE: RE: Having problems with the code
You are viewing a single comment's thread from:

RE: Having problems with the code

digi3d(48)
Published in
#game
Words
52
Reading
1 min
Listen
Play
6y

First, thank you for looking and reaching out. I did work more on the code and temporarily removed the if/else if/else statements that I want to look for tallyMark and tally for when to post specific events.

tally is in the hud section and tallyMark is in the script section.

<span id="hud">
   <p id="you">
<span id="name" class="you"></span> 
<span id="class" class="you"></span> 
<span id="home" class="you"></span>
<span id="tally" class="you" style="display:block"></span> 
<span id="mana" class="you"></span> 
<span id="health" class="you"></span>
</p> 
<p id="stats">
<span id="strength" class="you"></span>/
<span id="intel" class="you"></span>/
<span id="skills" class="you"></span>/
<span id="fear" class="you"></span>/
<span id="eyes" class="you"></span>
</p>

[...]

   let tallyMark = '';
   document.getElementById('tally').innerHTML += tallyMark;
if (tallyMark == 12) {
document.getElementById('output').innerHTML += monstors[rnd26].monsterType;
 

Screenshots:
https://lbryplayer.xyz/content/claims/Screenshot_20200421-171237/4c0bcf541f24832f9aebe9d6fa640d8a9878e3de/stream

https://lbryplayer.xyz/content/claims/Screenshot_20200421-171248/e1577eaf1a24de693044bbbfa0e2e587e8927d73/stream