Blockland Forums > Help
How to make a centerprint counter when a sword hits a brick?
Pages: (1/1)
Quote Story:
So what I want is when the default sword hits a brick, a centerprint would show up and say something like "Dirt: 100" and go down to 0.
and then after, the bricks is killed
Now the only thing I could think of is
0 OnSwordHit - Client - Centerprint - Dirt: 100
1 OnSwordhit - self - ToggleEventThing - 0 1 2
2 OnSwordHit - Client - Centerprint - Dirt: 99
3 OnSwordhit - self - ToggleEventThing - 2 3 4
and so on.
(Not really optimal since it takes uselessly long)
Is there any other way to do it?
I know something like variables for VCE but I never really knew how to use it
Gen. Hothauser:
Definitely use VCE.
Do this.
--- Code: ---[0] [Onswordhit] [Self] [VCE_Ifvariable] [Hits] [==] [0] [2 4]
[1] [Onswordhit] [Client] [Centerprint] [<var:br:Hits>/100]
[2] [Onvariablefalse] [Self] [VCE_Modvariable] [Hits] [Subtract] [1]
[3] [Onvariabletrue] [Self] [Fakekillbrick] [-1]
[4] [Onvariabletrue] [Client] [Centerprint] [You destroyed this brick]
--- End code ---
Pages: (1/1)