Mg3094066 wrote: 20 Jan 2019, 23:21
this allows you to modify the game? like adding new options and that things?
Maybe. It's basically more complex json that has more advanced options and doesn't describe buildings. You can use it to make a toast (basically a text that pops up, but isn't like ingame notifications). I'm kind of getting mixed up with fun functionality, so you should talk to someone else.
Edit: This has hardly any info... so you should probably just skip this. But you could read it if you want to.
I just love the DOPE-amine you get after completing a plugin!
Why do some functions not show changes? i used the road condition, then built the road deco, so i use isRoadDeco, but it didn't get any changes. other cases, i put some numbers in x and y, but that didn't happen any actions.
distian wrote: 07 Jun 2020, 11:49
Why do some functions not show changes? i used the road condition, then built the road deco, so i use isRoadDeco, but it didn't get any changes. other cases, i put some numbers in x and y, but that didn't happen any actions.
isRoadDeco() will return a boolean (true/false) value. It won't change anything is the program it's more of a "checking function". Post the code here and I can give you some advice.
Ølsken wrote: 07 Jun 2020, 14:06isRoadDeco() will return a boolean (true/false) value. It won't change anything is the program it's more of a "checking function". Post the code here and I can give you some advice.
Yes, i have seen all values or return of function in doc website. Boolean, number, or string.
function script:click(x,y)
if Tile.isRoadDeco == true and Tile.getTraffic >= 0.3 then
stuff
end
When i'm just use getTraffic condition, the script is work, but when i put the road deco, isn't work. What should i do when road deco in my road, then just use getTraffic, lua can't detection anything.