我想制作一个金币系统该怎么办呢?
我想制作一个金币系统该怎么办呢?
我是一个新手,完全没有代码基础,想制作金币形态,尝试了ai教的代码,无法使用
-
kerkersklave
- Explorer At Heart

- Posts: 709
- Joined: Sun Jul 06, 2014 2:11 pm
- Gender: Male
- Sexual Orientation: Open to new ideas!
- I am a: Slave
Re: 我想制作一个金币系统该怎么办呢?
Is this some kind of spam?
- PlayfulGuy
- Experimentor

- Posts: 1068
- Joined: Sat Jul 07, 2012 10:08 pm
- Gender: Male
- Sexual Orientation: Bisexual/Bi-Curious
- I am a: Switch
- Dom/me(s): No domme
- Sub/Slave(s): No sub
- Location: British Columbia, Canada
Re: 我想制作一个金币系统该怎么办呢?
It's hard to tell.
Translating the subject line using Google it's asking how to make a "gold coin system".
The description says they tried some AI generated code but it didn't work.
Could be a legit question about implementing something in an EOS tease, or not.
We'll need a Chinese speaker to tackle this one...
PG
I'd rather be stroking!
New tease downloader for GuideMe with EOS support.
Downloads of teases I've converted to GuideMe
New tease downloader for GuideMe with EOS support.
Downloads of teases I've converted to GuideMe
- StellaRack
- Explorer At Heart

- Posts: 228
- Joined: Wed Jan 03, 2024 9:13 pm
- Gender: Femboy
- Sexual Orientation: Straight
- I am a: Submissive
Re: 我想制作一个金币系统该怎么办呢?
I'll bite. I don't speak Chinese. So I will leave in English
To make a coin system there is 3 key bits of code you need
Setup
Under options -> Init Script
You would want to add this
Start coins at 0. Will reset each time you load the tease
To give coins
add an "Eval" action
Note that the number is how much to add. It could be any number
Check for coins
To react to how many coins you have add a "If" action
This will do the "then" actions only if you have 10+ coins
It will do the "else" actions if have 9 or less coins
Show how many coins you have
In a "Say" action
Press the "<>" button
Put in "coins"
This will be replaced with the number of coins
In a "Choice" action
at the bottom if you tick "Visible"
You can show a button only if you have coins
EG only show if you have 3+ coins
Also
> < >= <= all work.
So you can check you have less then a number of coins if needed
I have made a quick demo project with a coin system added
To make a coin system there is 3 key bits of code you need
Setup
Under options -> Init Script
You would want to add this
Start coins at 0. Will reset each time you load the tease
Code: Select all
var coins = 0;add an "Eval" action
Note that the number is how much to add. It could be any number
Code: Select all
coins = coins + 1To react to how many coins you have add a "If" action
This will do the "then" actions only if you have 10+ coins
It will do the "else" actions if have 9 or less coins
Code: Select all
coins >= 10In a "Say" action
Press the "<>" button
Put in "coins"
This will be replaced with the number of coins
In a "Choice" action
at the bottom if you tick "Visible"
You can show a button only if you have coins
EG only show if you have 3+ coins
Code: Select all
coins >= 3> < >= <= all work.
So you can check you have less then a number of coins if needed
I have made a quick demo project with a coin system added

