Make two variables: Custom boss hp, and custom boss hp digit count. If the custom boss hp variable is less than 0.01, then you kill the boss.īut, what if you wanted something much bigger? Like, clicker heroes level hp? I mean, we're talking googol, or 1.000e1000 and stuff. Now, you should have the total damage that was dealt to the boss, and you decrease the hp of custom boss variable by your local damage dealt variable. Finally, depending on the player's strength effect, also change the local variable. So just tons of "if" blocks, that change the damage dealt. If they have a stone sword, change it by 5. Now, if the player has a wooden sword in his/her mainhand, change the variable by 4. In that procedure, make a new local variable and name it "damage dealt". When the boss is hit, it'll do another procedure. And then when your boss spawns, you have to set the hp variable to whatever. If the hp is somewhere less than 2 billion or so, then you can just set this variable to the total number of hp you want your custom boss to have. So first, make a new variable called "HP of custom boss" or something like that. Ok, so here's the extremely advanced script:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |