[QUOTE=zerf;47694428]Optimal for me is
[lua]local newConvo = interaction( "myConversation" )
local option1 = newConvo:addOption("How are you m7")
option1:addResponse("I'm good thanks m6")
local option1a = newConvo:addOption("That's good to hear m5")
option1a:setFlag(CONVO_GO_START)
option1a:showWhen(option:wasSelected())
local option2 = newConvo:addOption("You wanna fite m4?")
option2:addResponse("Bring it m3")
option2:setFlag(CONVO_CLOSE, CONVO_REACT_FIGHT)
newConvo:display()
[/lua]
[editline]9th May 2015[/editline]
(Difference is we use newConvo:addOption as the option constructor function instead of convo.option, which allows us to skip newConvo:addOptions at the end)[/QUOTE]
With some help from Starfox64 I converted my current system to use Metatables but I kept my system for adding responses as I feel that it builds on itself which makes things easier to follow.
[code]
local convo = interaction.createNew( "myConversation" )
local option1 = convo:createOption( "How are you?" )
option1:addResponse( "I'm doing good, thanks" )
local option1a = option1:createOption( "Thats good to hear" )
option1:setFlags( CONVO_GO_START )
local option2 = convo:createOption( "You wanna fite m8?" )
option2:addResponse( "Bring it holmes" )
option2:setFlags( CONVO_CLOSE, CONVO_REACT_FIGHT )
interaction.display( "myConversation" )
[/code]
(this aint final)
[t]http://i.gyazo.com/26ec127648befd936d1892bf450e9540.png[/t]
Fuck guys I'm freaking out
[img]http://i.imgur.com/O7UbNvt.png[/img]
[img]http://www.facepunch.com/fp/ratings/tick.png[/img][img]http://www.facepunch.com/fp/ratings/cross.png[/img][img]http://www.facepunch.com/fp/ratings/rainbow.png[/img][img]http://www.facepunch.com/fp/ratings/palette.png[/img]
[QUOTE=Ott;47696781]Fuck guys I'm freaking out
[img]http://i.imgur.com/O7UbNvt.png[/img]
[img]http://www.facepunch.com/fp/ratings/tick.png[/img][img]http://www.facepunch.com/fp/ratings/cross.png[/img][img]http://www.facepunch.com/fp/ratings/rainbow.png[/img][img]http://www.facepunch.com/fp/ratings/palette.png[/img][/QUOTE]
Themselves would indicate that there are more than one of you.
'Ott toggled fly mode on themself' however them points to another object.
Their is a possessive word so it would be that last one i think?
I'm 72% sure that i did not pass my English exam this year.
[editline] There goes my English GCSE. [/editline]
There goes my English GCSE.
[url]http://www.oxforddictionaries.com/words/themselves-or-themself[/url]
tl;dr: themself works, but is not accepted by everyone. Themselves is formally accepted, even in singular use.
Another one:
[img]http://i.imgur.com/oTJDzwW.png[/img]
[img]http://i.imgur.com/v3ohtRm.png[/img]
[img]http://i.imgur.com/L8BPYoL.png[/img]
[img]http://i.imgur.com/hzZe5Tm.png[/img]
[img]http://www.facepunch.com/fp/ratings/tick.png[/img]
[img]http://www.facepunch.com/fp/ratings/cross.png[/img]
[img]http://www.facepunch.com/fp/ratings/rainbow.png[/img]
[img]http://www.facepunch.com/fp/ratings/palette.png[/img]
[QUOTE=Ott;47697039]Another one:
[img]http://www.facepunch.com/fp/ratings/tick.png[/img]
[img]http://www.facepunch.com/fp/ratings/cross.png[/img]
[img]http://www.facepunch.com/fp/ratings/rainbow.png[/img]
[img]http://www.facepunch.com/fp/ratings/palette.png[/img][/QUOTE]
Those are all pretty unreadable in my opinion.
[QUOTE=Ott;47697039]Another one:[/QUOTE]
[IMG]http://www.facepunch.com/fp/ratings/tick.png[/IMG] + make the command a different colour.
[QUOTE=Ott;47697039]Another one:
[img]http://www.facepunch.com/fp/ratings/tick.png[/img]
[img]http://www.facepunch.com/fp/ratings/cross.png[/img]
[img]http://www.facepunch.com/fp/ratings/rainbow.png[/img]
[img]http://www.facepunch.com/fp/ratings/palette.png[/img][/QUOTE]
Seeing as how the console font is monospace, it would look much nicer if you aligned them all, as you would if you were making a nice looking config file.
Okay, last one:
[img]http://www.facepunch.com/fp/ratings/tick.png[/img][img]http://i.imgur.com/hzZe5Tm.png[/img]
[img]http://www.facepunch.com/fp/ratings/cross.png[/img][img]http://i.imgur.com/MfubyeK.png[/img]
[img]http://www.facepunch.com/fp/ratings/palette.png[/img][img]http://i.imgur.com/ZYq1loy.png[/img]
[img]http://www.facepunch.com/fp/ratings/wrench.png[/img][img]http://i.imgur.com/0IAS0A6.png[/img]
[img]http://www.facepunch.com/fp/ratings/rainbow.png[/img][img]http://i.imgur.com/I88mAou.png[/img]
[QUOTE=Ott;47694817]
Commands are defined like this:
[lua]maestro.command("kick", {"player:target", "reason"}, function(caller, targets, reason) --Anything after the colon is ignored, unknown types default to string
if not IsValid(targets[1]) then
return true, "Query matched no players." --True for error
end
if #targets > 1 then
return true, "Query matched more than 1 player."
end
targets[1]:Kick(reason)
return false, "kicked %% (%%)" --False for success. %% is replaced with the corresponding argument. Prefixed by player name, multiple results are comma separated.
end)[/lua]
[/QUOTE]
Object oriented is so the way to go
[t]https://i.gyazo.com/110fb52e561508139d222041bd586c28.png[/t]
Though on a more serious note you should really do some sort of more advanced argument parsing because returning errors like not finding a player in the command callback gets seriously repetitive.
That's nice and all but I hate your "make all object funcs return that object so you can do everything on one line".
[QUOTE=zerf;47697824]That's nice and all but I hate your "make all object funcs return that object so you can do everything on one line".[/QUOTE]
None of the fucntions need to return anything anyway so it's an optional feature.
Done 2/5 fountains so far
[IMG]http://puu.sh/hIFfS/57146c18fd.png[/IMG][IMG]http://puu.sh/hIFh4/6c5f16fd17.png[/IMG]
[video=youtube;o-YN_hS0bYY]http://www.youtube.com/watch?v=o-YN_hS0bYY[/video]
Bonus video (watch it if you dare):
[video=youtube;WiFRQafT7-Q]http://www.youtube.com/watch?v=WiFRQafT7-Q[/video]
[QUOTE=Ott;47697429]Okay, last one:
[img]http://www.facepunch.com/fp/ratings/cross.png[/img][img]http://i.imgur.com/MfubyeK.png[/img]
[/QUOTE]
Now I want to use those colors in Onion >.<
Can I steal the colors?
Btw you could add optional arguments like:
[code]noclip <player:target> [bool:toggle]
kick <player:target> [reason][/code]
Maybe even
[code]noclip [player:target] [bool:toggle][/code]
If no targets given .. its on yourself.
I'm still working on that shield, but I'm getting distracted so often. Still, I've got the drowning stuff underway, but I'm gonna abandon my current falling damage style and try to do something I did a long time ago, and forgot to backup. I never told anyone about it. <snip> honesty is not always the best policy...
What I did back then, I won't be able to duplicate the math exactly... but it should be just as cool, and adding a shield to it will make it even better. :smile:
Honestly, I could release it now on the Workshop and update it when I finish the fall damage / drowning.
[QUOTE=WalkingZombie;47700582]snip[/QUOTE]
Can you please post content? We can't stress this enough with this thread, people like to see CONTENT.
If you post a video or screenshots that make it look like you've put effort in I might even include you in next month's highlights.
We're not interested in a big paragraph of text about what you're doing.
[QUOTE=skullorz;47695685]well for one thing it doesn't have the slow replacement of the hook system.[/QUOTE]
[QUOTE=isnipeu;47695773]They already improved the performance of it alot. [url]https://github.com/Nayruden/Ulysses/pull/386[/url][/QUOTE]
this is what you should be linking to [url]https://github.com/Nayruden/Ulysses/commit/8062be9cd20291be21498294c6ebda81fd7f7969#commitcomment-10858614[/url]
[QUOTE=Mors Quaedam;47700803]Can you please post content? We can't stress this enough with this thread, people like to see CONTENT.
If you post a video or screenshots that make it look like you've put effort in I might even include you in next month's highlights.
We're not interested in a big paragraph of text about what you're doing.[/QUOTE]
I'm just having trouble figuring out how I can display it. I want to display every feature, but that means I need to see myself take damage from third person, and watch the shields recharge... and I have to do it for both regular shield mode, and overcharge mode which I felt had to be added cus literally nobody ever uses the citadel suit charger setup.
There is a LOT of stuff that must be shown, and I can't even figure out how I can effectively display them to you.
[editline]11th May 2015[/editline]
Maybe tomorrow I'll manage to record each feature in play, and display it. It might be more than one video, as if it's that complicated. I really wish I had the falling damage and drowning systems finalized already so I could display those too, and the shield's effects regarding them.
Working on something for an overhaul project.
[t]http://flex.xeras.in/ShareX/2015/05/2015-05-11_06-33-49.png[/t]
[t]http://flex.xeras.in/ShareX/2015/05/2015-05-11_06-34-41.png[/t]
[QUOTE=WalkingZombie;47701173]I'm just having trouble figuring out how I can display it. I want to display every feature, but that means I need to see myself take damage from third person, and watch the shields recharge... and I have to do it for both regular shield mode, and overcharge mode which I felt had to be added cus literally nobody ever uses the citadel suit charger setup.
There is a LOT of stuff that must be shown, and I can't even figure out how I can effectively display them to you.
[editline]11th May 2015[/editline]
Maybe tomorrow I'll manage to record each feature in play, and display it. It might be more than one video, as if it's that complicated. I really wish I had the falling damage and drowning systems finalized already so I could display those too, and the shield's effects regarding them.[/QUOTE]
if you don't have videos or pictures, don't post. no one wants to see your wall of text.
[video=youtube;4XA16nJCOXg]http://www.youtube.com/watch?v=4XA16nJCOXg[/video]
Yes I know about the HTML entities. It's fixed now.
I didn't think my shield thing was worth posting about before but here's a picture. Looks much better when animated.
[t]http://cloud-4.steamusercontent.com/ugc/544147366409380803/3E75D9B093206AF9E6D8F1777D3BB8D0E91B4C9F/[/t]
[QUOTE=wh1t3rabbit;47705060]I didn't think my shield thing was worth posting about before but here's a picture. Looks much better when animated.
[t]http://cloud-4.steamusercontent.com/ugc/544147366409380803/3E75D9B093206AF9E6D8F1777D3BB8D0E91B4C9F/[/t][/QUOTE]
Looks like a Saran wrapped Kleiner :v:
I don't typically post without content, but after seeing you guys bitch at Walking Zombie time and time again, I feel like I should mention that [URL="http://facepunch.com/profile.php?do=addlist&userlist=ignore&u=559171"]the ignore list exists for a reason.[/URL]
Discovered that the fairly popular Bank robbery addon for DarkRP is updating its 3d2d timer every server tick which is spamming the client with net messages which are often the exact same as the last.
[url]https://github.com/n00bmobile/Bank-Robbery-System/issues/4[/url]
[img]http://ph129.net/i/dsCU0G.png[/img]
Another system semi-done. Few touchups to go (Like the placeholder modelpanel and category selector), and i'll be making a tier system, once i get the visual's down.
No idea what skills i'm going to make yet though (And they're character based, i.e. might reset on death, no idea yet), input would be great on that.
There's an incorrect apostrophe in that "its".
Honestly I'd keep it as "Click a skill" instead of "Click a Skill".
Sorry, you need to Log In to post a reply to this thread.