Spell Help

  • Thread starter Thread starter Starlite
  • Start date Start date
S

Starlite

Guest
Okay, so this is my first spell not using GUI and i have 10 compile errors (whatever those are)

they are in the following

Code:
local point Blink_Casting_Point  (Expected a reserve type or handle type)
local unit Blink_Target_Unit (Expected a reserve type or handle type)
set Blink_Casting_Point = GetUnitLoc(Blink_Casting_Unit)(expected a variable name)
set Blink_Target_Unit = GetSpellTargetUnit()(expected a variable name) 
call SetUnitPositionLoc( Blink_Casting_Unit, GetUnitLoc(Blink_Target_Unit) )(expected a name)
call IssueTargetOrderBJ( Blink_Casting_Unit, "thunderbolt", Blink_Target_Unit )(expected a name)
call SetUnitPositionLoc( Blink_Casting_Unit, Blink_Casting_Point )(expected a name)
call SetUnitPositionLoc( Blink_Casting_Unit, Blink_Casting_Point )(expected a code statement)
//=========================================================================== (expected a code statement)
call TriggerAddAction( gg_trg_Blink_Strike, function Trig_Blink_Strike_Actions )  (expected a code statement)

Code:
function Trig_Blink_Strike_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'A001' ) ) then
        return false
    endif
    return true
endfunction

function Trig_Blink_Strike_Actions takes nothing returns nothing
    local unit Blink_Casting_Unit
    local point Blink_Casting_Point
    local unit Blink_Target_Unit
    set Blink_Casting_Unit = GetSpellAbilityUnit()
    set Blink_Casting_Point = GetUnitLoc(Blink_Casting_Unit)
    set Blink_Target_Unit = GetSpellTargetUnit()
    call SetUnitPositionLoc( Blink_Casting_Unit, GetUnitLoc(Blink_Target_Unit) )
    call UnitAddAbilityBJ( 'A000', Blink_Casting_Unit )
    call IssueTargetOrderBJ( Blink_Casting_Unit, "thunderbolt", Blink_Target_Unit )
    call UnitRemoveAbilityBJ( 'A000', Blink_Casting_Unit )
    call SetUnitPositionLoc( Blink_Casting_Unit, Blink_Casting_Point )
endfunction

//===========================================================================
function InitTrig_Blink_Strike takes nothing returns nothing
    set gg_trg_Blink_Strike = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Blink_Strike, EVENT_PLAYER_UNIT_SPELL_CAST )
    call TriggerAddCondition( gg_trg_Blink_Strike, Condition( function Trig_Blink_Strike_Conditions ) )
    call TriggerAddAction( gg_trg_Blink_Strike, function Trig_Blink_Strike_Actions )
endfunction
 
well your triggers is pretty good but the erros is that doesnt exist a "point"
u can use location.. like this:
function Trig_Blink_Strike_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A001' ) ) then
return false
endif
return true
endfunction

function Trig_Blink_Strike_Actions takes nothing returns nothing
local unit Blink_Casting_Unit
local location Blink_Casting_Point
local unit Blink_Target_Unit
set Blink_Casting_Unit = GetSpellAbilityUnit()
set Blink_Casting_Point = GetUnitLoc(Blink_Casting_Unit)
set Blink_Target_Unit = GetSpellTargetUnit()
call SetUnitPositionLoc( Blink_Casting_Unit, GetUnitLoc(Blink_Target_Unit) )
call UnitAddAbilityBJ( 'A000', Blink_Casting_Unit )
call IssueTargetOrderBJ( Blink_Casting_Unit, "thunderbolt", Blink_Target_Unit )
call UnitRemoveAbilityBJ( 'A000', Blink_Casting_Unit )
call SetUnitPositionLoc( Blink_Casting_Unit, Blink_Casting_Point )
endfunction

//====================================================================== =====
function InitTrig_Blink_Strike takes nothing returns nothing
set gg_trg_Blink_Strike = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Blink_Strike, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Blink_Strike, Condition( function Trig_Blink_Strike_Conditions ) )
call TriggerAddAction( gg_trg_Blink_Strike, function Trig_Blink_Strike_Actions )
endfunction
 
ah, so the 'point' variable doesnt exist? got it! thanks man :-D
hmm... something about your scripts crashed WE...
is there something that allows you to do JASS outside of WE? and if so does it correct errors and can i get a link?

fixed it...
Code:
function Trig_Blink_Strike_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'A001' ) ) then
        return false
    endif
    return true
endfunction

function Trig_Blink_Strike_Actions takes nothing returns nothing
    local unit Casting_Unit
    local unit Target_Unit
    local location Casting_Point
    set Target_Unit = GetSpellTargetUnit()
    set Casting_Unit = GetSpellAbilityUnit()
    set Casting_Point = GetUnitLoc(Casting_Unit)
    call SetUnitPositionLoc( udg_Temp_Unit, GetUnitLoc(udg_Target_Unit) )
    call UnitAddAbilityBJ( 'A000', udg_Temp_Unit )
    call IssueTargetOrderBJ( udg_Temp_Unit, "thunderbolt", udg_Target_Unit )
    call UnitRemoveAbilityBJ( 'A000', udg_Temp_Unit )
    call SetUnitPositionLoc( udg_Temp_Unit, udg_Temp_Point )
endfunction

//===========================================================================
function InitTrig_Blink_Strike takes nothing returns nothing
    set gg_trg_Blink_Strike = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Blink_Strike, EVENT_PLAYER_UNIT_SPELL_CAST )
    call TriggerAddCondition( gg_trg_Blink_Strike, Condition( function Trig_Blink_Strike_Conditions ) )
    call TriggerAddAction( gg_trg_Blink_Strike, function Trig_Blink_Strike_Actions )
endfunction

still need that jass tool...
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top