wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > General Development
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 11-07-2009, 09:07 PM   #1
Panto
LASER DRAGONS IS RELEASED
 
Panto's Avatar


Development Moderator
User Project: Panto
 
Join Date: Mar 2003
Posts: 3,167

Submissions (2)

Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)

Approved Map: Call to Arms

Default Tiny Tomes Adventures

Greetings.

When a hero picks up a powerup stat bonus book, it appears to leave a very tiny model of the book sitting there on the ground. Like it's never destroying the item, just shrinking it? Is this some funny aspect of Warcraft that just never surfaced to my attention?

__________________
Pantokrator Maps forum.
LASER DRAGONS RELEASED!.
"One good test is worth a thousand expert opinions." Wernher von Braun
"The perfect is the enemy of the good." Voltaire
"When I became a man I put away childish things, including the fear of childishness and the desire to be very grown up." C.S. Lewis
Panto is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 11-07-2009, 09:17 PM   #2
ploks
User
 
Join Date: Jun 2007
Posts: 99

ploks has little to show at this moment (6)

Default

I guess this has something to do with it.
ploks is offline   Reply With Quote
Old 11-07-2009, 09:25 PM   #3
Panto
LASER DRAGONS IS RELEASED
 
Panto's Avatar


Development Moderator
User Project: Panto
 
Join Date: Mar 2003
Posts: 3,167

Submissions (2)

Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)

Approved Map: Call to Arms

Default

Super, thanks!

EDIT: BTW, it can be solved pretty quickly by this:

Collapse JASS:
function Trig_Tome_cleanliness_Conditions takes nothing returns boolean
    return GetItemType(GetManipulatedItem()) == ITEM_TYPE_POWERUP
endfunction

function Trig_Tome_cleanliness_Actions takes nothing returns nothing
    local item itTome = GetManipulatedItem()

    call PolledWait(0.25)

    call RemoveItem(itTome)
    set itTome = null
endfunction

//===========================================================================
function InitTrig_Tome_cleanliness takes nothing returns nothing
    set gg_trg_Tome_cleanliness = CreateTrigger()
    call TriggerRegisterAnyUnitEventBJ(gg_trg_Tome_cleanliness, EVENT_PLAYER_UNIT_PICKUP_ITEM)
    call TriggerAddCondition(gg_trg_Tome_cleanliness, Condition(function Trig_Tome_cleanliness_Conditions))
    call TriggerAddAction(gg_trg_Tome_cleanliness, function Trig_Tome_cleanliness_Actions)
endfunction

I haven't confirmed that a wait is necessary.
__________________
Pantokrator Maps forum.
LASER DRAGONS RELEASED!.
"One good test is worth a thousand expert opinions." Wernher von Braun
"The perfect is the enemy of the good." Voltaire
"When I became a man I put away childish things, including the fear of childishness and the desire to be very grown up." C.S. Lewis

Last edited by Panto : 11-08-2009 at 01:24 AM.
Panto is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 10:05 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2018, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services