Mission System In The Works

So if you dont the paradigm OOP, well i’ve been messing around with it since like yesterday night and I’m really getting the hang off it! I’ve made my own custom mission class and then a sub constructor of the mission class which is an Advance Mission that has it’s own functions derived from the base mission class, anyways here it is in action printing out the set functions I tell it to, I’ve just gotten started and I plan on doing alot with OOP and just wanted to show how much I’ve learned in an 8 hour time span, if this does go well, I’ll consider open sourcing the code for others to use freely!

CODE SAMPLE

local FirstMission = Missions:AdvancedMission("Peter's Hunger", "Story", "Find something to eat in the house!", 1)

local SecondMission = Missions:AdvancedMission("The Sly Rycoon", "Story", "Catch up to the nightEater before the time runs out", 5)
print(FirstMission:GetMissionName())
print(FirstMission:GetMissionType())
print(FirstMission:GetMissionDescription())

print(SecondMission:GetMissionName())
print(SecondMission:GetMissionType()())
print(SecondMission:GetMissionDescription())

OUTPUT
image

1 Like

i hope peter got something to quench his hunger

1 Like