Make a function to assassinate select individuals. That would be very useful.
Quote from: Dyndrilliac on September 13, 2004, 09:39 PM
Make a function to assassinate select individuals. That would be very useful.
Done.
Usage: VBControl1.Ass("Dyndrilliac")
Quote from: phvckmeh on September 13, 2004, 10:01 PM
Quote from: Dyndrilliac on September 13, 2004, 09:39 PM
Make a function to assassinate select individuals. That would be very useful.
Done.
Usage: VBControl1.Ass("Dyndrilliac")
That function seems more like it would shove your ass at Dyndrilliac, or show Dyndrilliac's ass, than anything else.
Judging by the control bit he wants to Control his ass, ewwwww!
Wow.
Quote from: Adron on September 15, 2004, 02:22 PM
Quote from: LivedKrad on September 15, 2004, 05:08 AM
Some replies were removed. :( ?
They were off-topic. They got split off to the trash can.
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.
irc.stabpersonintheface
Quote from: Dyndrilliac on September 16, 2004, 09:32 PM
So this was considered important enough to be spared? ;) :P
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.
Quote from: Dyndrilliac on September 13, 2004, 09:39 PM
Make a function to assassinate select individuals. That would be very useful.
Hmm, I didn't like the other solution, so here is another option.
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
QuotePublic Enum G_KILLMETHOD
ASPHIXIATION
BLADE
BLEEDING
CONCUSSION
CRUSH
ELECTROCUTION
EMBARRASSMENT
FALL
FIREARM
POISON
CHOCOLATE
End Enum
My favorite one! :)
Quote from: Grok on September 18, 2004, 09:44 PM
Quote from: Dyndrilliac on September 13, 2004, 09:39 PM
Make a function to assassinate select individuals. That would be very useful.
Hmm, I didn't like the other solution, so here is another option.
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
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 from: Soul Taker on September 19, 2004, 10:05 AM
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.
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