online faq recherche accueil
 

Il y a 293 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici

 Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet :

Meat hook

 
n°4589794
MagiKe
Posté le 30-04-2007 à 20:46:14  profilanswer
 

Salutations à vous, je recherche de l'aide pour faire un "Meat hook" (comme dans les maps Pudge war) j'ai tenter un JASS trouver sur un pudge war non protéger (j'ai bien copier les compétences et changer les références dans le scripte), mais ça ne marche pas, ça provoque une erreur lors de la sauvegarde qui m'empêche ensuite de jouer sur la carte,  
 
Voici les deux scriptes :
 

function MHConditions takes nothing returns boolean
    return ( GetSpellAbilityId() == 'A0EP' )
endfunction
 
function MHActions takes nothing returns nothing
    local unit caster = GetTriggerUnit()
    local location targetLoc = GetSpellTargetLoc()
    local real tx = GetLocationX(targetLoc)
    local real ty = GetLocationY(targetLoc)
    local real cx = GetUnitX(caster)
    local real cy = GetUnitY(caster)
    local real angle = Atan2((ty-cy),(tx-cx))
    local MeatHook hook = MeatHook.create()
    local PudgeData pd = GHInt(caster,"data" )
    call SetUnitAnimationByIndex( caster, 2 )
    call hook.SpawnHook(caster,angle)
    set caster = null
    call RemoveLocation(targetLoc)
    set targetLoc = null
endfunction
 
//===========================================================================
 
function InitTrig_Meat_Hook takes nothing returns nothing
    set gg_trg_Meat_Hook = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Meat_Hook, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddCondition( gg_trg_Meat_Hook, Condition( function MHConditions ) )
    call TriggerAddAction( gg_trg_Meat_Hook, function MHActions )
endfunction


 
-- Et  
 

globals
    real DAMAGEBASE = 250
    real RADIUSBASE = 80
    real SPEEDBASE = 900
    real RANGEBASE = 1500
 
    real RADIUSINC = 20
    real RANGEINC = 100
    real DAMAGEINC = 50
    real SPEEDINC = 80
endglobals
 
function Trig_Upgrades_Actions takes nothing returns nothing
    local unit buyer = GetBuyingUnit()
    local integer upg = GetItemTypeId(GetSoldItem())
    local PudgeData data = GHInt(buyer,"data" )
    local player p = GetOwningPlayer(buyer)
    if(upg == 'I09Q')then //Radius
        if data.RADIUS < 80+RADIUSINC*10 then
            set data.RADIUS = data.RADIUS+ RADIUSINC
            call TimedEffectUnit(buyer,"origin",3,"Abilities\\Spells\\Items\\AIam\\AIamTarget.mdl" )
        else
            call DisplayTextToForce( bj_FORCE_PLAYER[GetPlayerId(p)], "Sorry, you've maxed this stat.  You can only have 10 of any upgrade" )
            call AdjustPlayerStateBJ( 20, p, PLAYER_STATE_RESOURCE_GOLD )
        endif
    endif
    if(upg == 'I09T')then //Range
        if data.RANGE < 1500+RANGEINC*10 then
            set data.RANGE = data.RANGE + RANGEINC
            call TimedEffectUnit(buyer,"origin",3,"Abilities\\Spells\\Items\\AIam\\AIamTarget.mdl" )
        else
            call DisplayTextToForce( bj_FORCE_PLAYER[GetPlayerId(p)], "Sorry, you've maxed this stat.  You can only have 10 of any upgrade" )
            call AdjustPlayerStateBJ( 25, p, PLAYER_STATE_RESOURCE_GOLD )
        endif
    endif
    if(upg == 'I09U')then //Damage
        if data.DAMAGE < 250+DAMAGEINC*10 then
            set data.DAMAGE = data.DAMAGE + DAMAGEINC
            call TimedEffectUnit(buyer,"origin",3,"Abilities\\Spells\\Items\\AIam\\AIamTarget.mdl" )
        else
            call DisplayTextToForce( bj_FORCE_PLAYER[GetPlayerId(p)], "Sorry, you've maxed this stat.  You can only have 10 of any upgrade" )
            call AdjustPlayerStateBJ( 30, p, PLAYER_STATE_RESOURCE_GOLD )
        endif
    endif
    if(upg == 'I09V')then //Speed
        if data.SPEED < 900/50+(SPEEDINC*10)/50 then
            set data.SPEED = data.SPEED + (SPEEDINC/50)
            call TimedEffectUnit(buyer,"origin",3,"Abilities\\Spells\\Items\\AIam\\AIamTarget.mdl" )
        else
            call DisplayTextToForce( bj_FORCE_PLAYER[GetPlayerId(p)], "Sorry, you've maxed this stat.  You can only have 10 of any upgrade" )
            call AdjustPlayerStateBJ( 20, p, PLAYER_STATE_RESOURCE_GOLD )
        endif
    endif
    set buyer = null
endfunction
 
//===========================================================================
function InitTrig_Upgrades takes nothing returns nothing
    set gg_trg_Upgrades = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Upgrades, EVENT_PLAYER_UNIT_SELL_ITEM )
    call TriggerAddAction( gg_trg_Upgrades, function Trig_Upgrades_Actions )
