Author | Message | Time |
---|---|---|
Dyndrilliac | Make a function to assassinate select individuals. That would be very useful. | September 14, 2004, 2:39 AM |
phvckmeh | [quote author=Dyndrilliac link=board=31;threadid=8656;start=0#msg80087 date=1095129574] Make a function to assassinate select individuals. That would be very useful. [/quote] Done. [code]Usage: VBControl1.Ass("Dyndrilliac")[/code] | September 14, 2004, 3:01 AM |
Myndfyr | [quote author=phvckmeh link=board=31;threadid=8656;start=0#msg80088 date=1095130864] [quote author=Dyndrilliac link=board=31;threadid=8656;start=0#msg80087 date=1095129574] Make a function to assassinate select individuals. That would be very useful. [/quote] Done. [code]Usage: VBControl1.Ass("Dyndrilliac")[/code] [/quote] That function seems more like it would shove your ass at Dyndrilliac, or show Dyndrilliac's ass, than anything else. | September 15, 2004, 12:53 AM |
The-Rabid-Lord | Judging by the control bit he wants to Control his ass, ewwwww! | September 16, 2004, 4:01 PM |
Dyndrilliac | Wow. [quote author=Adron link=board=31;threadid=8656;start=0#msg80271 date=1095276157] [quote author=LivedKrad link=board=31;threadid=8656;start=0#msg80224 date=1095242916] Some replies were removed. :( ? [/quote] They were off-topic. They got split off to the trash can. [/quote] So this was considered important enough to be spared? ;) :P As for the actual function, phuckmeh, I'd like to see how you actually wrote it:P . Also, change "Ass" to Terminate. | September 17, 2004, 2:32 AM |
St0rm.iD | irc.stabpersonintheface | September 18, 2004, 7:48 PM |
Adron | [quote author=Dyndrilliac link=board=31;threadid=8691;start=0#msg80472 date=1095388322] So this was considered important enough to be spared? ;) :P [/quote] Well, typically all posts are spared. They're just put in different forums. This particular thread seemed to be going into methods for properly naming VB functions, and as such, could be considered on-topic for the forum. | September 18, 2004, 11:32 PM |
Grok | [quote author=Dyndrilliac link=board=31;threadid=8691;start=0#msg80087 date=1095129574] Make a function to assassinate select individuals. That would be very useful. [/quote] Hmm, I didn't like the other solution, so here is another option. [code] Public Enum G_SELECTINDIVIDUALS DRYNDRILLIAC End Enum Public Enum G_KILLMETHOD ASPHIXIATION BLADE BLEEDING CONCUSSION CRUSH ELECTROCUTION EMBARRASSMENT FALL FIREARM POISON End Enum Public Function Assassinate(ByVal SelectIndividual AS G_SELECTINDIVIDUALS, ByVal Method AS G_KILLMETHOD) As Boolean Select Case Method Case ASPHIXIATION, BLEEDING, CONCUSSION, CRUSH, DECAPITATION, ELECTROCUTION, EMBARRASSMENT, FALL, FIREARM, IMPALEMENT, POISON Assassinate = True Case Else Assassinate = False End Select End Function [/code] | September 19, 2004, 2:44 AM |
Stealth | [quote]Public Enum G_KILLMETHOD ASPHIXIATION BLADE BLEEDING CONCUSSION CRUSH ELECTROCUTION EMBARRASSMENT FALL FIREARM POISON CHOCOLATE End Enum[/quote] My favorite one! :) | September 19, 2004, 6:22 AM |
Soul Taker | [quote author=Grok link=board=31;threadid=8691;start=0#msg80791 date=1095561895] [quote author=Dyndrilliac link=board=31;threadid=8691;start=0#msg80087 date=1095129574] Make a function to assassinate select individuals. That would be very useful. [/quote] Hmm, I didn't like the other solution, so here is another option. [code] Public Enum G_SELECTINDIVIDUALS DRYNDRILLIAC End Enum Public Enum G_KILLMETHOD ASPHIXIATION BLADE BLEEDING CONCUSSION CRUSH ELECTROCUTION EMBARRASSMENT FALL FIREARM POISON End Enum Public Function Assassinate(ByVal SelectIndividual AS G_SELECTINDIVIDUALS, ByVal Method AS G_KILLMETHOD) As Boolean Select Case Method Case ASPHIXIATION, BLEEDING, CONCUSSION, CRUSH, DECAPITATION, ELECTROCUTION, EMBARRASSMENT, FALL, FIREARM, IMPALEMENT, POISON Assassinate = True Case Else Assassinate = False End Select End Function [/code] [/quote] Why check for IMPALEMENT when it's not part of the enumeration :P Edit: Neither is DECAPITATION. And apparently using BLADE won't result in assassination. | September 19, 2004, 3:05 PM |
Dyndrilliac | [quote author=Grok link=board=31;threadid=8691;start=0#msg80791 date=1095561895]DRYNDRILLIAC[/quote] Who's that? :P ;D | September 19, 2004, 10:55 PM |
Grok | [quote author=Soul Taker link=board=31;threadid=8691;start=0#msg80841 date=1095606354] Why check for IMPALEMENT when it's not part of the enumeration :P Edit: Neither is DECAPITATION. And apparently using BLADE won't result in assassination. [/quote] They were but I had already pasted the enumerations when I modified the function and then pasted it. Forgot to copy the updated ENUM. I had also corrected the spelling of Dyndrilliac too. My function works :p | September 20, 2004, 12:03 AM |