Scripts / Earn gold, what is wrong ?

Author
Message
lotgd
3D Media Maker
14
Years of Service
User Offline
Joined: 2nd Apr 2010
Location: italy
Posted: 28th Mar 2017 10:30 Edited at: 6th Apr 2017 16:11
adapting the script smallg "reward_system" what is wrong ?

i want to earn gold

this is ok


My Pc Specs : Win10pro64bit /Msi z97 / i74770k / gtx1070 / 16gb ram / SSD 850Evo
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 28th Mar 2017 10:52
You need to provide a bit more info than "this is wrong", what is wrong with it? what is it doing? what is it not doing? Are there error messages? Does it just not add gold, or does it not display gold? We can't help if we don't know the problem.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
lotgd
3D Media Maker
14
Years of Service
User Offline
Joined: 2nd Apr 2010
Location: italy
Posted: 28th Mar 2017 11:00
I have some problems with English
the entity does not disappear, and therefore do not receive gold

My Pc Specs : Win10pro64bit /Msi z97 / i74770k / gtx1070 / 16gb ram / SSD 850Evo
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 28th Mar 2017 15:17
What is the script called? You need to make sure the function names match the script name.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
lotgd
3D Media Maker
14
Years of Service
User Offline
Joined: 2nd Apr 2010
Location: italy
Posted: 28th Mar 2017 16:24 Edited at: 28th Mar 2017 16:24
I mistyped the name of the script ...
collecgold.lua
I had forgotten the "t"

I was losing the brain, did not understand what was wrong!
sorry for the inconvenience!

Thank you for help!
This is the result

My Pc Specs : Win10pro64bit /Msi z97 / i74770k / gtx1070 / 16gb ram / SSD 850Evo
lotgd
3D Media Maker
14
Years of Service
User Offline
Joined: 2nd Apr 2010
Location: italy
Posted: 28th Mar 2017 18:25
why is this not possible?

if gold >= 100
gold = gold - 100


if gold > 99
gold = gold - 100

My Pc Specs : Win10pro64bit /Msi z97 / i74770k / gtx1070 / 16gb ram / SSD 850Evo
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 28th Mar 2017 18:59
Missing 'then' ? i.e.

if gold >= 100 then gold = gold - 100 end


Been there, done that, got all the T-Shirts!
PM
lotgd
3D Media Maker
14
Years of Service
User Offline
Joined: 2nd Apr 2010
Location: italy
Posted: 28th Mar 2017 19:32
Thank you AmenMoses, i have forgot one end

My Pc Specs : Win10pro64bit /Msi z97 / i74770k / gtx1070 / 16gb ram / SSD 850Evo
lotgd
3D Media Maker
14
Years of Service
User Offline
Joined: 2nd Apr 2010
Location: italy
Posted: 2nd Apr 2017 20:35 Edited at: 6th Apr 2017 16:11
I have another problem, how can I carry points to the next level

I tried as well, but the next level is reset to 0


My Pc Specs : Win10pro64bit /Msi z97 / i74770k / gtx1070 / 16gb ram / SSD 850Evo
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Apr 2017 12:29
i think that should be fine, it's likely you have another script somewhere resetting the g_points at the top of it also?
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
lotgd
3D Media Maker
14
Years of Service
User Offline
Joined: 2nd Apr 2010
Location: italy
Posted: 3rd Apr 2017 16:12 Edited at: 6th Apr 2017 16:12


i have this for the coin, and others 2 script for hud, without recalls.

My Pc Specs : Win10pro64bit /Msi z97 / i74770k / gtx1070 / 16gb ram / SSD 850Evo
lotgd
3D Media Maker
14
Years of Service
User Offline
Joined: 2nd Apr 2010
Location: italy
Posted: 4th Apr 2017 21:03
I also tried it with a clean level, but still does not work. You would know someone tell me why? always returns 0

My Pc Specs : Win10pro64bit /Msi z97 / i74770k / gtx1070 / 16gb ram / SSD 850Evo

Login to post a reply

Server time is: 2024-04-26 03:25:34
Your offset time is: 2024-04-26 03:25:34