Login to ZARP
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Learning LUA -- Challenges?

Learning LUA -- Challenges? 6 years 1 month ago #1032746

I was wondering if there was anything I could do to challenge my currently empty knowledge in LUA, I started learning it like an hour ago and I have no idea what I am doing but I get the gyst of it.

Is there any simple challenges I could do such as setting the color of entities on a map or anything else?
  • Nafe
  • Nafe's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP Golden Blue Badge
  • Posts: 18666
  • Thanks received: 8623
  • Karma: -378
Last Edit: 6 years 1 month ago by Nafe.
Login or register to post a reply.

Learning LUA -- Challenges? 6 years 1 month ago #1032747

Create a entity that charges your health and armor up, not sure if that's too challenging for you but it's something to practice anyways
  • Clarky
  • Clarky's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP Gold Badge
  • I love Henny
  • Posts: 16828
  • Thanks received: 9584
  • Karma: 983
Login or register to post a reply.
The following user(s) said Thank You: Nafe

Learning LUA -- Challenges? 6 years 1 month ago #1032748

Clarky wrote:
Create a entity that charges your health and armor up, not sure if that's too challenging for you but it's something to practice anyways

Shout outs Clarky for attempting to give me a brain aneurysm!
  • Nafe
  • Nafe's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP Golden Blue Badge
  • Posts: 18666
  • Thanks received: 8623
  • Karma: -378
Login or register to post a reply.
The following user(s) said Thank You: Clarky

Learning LUA -- Challenges? 6 years 1 month ago #1032751

Add me on discord Comfy#8528
  • Comfy
  • Comfy's Avatar
  • Offline
  • Senior Boarder
  • ZARP VIP
  • Zarp’s future CD
  • Posts: 587
  • Thanks received: 49
  • Karma: -7
Login or register to post a reply.

Learning LUA -- Challenges? 6 years 1 month ago #1032752

Something that could be easy to do is to make a counter for how often you jump.

You could try doing that.

Tips [ Click to expand ]
  • House
  • House's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP Gold Badge
  • The best thing on Earth? Coffee.
  • Posts: 1026
  • Thanks received: 541
  • Karma: 3

⚕ former TTT Server Owner ⚕
⚕ former Surf Administrator ⚕
⚕ former SSRP Moderator ⚕
⚕ former TeamSpeak3 staff ⚕
⚕ former Forum staff ⚕


Add me on Steam!


#uzi4CM
Last Edit: 6 years 1 month ago by House.
Login or register to post a reply.

Learning LUA -- Challenges? 6 years 1 month ago #1032754

learn metatables
  • Azure
  • Azure's Avatar
  • Offline
  • Fresh Boarder
  • ZARP VIP
  • Posts: 61
  • Thanks received: 14
  • Karma: 0
Login or register to post a reply.

Learning LUA -- Challenges? 6 years 1 month ago #1032758

Make the fizz buzz game

Hint
Warning: Spoiler! [ Click to expand ]
  • Comfy
  • Comfy's Avatar
  • Offline
  • Senior Boarder
  • ZARP VIP
  • Zarp’s future CD
  • Posts: 587
  • Thanks received: 49
  • Karma: -7
Login or register to post a reply.

Learning LUA -- Challenges? 6 years 1 month ago #1032769

I am trying to learn aswell.

I'm attempting to script a custom hud at the moment.
  • .uzi
  • .uzi's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP Golden Blue Badge
  • Foos yer doos?
  • Posts: 6007
  • Thanks received: 2443
  • Karma: 123
Login or register to post a reply.

Learning LUA -- Challenges? 6 years 1 month ago #1032773

.uzi wrote:
I am trying to learn aswell.

I'm attempting to script a custom hud at the moment.

Ah yes, I experimented as well, hmu if you need me.

Are you doing one for SSRP or just general?
  • House
  • House's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP Gold Badge
  • The best thing on Earth? Coffee.
  • Posts: 1026
  • Thanks received: 541
  • Karma: 3

⚕ former TTT Server Owner ⚕
⚕ former Surf Administrator ⚕
⚕ former SSRP Moderator ⚕
⚕ former TeamSpeak3 staff ⚕
⚕ former Forum staff ⚕


Add me on Steam!


#uzi4CM
Login or register to post a reply.

Learning LUA -- Challenges? 6 years 1 month ago #1032778

House wrote:
.uzi wrote:
I am trying to learn aswell.

I'm attempting to script a custom hud at the moment.

Ah yes, I experimented as well, hmu if you need me.

Are you doing one for SSRP or just general?

Thought I would start more basic, where there aren't so many teams (jobs) and no money involved. A basic HUD that would fit better on pointshop servers.
  • .uzi
  • .uzi's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP Golden Blue Badge
  • Foos yer doos?
  • Posts: 6007
  • Thanks received: 2443
  • Karma: 123
Login or register to post a reply.

Learning LUA -- Challenges? 6 years 1 month ago #1032789

If anyone's keen to make this a bit more of a collaborative learning experience feel free to add me on discord @ uzi#1337
  • .uzi
  • .uzi's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP Golden Blue Badge
  • Foos yer doos?
  • Posts: 6007
  • Thanks received: 2443
  • Karma: 123
Login or register to post a reply.

Learning LUA -- Challenges? 6 years 1 month ago #1032800

Do what I did go onto a game you like and be like I want to make this then make it :clap:
  • DEADMONSTOR
  • DEADMONSTOR's Avatar
  • Offline
  • Former Owner
  • ZARP VIP
  • Posts: 9277
  • Thanks received: 3799
  • Karma: 80
