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 > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 08-21-2006, 11:40 PM   #1
wing87
User
 
Join Date: Feb 2004
Posts: 12

wing87 has little to show at this moment (0)

Question Jass help? (units current order point)

i made a script that when a units gets hit and has 1 mana (thats max) it casts avatar but when it does the unit stops his movement what functions can i use to get the current target of the triggering unit?

Collapse JASS:
function Trig_MeatMass_Avatar_Conditions takes nothing returns boolean
    if ( not ( R2I(GetUnitStateSwap(UNIT_STATE_MANA, GetTriggerUnit())) == 1 ) ) then
        return false
    endif
    if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'u00K' ) ) then
        return false
    endif
    return true
endfunction

function Trig_MeatMass_Avatar_Actions takes nothing returns nothing
    local location orgPoint = what here?
    call IssueImmediateOrderBJ( GetTriggerUnit(), "avatar" )
    call TriggerSleepAction(0.50)
    call IssuePointOrderLocBJ( GetTriggerUnit(), "move", orgPoint)
endfunction

//===========================================================================
function InitTrig_MeatMass_Avatar takes nothing returns nothing
    set gg_trg_MeatMass_Avatar = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_MeatMass_Avatar, EVENT_PLAYER_UNIT_ATTACKED )
    call TriggerAddCondition( gg_trg_MeatMass_Avatar, Condition( function Trig_MeatMass_Avatar_Conditions ) )
    call TriggerAddAction( gg_trg_MeatMass_Avatar, function Trig_MeatMass_Avatar_Actions )
endfunction

Tnx!
wing87 is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 08-22-2006, 12:05 AM   #2
aquilla
User
 
aquilla's Avatar
 
Join Date: Mar 2003
Posts: 217

Submissions (1)

aquilla will become famous soon enough (71)aquilla will become famous soon enough (71)aquilla will become famous soon enough (71)

Send a message via MSN to aquilla
Default

I looked through the natives without luck. Best way I can think is to trigger this by maybe adding a spellbook to the unit with passives in it (spell immunity, + dmg, + armor, + hp) for example. If you choose this way, disabling the spellbook for each player would hide the spellbook icon but the passives will still work
__________________
You don't care what I've listened to lately
but I'll tell you anyway,
because that's the only thing I'm good at.
aquilla is offline   Reply With Quote
Old 08-22-2006, 12:07 AM   #3
wing87
User
 
Join Date: Feb 2004
Posts: 12

wing87 has little to show at this moment (0)

Default

the thing is its a tw and the units that are sent has avatar and i wanted to activate it this way the units stops >.< so i need a way to get it moving again or a way to make avatar not stop the current order...
wing87 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 07:49 AM.


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

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