and special attacks

This commit is contained in:
Nicky Case 2019-07-18 10:45:01 -04:00
parent c943b2cf98
commit ce5e4ca7be
3 changed files with 40 additions and 3 deletions

View File

@ -92,11 +92,17 @@ music('battle', {volume:0.5});
bb({body:"special_a"});
```
[🗡](#act2h_attack) `_.SPECIAL_ATTACK="harm"; Game.OVERRIDE_CHOICE_LINE=true`
`Game.OVERRIDE_CHOICE_SPEAKER = "fear_harm"`
[💔](#act2h_attack) `_.SPECIAL_ATTACK="alone"; Game.OVERRIDE_CHOICE_LINE=true`
[](#act2h_attack) `_.SPECIAL_ATTACK="harm"; Game.OVERRIDE_CHOICE_LINE=true`
[👿](#act2h_attack) `_.SPECIAL_ATTACK="bad"; Game.OVERRIDE_CHOICE_LINE=true`
`Game.OVERRIDE_CHOICE_SPEAKER = "fear_alone"`
[](#act2h_attack) `_.SPECIAL_ATTACK="alone"; Game.OVERRIDE_CHOICE_LINE=true`
`Game.OVERRIDE_CHOICE_SPEAKER = "fear_bad"`
[](#act2h_attack) `_.SPECIAL_ATTACK="bad"; Game.OVERRIDE_CHOICE_LINE=true`
# act2h_attack

View File

@ -323,6 +323,15 @@ Game.executeText = function(line){
var speaker = line.match(regex)[1].trim();
var dialogue = line.match(regex)[2].trim();
// IF IT'S A SPECIAL ATTACK, SKIP ALL THIS SHIT
if(speaker=="fear_harm" || speaker=="fear_alone" || speaker=="fear_bad"){
Game.setTimeout(function(){
publish("hide_click_to_advance");
resolve(); // DONE WITH IT.
}, Game.TEXT_SPEED*7);
return;
}
// Add the bubble, with animation
var div = document.createElement("div");
Game.wordsDOM.appendChild(div);

View File

@ -953,6 +953,28 @@ DIALOGUEZ
#game_choices > div[speaker=h2]:hover{
color: #888;
}
#game_choices > div[speaker=fear_harm], #game_choices > div[speaker=fear_alone], #game_choices > div[speaker=fear_bad]{
background-size: 100%;
width:100px; height:100px;
padding: 0;
position: absolute;
margin-top: 25px;
}
#game_choices > div[speaker=fear_harm]{
background-image: url(../sprites/ui/fear_harm.png);
left:20px;
}
#game_choices > div[speaker=fear_alone]{
background-image: url(../sprites/ui/fear_alone.png);
left:130px;
}
#game_choices > div[speaker=fear_bad]{
background-image: url(../sprites/ui/fear_bad.png);
left:240px;
}
#game_choices > div[speaker=fear_harm]:hover, #game_choices > div[speaker=fear_alone]:hover, #game_choices > div[speaker=fear_bad]:hover{
margin-top: 22px;
}
/***********************************/
/***********************************/