Flamingo Hackathon

 

Greetings RPG and crypto lovers!

Today I´d like to share 2 awesome self-made plugins with you. I made them especially for the Flamingo Hackathon https://medium.com/flamingo-finance/earn-1-000-gas-in-flamingo-finances-dashboard-athon-9b68f758535e and everyone can use them as they see fit.

 

CryptoFlamingo v.1.0

- Made by FrankCoin -

 

Introduction

The first plugin fetches and displays various cryptocurrency prices from the decentralized exchange 'flamingo.finance' via API calls. It creates an extra window and even compares the current prices with yesterday´s prices. That´s why some prices are red (lower price than yesterday) or green. The plugin is making use

of game variables, which contain different time values. That means you would need to have a Time System plugin, for example "Irina_RealTimeSystem". If you don´t have one, then you would need to manually set up the values. The date and time is shown in UTC time.

 

This plugin also displays a Cancel Button on screen. When the player presses the Cancel Button, then the crypto prices window will close (of course ESC is

also working).

 

Screenshots

- Easy to setup with a clear help & description

- A picture says more than 1000 words


 

How to Use

1. Download and save the plugin into your "plugins" folder. It would be best to also download the "Cancel Button" and save into your "system" folder.

2. Open the "Plugin Manager" and select the plugin.

3. Edit the parameters to fit your game.

Example:

'Year Variable ID' needs the variable which stores the year. By default it´s game variable 100. However, if your Time System Plugin should use, let´s say

variable 10 to store the year, then you need to select 10.

Please select a fitting image from your img/system folder for the Cancel Button and change the x/y position accordingly. The default value is meant for a 1280x720 resolution.

 

4. Use the Plugin call 'ShowCryptoPrices' (without the ' strokes of course). It can take some time to fetch and display the prices.

 

 

- As you can see, a simple plugin call "ShowCryptoPrices" is enough

 

Demo

https://worldofelements.itch.io/flamingocrypto

 

Download

Plugin:

https://neofs.neobox.world/2JjTvfTtcTJYu7Xjk44D4hCMkc61cRz3wXqaknAEsWK4/3k2ksW4JfWrY9j4C3AH9rbQ2JBtQm3mYYweZpFAg9D9H

 

CancelButton: https://neofs.neobox.world/BjygYzhH7kw9QH8EmAK9nYDq5n7WjaByqhRd1DfuTEsp/E3R9QNJM9RWaigw2UJnNxq8BQvWyuGf3uNwVXHdfCipN

 

 

Terms and Credits

Can be used in all commercial and non-commercial projects/games. You can edit and make changes as you want. You don´t even need to credit me.

 

CryptoFlamingoSpecific v.1.0

- Made by FrankCoin -

 

Introduction

The second plugin is working like the first one. It fetches and displays various cryptocurrency prices from the decentralized exchange "flamingo.finance" via API calls. It also creates an extra window, but additionally creates a chart in that window. The chart is showing the monthly movement of a single cryptocurrency, for example Bitcoin. To be more specific: It is a linechart which is showing prices from today/7/14/21/28 days ago.

 

Just like the first plugin, it is making use of game variables, which contain different time values. That means you would need to have a Time System plugin, for example "Irina_RealTimeSystem". If you don´t have one, then you would need to manually set up the values. The date and time is shown in UTC time.

 

This plugin also displays a Cancel Button on screen. When the player presses the Cancel Button, then the crypto prices window will close (of course ESC is

also working). You can change the x/y coordinates and even the image of that button.

 

Screenshots

- Needs some more setup, but still easy to do (and a lot of things are just like you did in the first plugin)

- A picture says more than 1000 words (again)

 

How to Use

1. Download and save the plugin into your "plugins" folder. It would be best to also download the "Cancel Button" and save into your "system" folder.

You would also need to download the "FlamingoLogo" image and save into your "system" folder. Of course you could use another image instead, but it needs to be setup in the Plugin Parameters.

2. Open the "Plugin Manager" and select the plugin.

3. Edit the parameters to fit your game.

Example:

'Year Variable ID' needs the variable which stores the year. By default it´s game variable 100. However, if your Time System Plugin should use, let´s say

variable 10 to store the year, then you need to select 10.

Please select a fitting image from your img/system folder for the Cancel Button and change the x/y position accordingly. The default value is meant for a 1280x720 resolution.

Please select a fitting image for the Flamingo Logo. If you don´t choose another image/or you didn´t save the FlamingoLogo into your "system" folder, you´ll get an error message. However, unlike the Cancel Button you won´t be able to change the x/y position of the Flamingo Logo image.

 

IMPORTANT: You need to "reserve" 5 additional game variables, as you can see in one of the screenshots: "Date Variable Start ID" and "Week 1-5 Variable". That´s because it´s storing information in those variables to create a monthly chart.

 

 

4. Use the Plugin call 'ShowSpecificCryptoPrice xyz' (without the ' strokes of course) in an event. Instead of "xyz" insert the cryptocurrency symbol.

Example: ShowSpecificCryptoPrice GAS // ShowSpecificCryptoPrice fWBTC (for showing the Bitcoin price)

Use my first plugin or visit https://flamingo.finance/ to get the symbol for a supported cryptocurrency.

 

fW means flamingo wrapped, which makes a cryptocurrency to be used on another blockchain. In this case the Neo blockchain.

It can take some time to fetch and display the prices.

 

- As you can see, you can choose which specific cryptocurrency you want to "track". In my example there are only 5, but there are more of course.