endfunction


 
 
 
Merci à vous.


---------------
Grrllllh >.<
n°4589798
Gaurbaque
1vol !!1!!11!!!§!
Posté le 02-05-2007 à 17:56:35  profilanswer
 

Kikou
Bonne chance xD
J'y connais rien mais t'es sûr d'avoir mis les variables, unités etc...?

n°4589800
Gaurbaque
1vol !!1!!11!!!§!
Posté le 02-05-2007 à 18:01:51  profilanswer
 

c surrement du vjass
faut avoir l'edietru qui va bien
we helper, tu peux le trouver sur campaign, si tu comprends pas plus abandonne tout de suite xD


---------------
Tremblez mortels, et perdez tout espoir ! La Malédiction envahie votre monde !
n°4589805
MagiKe
Posté le 02-05-2007 à 22:21:43  profilanswer
 

Excuse moi , mais je ne comprends pas le mot "l'edietru" de ta phrase , c'est un programe ou autre ?$
 
Sinon , merci pour "we helper" , je vais chercher


Message édité par MagiKe le 02-05-2007 à 22:22:11

---------------
Grrllllh >.<
n°4589807
Gaurbaque
1vol !!1!!11!!!§!
Posté le 02-05-2007 à 22:25:19  profilanswer
 

En fait c'est de l'allemand, désolé je suis roumain alors des fois je m'exprime mal :s


---------------
Tremblez mortels, et perdez tout espoir ! La Malédiction envahie votre monde !
n°4589810
clasher
Posté le 02-05-2007 à 23:22:33  profilanswer
 

Il voulait dire "éditeur", faudrait connecter ses 2 neurones des fois ^^
Et sinon, c'est bien du vjass de Vexorian, te faut we helper que tu trouvera sur wc3 campaigns...

n°4589816
MagiKe
Posté le 04-05-2007 à 18:58:21  profilanswer
 

Je ne comprends pas comment installer WE Helper


---------------
Grrllllh >.<
n°4589817
Gaurbaque
1vol !!1!!11!!!§!
Posté le 04-05-2007 à 19:13:55  profilanswer
 

c'est vexo qui a fé le progrmme, il mrche ché moa, mais je pense kil n'a fé une version que kompatible pour ceux de l'europe de l'Est :-/
 
Il te faudra probablemnt retoucher les clai de registre !!!


---------------
Tremblez mortels, et perdez tout espoir ! La Malédiction envahie votre monde !
n°4589823
MagiKe
Posté le 06-05-2007 à 09:17:55  profilanswer
 

Ca m'aide pas a comprendre "Comment installer ca"


---------------
Grrllllh >.<
n°4589847
MagiKe
Posté le 08-05-2007 à 15:08:44  profilanswer
 

Quelqu'un peut m'aider ?


---------------
Grrllllh >.<
n°4589849
Gaurbaque
1vol !!1!!11!!!§!
Posté le 09-05-2007 à 23:16:19  profilanswer
 

y'a pas besoin d'installer je crois xD
ça se lance automatiquement et te donne une boue somilaire au WE classique, avec quelques petits ajouts...


---------------
Tremblez mortels, et perdez tout espoir ! La Malédiction envahie votre monde !
n°4589865
Maximaxou
rejoignez les fidèles du JASS
Posté le 12-05-2007 à 02:57:21  profilanswer
 

we helper est bourré de bugs. En revanche ceci me paraît mieux : jassnewgenpack3c :  
http://www.wc3campaigns.net/attach [...] 1178639818
utilisation : extraire le tout puis exécuter "NewGen WorldEditor.exe"


Message édité par Maximaxou le 12-05-2007 à 03:00:02

---------------
Dota c'est bien, le slide c'est encore mieux !
n°4589885
MagiKe
Posté le 13-05-2007 à 17:19:00  profilanswer
 

Je vais tester "jassnewgenpack3c" , merci


---------------
Grrllllh >.<
n°4589931
MagiKe
Posté le 17-05-2007 à 14:51:42  profilanswer
 

Merci ca marche


---------------
Grrllllh >.<

Aller à :
Ajouter une réponse