Search found 4566 matches

by Bearbear76
Wed Jun 24, 2020 23:38
Forum: Smalltalk
Topic: Welcome to Dreamhouse Apartments!
Replies: 19
Views: 1912

Re: Welcome to Dreamhouse Apartments!

I want to live in block B bldg 4 5th floor room 12
by Bearbear76
Tue Jun 23, 2020 12:23
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 4677

Re: Lua chatbox

Anyway how can i make Building only buildable when Region name returns true? City.getRegionName() returns a string if the city is in a region and nil if not. Lua : if City.getRegionName() then -- Passes if the city is in a region (any) end Now we have something to determine if the City is in a regi...
by Bearbear76
Mon Jun 22, 2020 23:28
Forum: Smalltalk
Topic: TheoTown Forum Chatbox
Replies: 10180
Views: 499293

Re: TheoTown Forum Chatbox

tokoloko wrote:
Mon Jun 22, 2020 20:55
Hello everyone :)
Wow haven't seen you in forever. :lol:
by Bearbear76
Mon Jun 22, 2020 15:49
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 4677

Re: Lua chatbox

rjroldan1 wrote:
Mon Jun 22, 2020 15:02
Ohh wait @Ølsken what's the role of "local number = 12" there based on my sent script?
City
by Bearbear76
Mon Jun 22, 2020 14:19
Forum: Plug-In Discussion
Topic: Thank you
Replies: 2
Views: 611

Re: Thank you

Hmm I guess I will move this to plugin discussions as it doesn't fit inside documentation.
by Bearbear76
Mon Jun 22, 2020 13:52
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 4677

Re: Lua chatbox

Long? Can you show the code? Lets go PM For documentation purposes. I will write it here. Don't worry I won't leak any info. I see that you're using a lot of elseif . That's going to clutter the code try something more clean ;) This does the same thing: local number = 12 local character local alpha...
by Bearbear76
Mon Jun 22, 2020 13:44
Forum: Plug-In Discussion
Topic: pls translate -Player
Replies: 6
Views: 732

Re: pls translate -Player

820201619 -> https 232323 -> www 1315442 -> moddb 31513 -> com 1315419 -> mods 415139141209150413154 -> dominationmod 91317519 -> images 2215132518 -> ?? I think it's A → 0, B → 1, C → 2 since there's a sequence "91504" And there's no 50th letter in the alphabet so the zero is isolated with makes it A
by Bearbear76
Mon Jun 22, 2020 12:46
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 4677

Re: Lua chatbox

Long? Can you show the code?
by Bearbear76
Mon Jun 22, 2020 11:06
Forum: Plug-In Discussion
Topic: pls translate -Player
Replies: 6
Views: 732

Re: pls translate -Player

The rest I have no idea.
by Bearbear76
Mon Jun 22, 2020 11:05
Forum: Plug-In Discussion
Topic: pls translate -Player
Replies: 6
Views: 732

Re: pls translate -Player

Morse code --> text AFTER PHILIPPINE INDEPENDENCE PROJECTS SOMETHING FLYING IN THEOTOWN. THIS IS AFTER THE BIG ONE.HI#####EIGHT HUNDRED TWENTY MILLION TWO HUNDRED ONE THOUSAND SIX HUNDRED NINETEEN# #TWO HUNDRED THIRTY-TWO THOUSAND THREE HUNDRED TWENTY-THREE#ONE MILLION THREE HUNDRED FIFTEEN THOUSAN...
by Bearbear76
Mon Jun 22, 2020 11:01
Forum: Smalltalk
Topic: Welcome to Dreamhouse Apartments!
Replies: 19
Views: 1912

Re: Welcome to Dreamhouse Apartments!

Too dense for me I want a garden.
by Bearbear76
Sun Jun 21, 2020 23:27
Forum: Smalltalk
Topic: TheoTown Forum Chatbox
Replies: 10180
Views: 499293

Re: TheoTown Forum Chatbox

CommanderABab wrote:
Sun Jun 21, 2020 15:53
You should review your video of the takeapart.
Took a photo before taking it apart, but I can't find anywhere that is not screwed :?
by Bearbear76
Sun Jun 21, 2020 15:54
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 4677

Re: Lua chatbox

Hmm a lot of misplaced local s. Local variables are local to their block no one can access them outside. These are the basic blocks: if condition then -- If block end for i = 1, 100 do -- For block end while condition do -- While block end function foo() -- Function block end For example: local a = ...
by Bearbear76
Sun Jun 21, 2020 15:34
Forum: Smalltalk
Topic: TheoTown Forum Chatbox
Replies: 10180
Views: 499293

Re: TheoTown Forum Chatbox

I took apart my PC to see if there was any loose cables and I couldnt find any but now I have a different problem I have 4 screws left... :?
by Bearbear76
Sun Jun 21, 2020 12:56
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 4677

Re: Lua chatbox

distian wrote:
Sun Jun 21, 2020 12:49
Wait, what the rank and new lua functions is available on older version than 1884? :bt
yes, If I understood correctly.
by Bearbear76
Sun Jun 21, 2020 12:52
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 4677

Re: Lua chatbox

So if i don't include "_," thing, my variables turns to global variable? Anything that doesn't have local in front of it is a global value in Lua. _ is just a variable name like rank since Lua allows alphanumeric and _ for variable names (cannot start with a number though) _ in Lua is a common plac...
by Bearbear76
Sun Jun 21, 2020 12:12
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 4677

Re: Lua chatbox

Still not work @Ølsken Is the flag an animation or static? If static you forgot getFrame([ number ]) . So flag1 = Draft.getDraft("Aosflag4"):getFrame(1) -- or Drawing.drawImage(flag1:getFrame(1), x, y) An animation it works well if i exclude the rank condition but i dont want it to be like that Ah ...
by Bearbear76
Sun Jun 21, 2020 12:02
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 4677

Re: Lua chatbox

rjroldan1 wrote:
Sun Jun 21, 2020 11:46
Still not work @Ølsken
Is the flag an animated or static?
If static you forgotgetFrame([number]).

So

Code: Select all

flag1 = Draft.getDraft("Aosflag4"):getFrame(1)
-- or
Drawing.drawImage(flag1:getFrame(1), x, y)
by Bearbear76
Fri Jun 19, 2020 11:46
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 4677

Re: Lua chatbox

Lua metatables: Lua tables have more functionality than just storing values. they can also be modified via metatables. For example: let's say you want to count the number of elements in a table. local foo = {1, 2, 3, 4, 5} print(#foo) --- Outputs: 5 You can get the number of elements using the leng...
by Bearbear76
Fri Jun 19, 2020 11:35
Forum: Lua Scripting
Topic: Lua chatbox
Replies: 141
Views: 4677

Re: Lua chatbox

What's the function of "." ? "." would mean find the following inside the table for example: local foo = {"Olsken", x = 12, hello = function(t) print("x value of this table is: "..t.x) end} Inside foo we have 3 elements, a string a value and a function, we can access the values which have a key: (k...

Go to advanced search