Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Count Multiple in Scripting

12 years ago

Hey guys it's me again and I want to know how do you add in the count multiple option when scripting? In the game I am making you have an option to collect taxes from your people. "%WEALTH := %POPULATION + 5" So how do I make it so that EVERYTIME you click on that link it will give you money and not just the first time?

Count Multiple in Scripting

12 years ago

Sounds like you have to Check the Count Multiple Box on the Link. Let me know if that's not the problem and I'll help more...

Count Multiple in Scripting

12 years ago

I do not understand the only place I know that there is a Count Multiple Box to check is on the variables page, but I am using scripts.

Count Multiple in Scripting

12 years ago

On any Link you have the ' + ' & the ' := '

When using the ' + ' Variable Changes, you have a 'Count Multiple' Option.

When using the ' := ' Link Script, it will always run the Script when the Link is clicked, so you don't need to set anything.

Count Multiple in Scripting

12 years ago

Chage it to:

%WEALTH := %WEALTH + %POPULATION + 5

Count Multiple in Scripting

12 years ago

Ah, nice catch Killa :)

Count Multiple in Scripting

12 years ago

This

Count Multiple in Scripting

12 years ago

Thank you Killa that has been bothering me all day :)

Count Multiple in Scripting

12 years ago

No problem.