• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Random Discussion

Status
Not open for further replies.
Level 22
Joined
Sep 24, 2005
Messages
4,821
Yo, welcome back dude.
ambush_pew_pew_cat.jpg
 
Level 3
Joined
Dec 12, 2013
Messages
38
Hi guys!! I just found an easter egg in Warcraft 3 Reign of Chaos: First, go to the human campaign and click the first chapter, wait for it to load, skip the opening cutscene where Arthas and Uther are talking about something, lastly, repeatedly click on the critters that spawn randomly, such as the sheep. When you clicked it so many times, the critter will EXPLODE. Isn't that awesome!? Well then BAM you have an easter egg. Woohhhooo!
Oh I almost forgot, I met somebody here in the Hive with the same name as me, His name is KarDel Bofill!! Nice!!
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
@wrathion, how does that pick the last unit in a group?

EDIT: Another troll function
JASS:
function LastOfGroup takes group g, unit u returns unit
    local integer unitcount
    
    // [1] Terminate the troll function if the group is
    // initially empty
    if FirstOfGroup(g)==null then
			return null
		endif
		
		// [2] Copy the group
		// make a copy group function; preferably one that uses
		// ForGroup, because there is a bug with null (removed
		// units from the game) unit references within the group
		// not being released
		call CopyGroup(g, g_temp) // let's assume g_temp is a global variable
		
		// [3] Count the number of units in the group
		// counting the units within the group, I think, is better
		// again this could be a custom function or the BJ function
		// that is already provided by Blizzard
		set unitcount = CountUnitsInGroup(g_temp) 
		
		// Find the last unit
    loop
				// check if this iteration is the last
				// if it is, store the unit on the variable
				if unitcount==1 then
					set u=FirstOfGroup(g_temp)
				endif
				call GroupRemoveUnit(g_temp, FirstOfGroup(g_temp))
				set unitcount = unitcount - 1
				// terminate loop when the group is empty
        exitwhen FirstOfGroup(g)==null
    endloop
    
    set g_temp = null // Prevent leaks in global variables by clearing
			          // their contents after use, jass weirdness. The
			          // leak in this case is found by troll_brain. The
			          // memory leak is garbage collecto(r/ion) related.
    return u // this will leak if it is created within this function block
			 // that's another jass weirdness for you; won't leak though
			 // if the variable was declared as a parameter
endfunction
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
No bro, you've misunderstood, I really meant how, I never intended to sound sarcastic. Anyway, your function works perfectly, what I posted was a real trolling function lol, just look at how it overcomplicated things haha xD!
 
I don't really know how. Though it might work, I haven't tested it. :3

It's not working. Fix pls
JASS:
function ClosestOfGroup takes group g, real x, real y returns unit
    local real r
    local real record
    local real tx
    local real ty
    local unit u
    local unit v
    loop
        set v = FirstOfGroup(g)
        exitwhen v == null
        set tx = GetUnitX(v)
        set ty = GetUnitY(v)
        set r = SquareRoot((tx-x)*(tx-x)+(ty-y)*(ty-y))
        if r < record then
            set record = r
            set u = v
        endif
        call GroupRemoveUnit(g, v)
    endloop
    return u
endfunction
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
WTF! Why the hell in God's good name are they fucking caressing and touching each other's nuts or corndogs, bullshit!... I need some dose of fanservice... Oh God! Just look at that dude's satisfied face! Aaaaaaaaaaaah! Fuuuuuuuuuuuuuuuuck!

Oh, pardon my profanity, I am sorry.

Oh man, I'm so depressed, I'm just about to finish a certain comedy manga that gave me some serious amount of fun that I almost shit myself, 2 chapters away from total depression...

@orcnet: those are awesome... images... it's just that... some are sickening... seriously...

EDIT: lemme clarify, I was reading a manga, ngahaha xD
 
Level 30
Joined
Jul 31, 2010
Messages
5,258
Orcnet;2521855 said:
Half of the week I've been doing meet ups on my little business sideline, pretty successful and time consuming.

Went on a Fully Booked comic event yesterday and met comic artist Whilce Portacio, really nice guy and such a bad-ass.

Expecting to only get 3 free comics from that day, end up getting 30 pieces haha.

:thumbs_up:
 
Status
Not open for further replies.
Top