Rupture

Status
Not open for further replies.
5

56k Fanatic

Guest
Rupture everyones asking for it.

// A0LH = Rupture
function Trig_Bloodseeker_Spell_Rupture_Conditions takes nothing returns boolean
if(not (GetSpellAbilityId()=='A0LH'))then
return false
endif
return true
endfunction

// A0LH = Rupture
function oIoI takes nothing returns nothing
local timer t=GetExpiredTimer()
local string fTT=H2S(t)
local unit ojj=GetStoredDTAXUnit(fTT,"RuptureCaster")
local unit oJJ=GetStoredDTAXUnit(fTT,"RuptureTarget")
local location okk=GetStoredDTAXLocation(fTT,"RuptureOldLoc")
local location oKK=GetUnitLoc(oJJ)
local real n66=.2*GetUnitAbilityLevel(ojj,'A0LH')*DistanceBetweenPoints(okk,oKK)
if(n66>200)then
set n66=0
endif
if(n66>5)then
call DestroyEffect(AddSpecialEffectTarget("Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl",oJJ,"origin"))
endif
if(n66>0)then
call UnitDamageTargetBJ(ojj,oJJ,n66,ATTACK_TYPE_HERO,DAMAGE_TYPE_MAGIC)
endif
call RemoveLocation(okk)
call StoreDTAXObject(fTT,"RuptureOldLoc",oKK)
endfunction

// A0LH = Rupture
// e01R = Buff Placer
// A0NH = Rupture Buff
function Trig_Bloodseeker_Spell_Rupture_Actions takes nothing returns nothing
local unit ojj=GetTriggerUnit()
local unit oJJ=GetSpellTargetUnit()
local location oLL=GetUnitLoc(oJJ)
local integer Jhh=GetUnitAbilityLevel(ojj,'A0LH')
local timer t=CreateTimer()
local string fTT=H2S(t)
local unit MQQ
call UnitDamageTargetBJ(ojj,oJJ,50+100*Jhh,ATTACK_TYPE_HERO,DAMAGE_TYPE_MAGIC)
call StoreDTAXObject(fTT,"RuptureCaster",ojj)
call StoreDTAXObject(fTT,"RuptureTarget",oJJ)
call StoreDTAXObject(fTT,"RuptureOldLoc",oLL)
call TimerStart(t,.25,true,function oIoI)
set MQQ=CreateUnit(GetOwningPlayer(oJJ),'e01R',0,0,bj_UNIT_FACING)
call UnitAddAbility(MQQ,'A0NH')
call PolledWait(3+(2*Jhh))
call RemoveUnit(MQQ)
call UnitRemoveAbility(oJJ,'B067')
call PauseTimer(t)
call PolledWait(1)
call FlushStoredMissionShell(fTT)
call DestroyTimer(t)
endfunction

function StartTrigger_Bloodseeker_Spell_Rupture takes nothing returns nothing
set gg_trg_Bloodseeker_Spell_Rupture=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Bloodseeker_Spell_Rupture,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Bloodseeker_Spell_Rupture,Condition(function Trig_Bloodseeker_Spell_Rupture_Conditions))
call TriggerAddAction(gg_trg_Bloodseeker_Spell_Rupture,function Trig_Bloodseeker_Spell_Rupture_Actions)
endfunction

function InitTrig_Bloodseeker_Spell_Rupture takes nothing returns nothing
endfunction

Got it from OpenSourceDotA
 

Chocobo

White-Flower
Reaction score
409
Heh if you don't explain anything it won't work. Here errors I found :

PHP:
[Line 12] "H2S" Unknown Function with fTT
[Line 13] "GetStoredDTAXUnit" Unknown Function with ojj
[Line 14] "GetStoredDTAXUnit" Unknown Function with oJJ
[Line 15] "GetStoredDTAXUnit" Unknown Function with okk
[Line 28] "GetStoredDTAXObject" Unknown Function with fTT and oKK
[Line 40] "H2S" Unknown Function with fTT
[Line 42] "UnitDamageTargetBJ", damagetype returns null
[Line 43] "GetStoredDTAXObject" Unknown Function with fTT and ojj
[Line 44] "GetStoredDTAXObject" Unknown Function with fTT and oJJ
[Line 45] "GetStoredDTAXObject" Unknown Function with fTT and oLL
[Line 54] "FlushStoredMissionShell" Unknown Function
[Line 59] "gg_trg_Bloodseeker_Spell_Rupture" not declared trigger
[Line 60] "gg_trg_Bloodseeker_Spell_Rupture" not declared with function "TriggerRegisterAnyUnitEventBJ"
[Line 61] "gg_trg_Bloodseeker_Spell_Rupture" not declared with function "TriggerAddCondition"
 

corvusHaunt

New Member
Reaction score
96
ewww that Dota code is messyyyy



Chocobo said:
Heh if you don't explain anything it won't work. Here errors I found :

This is just some spell that I guess he wanted to post...

All those functions aren't valid because you need them too, looks like the Dota gang decided to make their own handle system, unless I'm mistaken.

And also, gg_ variables will only become valid in your map if you are using them. So, this trigger would be valid if you created a trigger "Bloodseeker_Spell_Rupture"
 
5

56k Fanatic

Guest
Don't understand it too. Download the latest DotA map from OpenSourceDotA and look around. :D
 

SFilip

Gone but not forgotten
Reaction score
634
1. for heaven's sake use code tags :eek:
select the code and click on
code.gif
while posting.
2. when you grab something from opendota, at least try and see if it works. this one requires handle vars functions to work.
 

emjlr3

Change can be a good thing
Reaction score
395
y did u post that???

no one is asking for it
 
5

56k Fanatic

Guest
WTF? Can you close the thread? really looks like my little brothers work. I forgot to logout :banghead: . He even posted the code for chain frost in dota forums damn.
 
5

56k Fanatic

Guest
Ok guys nothing to see here. I see why he was laughing yesterday, close the thread.
 
5

56k Fanatic

Guest
I can PROVE this is not my work. I'm uber noobish at JASS I can't even make the code for ravage without help, and its still not working properly.
 

Hero

─║╣ero─
Reaction score
250
Wow u triple posted...u can get in a lotta tropuble for that...next time use the edit button...plz
 

Grundy

Ultra Cool Member
Reaction score
35
ok one of the very first things i learned in programming is USE DESCRIPTIVE VARIABLE NAMES so you and other people that try to debug code know whats going on... what is ojj and oJJ and okk and oKK those names mean nothing to me i dont understand it. and when i say "you" i dont mean anyone personally i mean programmers in general. there was this one kid in my first c++ class that used names like "goku" "vegetta" "slash" "hack" "boob" etc... as variable names his code would look like

Code:
for (int your_mom = goku; your_mom > fat_ass; your_mom--)
{
    fatbitches[your_mom] = fatbitches[your_mom-1];
    gohan( fat_ass - your_mom );
}
 
C

CryptWizard

Guest
Dude, don't just rip something directly off the map and post it. At least make sure it works and AT VERY LEAST also post the handle system.
 
Status
Not open for further replies.
General chit-chat
Help Users
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top