| 05-31-2004, 02:38 PM | #1 |
Hi, I', sorry if this is supposed to be posted in the JASS forums, but I don't think its allowed to ask questions in there. So I'm posting it here snice it is trigger and all. Regardless, the problem is with this trigger: function Trig_Deaths_Door_Conditions takes nothing returns boolean if ( not ( GetSpellAbilityId() == 'A004' ) ) then return false endif return true endfunction function Trig_Deaths_Door_Actions takes nothing returns nothing call PauseUnitBJ( true, GetSpellTargetUnit() ) call TerrainDeformCrater(GetSpellTargetUnit(), GetSpellTargetUnit(), 45.6, 4, 2700, true) call TriggerSleepAction( 15.00 ) call DestroyEffectBJ( GetLastCreatedEffectBJ() ) call DesotryTerrainDeformationBJ( GetLastCreatedTerrainDeformation() ) call SetUnitLifeBJ( GetSpellTargetUnit(), 50.00 ) call PauseUnitBJ( false, GetSpellTargetUnit() ) endfunction //=========================================================================== function InitTrig_Deaths_Door takes nothing returns nothing set gg_trg_Deaths_Door = CreateTrigger( ) call TriggerRegisterUnitEvent( gg_trg_Deaths_Door, gg_unit_Nbrn_0000, EVENT_UNIT_SPELL_CAST ) call TriggerAddCondition( gg_trg_Deaths_Door, Condition( function Trig_Deaths_Door_Conditions ) ) call TriggerAddAction( gg_trg_Deaths_Door, function Trig_Deaths_Door_Actions ) endfunction I get these two errors: Line 33: Invalid argument type (unit) {thats the SleepOnAction part} and Line 35: Expected Function Name (unit) {that would be the DestroyLandDeformation} What I'm surprised about is that the SleepOnAction, was put in there by the WE itself when I converted the trigger to JASS! |
| 05-31-2004, 03:26 PM | #2 |
Why exactly is this in Jass? |
| 05-31-2004, 07:32 PM | #3 |
Yeah its not like you couldnt do that trigger in GUI. |
| 06-01-2004, 07:44 PM | #4 |
Here is some actual help: :P call DesotryTerrainDeformationBJ( GetLastCreatedTerrainDeformation() ) is mispelled, it is call DestroyTerrainDeformationBJ( GetLastCreatedTerrainDeformation() ) call TerrainDeformCrater(GetSpellTargetUnit(), GetSpellTargetUnit(), 45.6, 4, 2700, true) is simply all wrong. The way TerrainDeformCrater is used TerrainDeformCrater takes real x, real y, real radius, real depth, integer duration, boolean permanent returns terraindeformation So instead of units, it should be a couple of reals. Maybe you wanted it to happen at the position of the units? |
