April 18, 2024, 03:51:59 PM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Forum rules
-
please read before posting, it can save you a lot of time.
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
ItemMoney.Amount
« previous
next »
Pages: [
1
]
Print
Author
Topic: ItemMoney.Amount (Read 3230 times)
0 Members and 1 Guest are viewing this topic.
A.Y.
Lurker
Karma: 0
Offline
Gender:
Posts: 27
ItemMoney.Amount
«
on:
June 11, 2006, 10:16:24 AM »
I want to make the counter of money.
The hero goes and collects coins, or distributes them.
What I do incorrectly?
if //////////hero take money
{
(Game.TakeItem("penny"))
AMOUNT = ItemMoney.Amount + 1
}
else ///////hero drop money
{
(Game.DropItem("penny"))
AMOUNT = ItemMoney.Amount - 1
Logged
http://dtf.ru/person/info.php?id=5514¬ice_profile_changed=1
Mnemonic
WME developer
Administrator
Addicted to WME forum
Karma: 41
Offline
Gender:
Posts: 5683
Re: ItemMoney.Amount
«
Reply #1 on:
June 11, 2006, 12:21:55 PM »
Quote from: A.Y. on June 11, 2006, 10:16:24 AM
What I do incorrectly?
Um... everything?
I don't really get your code. Something like this is more like it:
var MoneyItem = Game.GetItem("penny");
MoneyItem.Amount = MoneyItem.Amount + 1;
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum.
A.Y.
Lurker
Karma: 0
Offline
Gender:
Posts: 27
Re: ItemMoney.Amount
«
Reply #2 on:
June 11, 2006, 02:39:36 PM »
What I do incorrectly?
Um... everything?
I so knew...)))
Thank.
Logged
http://dtf.ru/person/info.php?id=5514¬ice_profile_changed=1
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
ItemMoney.Amount