Search found 4565 matches
- Wed Jun 24, 2020 23:38
- Forum: Smalltalk
- Topic: Welcome to Dreamhouse Apartments!
- Replies: 19
- Views: 2433
Re: Welcome to Dreamhouse Apartments!
I want to live in block B bldg 4 5th floor room 12
- Tue Jun 23, 2020 12:23
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 161
- Views: 9052
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...
- Mon Jun 22, 2020 23:28
- Forum: Smalltalk
- Topic: TheoTown Forum Chatbox
- Replies: 10703
- Views: 603885
- Mon Jun 22, 2020 15:49
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 161
- Views: 9052
- Mon Jun 22, 2020 14:19
- Forum: Plug-In Discussion
- Topic: Thank you
- Replies: 2
- Views: 650
Re: Thank you
Hmm I guess I will move this to plugin discussions as it doesn't fit inside documentation.
- Mon Jun 22, 2020 13:52
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 161
- Views: 9052
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...
- Mon Jun 22, 2020 13:44
- Forum: Plug-In Discussion
- Topic: pls translate -Player
- Replies: 6
- Views: 856
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
- Mon Jun 22, 2020 12:46
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 161
- Views: 9052
Re: Lua chatbox
Long? Can you show the code?
- Mon Jun 22, 2020 11:06
- Forum: Plug-In Discussion
- Topic: pls translate -Player
- Replies: 6
- Views: 856
Re: pls translate -Player
The rest I have no idea.
- Mon Jun 22, 2020 11:05
- Forum: Plug-In Discussion
- Topic: pls translate -Player
- Replies: 6
- Views: 856
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...
- Mon Jun 22, 2020 11:01
- Forum: Smalltalk
- Topic: Welcome to Dreamhouse Apartments!
- Replies: 19
- Views: 2433
Re: Welcome to Dreamhouse Apartments!
Too dense for me I want a garden.
- Sun Jun 21, 2020 23:27
- Forum: Smalltalk
- Topic: TheoTown Forum Chatbox
- Replies: 10703
- Views: 603885
Re: TheoTown Forum Chatbox
Took a photo before taking it apart, but I can't find anywhere that is not screwed

- Sun Jun 21, 2020 15:54
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 161
- Views: 9052
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 = ...
- Sun Jun 21, 2020 15:34
- Forum: Smalltalk
- Topic: TheoTown Forum Chatbox
- Replies: 10703
- Views: 603885
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... 

- Sun Jun 21, 2020 12:56
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 161
- Views: 9052
- Sun Jun 21, 2020 12:52
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 161
- Views: 9052
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...
- Sun Jun 21, 2020 12:12
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 161
- Views: 9052
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 ...
- Sun Jun 21, 2020 12:02
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 161
- Views: 9052
Re: Lua chatbox
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)
- Fri Jun 19, 2020 11:46
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 161
- Views: 9052
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...
- Fri Jun 19, 2020 11:35
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 161
- Views: 9052
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...