Search found 4566 matches

by Bearbear76
Fri Jun 19, 2020 11:07
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 5011

Re: Lua chatbox

Is this works in theory ?Screenshot_20200619-165330.png <!> match1 = string.match(..cname, "^Aos") <-- "..cname" would give you an error, you don't need the ".." part I would also recommend using ":" instead of "." cname:match("^Aos") -- Is the same as string.match(cname, "^Aos") Basically the ":" ...
by Bearbear76
Fri Jun 19, 2020 10:18
Forum: Plug-In Discussion
Topic: How can I make a notification recommend a building to a player in Lua?
Replies: 12
Views: 1355

Re: How can I make a notification recommend a building to a player in Lua?

rjroldan1 wrote:
Fri Jun 19, 2020 10:17
Ølsken wrote:
Fri Jun 19, 2020 10:16
rjroldan1 wrote:
Fri Jun 19, 2020 10:09
Is these are same as json "meta"{} ?
Classes?
I mean meta tags?
Ah metatables?

I'll explain in the chatbox
by Bearbear76
Fri Jun 19, 2020 10:16
Forum: Plug-In Discussion
Topic: How can I make a notification recommend a building to a player in Lua?
Replies: 12
Views: 1355

Re: How can I make a notification recommend a building to a player in Lua?

rjroldan1 wrote:
Fri Jun 19, 2020 10:09
Is these are same as json "meta"{} ?
Classes?
by Bearbear76
Fri Jun 19, 2020 10:15
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 5011

Re: Lua chatbox

The usage of script:event() is bit wrong so I'll explain it. Lua ( example_script.lua ): function script:event(x, y, level, event) if event == Script.EVENT_PLACED then <...> end end First you need to use event == [ event ] :P I see on your script (image) in luacheck linting post https://forum.theot...
by Bearbear76
Fri Jun 19, 2020 10:07
Forum: Smalltalk
Topic: plugin creators
Replies: 8
Views: 946

Re: plugin creators

Apparently no one uses the PCW
by Bearbear76
Fri Jun 19, 2020 10:04
Forum: Plug-In Discussion
Topic: How can I make a notification recommend a building to a player in Lua?
Replies: 12
Views: 1355

Re: How can I make a notification recommend a building to a player in Lua?

foo , bar are usually used to replace "something" in examples. Meaning it can be anything it's just a placeholder. Class example in Lua. local foo = {} function foo.new() local self = setmetatable({}, {__index = foo}) self.bar = 12 return self end function foo:print_bar() print(self.bar) end return...
by Bearbear76
Fri Jun 19, 2020 9:55
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 5011

Re: Lua chatbox

The usage of script:event() is bit wrong so I'll explain it. Lua ( example_script.lua ): function script:event(x, y, level, event) if event == Script.EVENT_PLACED then <...> end end First you need to use event == [ event ] :P Also you can only use events to drafts that are attached to the script. JS...
by Bearbear76
Thu Jun 18, 2020 15:18
Forum: Plug-In Discussion
Topic: How to make the background of a picture to be transparent?
Replies: 6
Views: 696

Re: How to make the background of a picture to be transparent?

I create a picture for plugin using drawing on windows 10. But if I download the picture,its background is black. I want it to be transparent. Is there anyway I can do it? Or I should change to another software to draw? ps:how to post picture and files on this forum? How to upload images: https://f...
by Bearbear76
Thu Jun 18, 2020 13:41
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 5011

Re: Lua chatbox

How to use City.earnMoney(amount, x, y, showOverlay, budgetItem) In order to use City.earnMoney() in the first place your script would need to be privileged JSON : "id": "$script", "type": "script", "script": "example.lua", "privileged": [privilege key] // <-- You need this to use this function Note...
by Bearbear76
Thu Jun 18, 2020 12:22
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 5011

Lua chatbox

A place to ask and share stuff about Lua!

Rules:
  • Must be about Lua, we have a general chatbox for other stuff.
  • Be nice to each other!
by Bearbear76
Thu Jun 18, 2020 11:07
Forum: Lua Scripting
Topic: Drawing basics
Replies: 24
Views: 1476

Re: Drawing basics

My bad, use script:earlyTap().
It should work!
by Bearbear76
Thu Jun 18, 2020 10:11
Forum: Lua Scripting
Topic: Drawing basics
Replies: 24
Views: 1476

Re: Drawing basics

rjroldan1 wrote:
Thu Jun 18, 2020 9:57

...
I have some problem with function scrip:tap() the return false there doesn't work in me and still hitting the building info behind, or is there any problem with return false when the tap sensitivity is near at game UI?
That's weird should work can you show the code for that?
by Bearbear76
Wed Jun 17, 2020 23:36
Forum: Problems and Errors (bugs)
Topic: 1881
Replies: 2
Views: 919

Re: 1881

Looks like some typo :lol:
by Bearbear76
Wed Jun 17, 2020 23:33
Forum: Smalltalk
Topic: It's me, Matison. Hello everyone.
Replies: 11
Views: 1237

Re: It's me, Matison. Hello everyone.

Hey Matison nice to see you again (even if its a explanation post)

Did people hate you? I cant remember someone saying they hated you, but maybe I just forgot since it was a while ago.
by Bearbear76
Tue Jun 16, 2020 0:12
Forum: Showcase
Topic: My tram line prop
Replies: 10
Views: 4944

Re: My tram line prop

Ironic
by Bearbear76
Mon Jun 15, 2020 23:37
Forum: Smalltalk
Topic: Youtube Channel Out!
Replies: 2
Views: 812

Re: Youtube Channel Out!

Very nice videos!
by Bearbear76
Sun Jun 14, 2020 11:07
Forum: Smalltalk
Topic: User name with color
Replies: 8
Views: 816

Re: User name with color

Maybe its a moderator thing :?
by Bearbear76
Sun Jun 14, 2020 9:11
Forum: Smalltalk
Topic: User name with color
Replies: 8
Views: 816

Re: User name with color

Screenshot_20200614-161039_Chrome.jpg
by Bearbear76
Sun Jun 14, 2020 9:09
Forum: Smalltalk
Topic: garbage collection
Replies: 5
Views: 896

Re: garbage collection

Bookeric wrote:
Sun Jun 14, 2020 9:05
RayXP wrote:
Sat Jun 13, 2020 6:05
Cool! Someone made an AT&T Stadium plugin
what?
He's probably trying to say AT&T is trash

Go to advanced search