tooltiperror
Super Moderator
- Reaction score
- 231
It doesn't mater because you still can't have a local function ...
native GetMouseTerrainy takes nothing returns real
native GetMouseTerrainX takes nothing returns real
scope Slam
function Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A005' ) ) then
return false
endif
return true
endfunction
function Actions takes nothing returns nothing
local real Agle = AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()), Location(GetMouseTerrainX, GetMouseTerrainY))
call SetUnitFacingToFaceLocTimed( GetTriggerUnit(), Location(GetMouseTerrainX, GetMouseTerrainY), 0 )
call UnitDamagePointLoc( GetTriggerUnit(), 0, 50.00, PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()), 50.00, Agle), 100, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
//===========================================================================
function InitTrig_Slam takes nothing returns nothing
local trigger Slam = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( Slam, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( Slam, Condition( function Conditions ) )
call TriggerAddAction( Slam, function Actions )
endfunction
endscope
Of course not, if they were, no one would use RtC.
I was asking a new questionAlso, edit use it.
How are the functions programmed in RtC? You should be able to make them yourself without RtC, just the same as RtC made them right?
I heard it RtC maps can only be played by people with RtC...
So if you are able to code these functions without RtC everyone can play the map
I think everyone is just lazy to think of programming the functions themselfs and therefore uses RtC.Code:Of course not, if they were, no one would use RtC.
I was asking a new question
As DIY said, by hacking/modding the Wc3 engine.How are the functions programmed in RtC?
The opposite is true. If you code those functions yourself, you create a new mod. Everyone who would want to play your maps would have to use your personal mod.I heard it RtC maps can only be played by people with RtC...
So if you are able to code these functions without RtC everyone can play the map
That's not the point.I think everyone is just lazy to think of programming the functions themselfs and therefore uses RtC.
There's no reason to NOT still work with WC3. It's still a great game. People will still play it. RtC is a great resource for people to make maps for people who still play it. I for one will not completely move to SC2.
I'm moving this thread to the main WE Help forum and sticking it. Seems to be more of a quick guide to get up and running rather that a real full tutorial. But of course it is still useful, so I'll keep it here for a while.