...
Login or register to post a reply.
The following user(s) said Thank You: Nafe

Learning LUA -- Challenges? 6 years 1 month ago #1032835

A custom hud displaying your health and armor is an easy start
  • RFlex
  • RFlex's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP
  • whats up
  • Posts: 5684
  • Thanks received: 996
  • Karma: -60
Login or register to post a reply.
The following user(s) said Thank You: Nafe

Learning LUA -- Challenges? 6 years 1 month ago #1032855

DikkeBMW wrote:
There is a good Youtube channel for LUA scripts : www.youtube.com/channel/UCFpuE-Qjn4EWqX-VJ_l7pbw

Maybe you can learn something of the videos :)

Pretty much the only channel on YouTube I found to be helpful in this regard imo
  • House
  • House's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP Gold Badge
  • The best thing on Earth? Coffee.
  • Posts: 1026
  • Thanks received: 541
  • Karma: 3

⚕ former TTT Server Owner ⚕
⚕ former Surf Administrator ⚕
⚕ former SSRP Moderator ⚕
⚕ former TeamSpeak3 staff ⚕
⚕ former Forum staff ⚕


Add me on Steam!


#uzi4CM
Login or register to post a reply.

Learning LUA -- Challenges? 6 years 1 month ago #1032877

Dont lose your motivation!
  • Katje
  • Katje's Avatar
  • Offline
  • User is blocked
  • ZARP VIP
  • Posts: 5286
  • Thanks received: 844
  • Karma: -73
Login or register to post a reply.

Learning LUA -- Challenges? 6 years 1 month ago #1032880

House wrote:
DikkeBMW wrote:
There is a good Youtube channel for LUA scripts : www.youtube.com/channel/UCFpuE-Qjn4EWqX-VJ_l7pbw

Maybe you can learn something of the videos :)

Pretty much the only channel on YouTube I found to be helpful in this regard imo

I am subscribed to him, his channel is great. I didn't want to follow a LUA guide for a different game even if it is the same language, at least if I watch someone do it on Garry's Mod I get to follow it easier.
  • Nafe
  • Nafe's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP Golden Blue Badge
  • Posts: 18666
  • Thanks received: 8623
  • Karma: -378
Login or register to post a reply.
The following user(s) said Thank You: House

Learning LUA -- Challenges? 6 years 1 month ago #1032908

The biggest challenge is the lack of resources. If you don't understand fully what the official Gmod wiki means you'll have to spend a long time finding things out which can tangle your patience.

When it comes to projects it doesn't really matter, if you pick a hard thing to do it'll take longer but you'll eventually get through it as long as you stay determined.

If you're like me and learn better by watching/listening instead of reading i'd suggest watching code blue on youtube to at least help you get started but eventually you'll have to suck up the things on the wiki.

the first thing i made in lua was a bomb that goes off; it included some networking, loops, entity creation, removal, defusing, planting, spamming the chat, an AWESOME GUI and some other things. Took me about 12-16 hours over a few days to write cause i had to learn almost everything i did but when I was done i knew a lot more. Hope it inspired you to some extent that it doesn't matter what you do- As long as you do it with passion.
  • catboy sven ツ
  • catboy sven ツ's Avatar
  • Offline
  • Adept Boarder
  • ZARP VIP
  • Respected Zarp Contributor
  • Posts: 7197
  • Thanks received: 1544
  • Karma: -45
ex-minecraft owner, zarp legend (Was there during the infancy of Zarp), ex-ssrp admin, ex-teamspeak emblem (For SSRP admin & minecraft owner)








Login or register to post a reply.
The following user(s) said Thank You: Nafe

Learning LUA -- Challenges? 6 years 1 month ago #1033051

print("yeet")
  • Diet Water
  • Diet Water's Avatar
  • Offline
  • Diamond Boarder
  • ZARP VIP
  • Posts: 2948
  • Thanks received: 747
  • Karma: -51
Login or register to post a reply.

Learning LUA -- Challenges? 6 years 1 month ago #1033182

I was able to write both a basic health and armour recharger that inherited from a base entity but implement their own functions and properties. I plan to keep working on this so it's a lot better logic wise and aesthetically appealing.

I can drop a link to my github repo for anyone that's interested in my approach :]
  • .uzi
  • .uzi's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP Golden Blue Badge
  • Foos yer doos?
  • Posts: 6007
  • Thanks received: 2443
  • Karma: 123
Last Edit: 6 years 1 month ago by .uzi.
Login or register to post a reply.

Learning LUA -- Challenges? 6 years 1 month ago #1033184

I wonder what made you interested in Lua
  • James Stone
  • James Stone's Avatar
  • Offline
  • Gold Boarder
  • ZARP VIP
  • Life is a fight, but not everyone’s a fighter.
  • Posts: 2096
  • Thanks received: 294
  • Karma: -6
(OOC) Clarky: rdm me once more and youll be seeing yourself perma banned


If life is nothing but a bitch, I hope my dick is big enough
To fuck the whole world


Login or register to post a reply.
  • Page:
  • 1
  • 2
Time to create page: 0.161 seconds

161 PLAYERS ONLINE

Connect to server View Gametracker DarkRP 1
4/127
online
Connect to server View Gametracker Deathrun
0/40
online
Connect to server View Gametracker TTT
0/47
online
Connect to server View Gametracker Bhop
0/32
online
Connect to server View Gametracker Surf
0/32
online
Connect to server View Gametracker Prop Hunt
4/42
online
Connect to server View Gametracker Sandbox
0/42
online
Connect to server Discord
153/913
online
Top