Wednesday, June 8, 2022

Create Inventory in Harlowe | Twine (Explain in detail + come and take Code Here)

 In this tutorial, including

-How to create Inventory -How to Bold over words -How to Coloring over words Explain in detail

So, hope you all learning new things through this tutorial.

Code and Story script :

(set:$Blood to 100)(set:$Money to 100)(set:$Bullet to 100) Currently, you have <b>(text-colour:yellow)[''Blood=$Blood''] , (text-colour:yellow)[''Money=$Money''] , (text-colour:yellow)[''Bullet=$Bullet'']</b> Now, go and find Zoombie! [[Ok, let me go]]

Now, you are seeing a Zoombie in the garden. He is getting closer to you! Do you want to shoot with [[Gun]] ?

(set:$Bullet to ($Bullet-10)) <b>(text-colour:yellow)[''Blood=$Blood''] , (text-colour:yellow)[''Money=$Money''] , (text-colour:yellow)[''Bullet=$Bullet'']</b> You have already used 10 Bullets to shoot that Zoombie! You wanna go to shop to fill ? Go to [[Shop]] [[No]]

You have now <b>(text-colour:yellow)[''Blood=$Blood''] , (text-colour:yellow)[''Money=$Money''] , (text-colour:yellow)[''Bullet=$Bullet'']</b> Available these in this Shop : (if:$Money>=10)[[Buy 1 Blood with 10$]] (if:$Money>=10)[[Buy 1 Bullet with 10$]]

(set:$Blood to ($Blood+1)) (set:$Money to ($Money-10)) (Goto:"Shop")

(set:$Bullet to ($Bullet+1)) (set:$Money to ($Money-10)) (Goto:"Shop")

No comments: