(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 10-03-2007, 07:09 PM   #1 (permalink)
 
Need_O2's Avatar

meow
 
Join Date: Aug 2007
Posts: 2,528

Need_O2 is a jewel in the rough (183)Need_O2 is a jewel in the rough (183)


Need help serius

UPS just forgot to add "if"
DELETE PLEASE

Heyya I coppied and edited fan of knives
and have a code with it to use
function Trig_Death_Cry_Actions takes nothing returns nothing
local unit caster
local real x
local real y
set x = GetUnitX(GetTriggerUnit())
set y = GetUnitY(GetTriggerUnit())
set caster = CreateUnitAtLoc(GetOwningPlayer(GetTriggerUnit()),'h00C',Location(x,y),bj_UNIT_FACING)
call SetUnitAbilityLevel(caster,'A00U',GetUnitAbilityLevel(GetTriggerUnit(),'A00W'))
call IssueImmediateOrderBJ(caster,"fanofknives")
call UnitApplyTimedLife(caster,'BTLF',2)
set caster = null
endfunction

//===========================================================================
function InitTrig_Death_Cry takes nothing returns nothing
    set gg_trg_Death_Cry = CreateTrigger( )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Death_Cry, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddAction( gg_trg_Death_Cry, function Trig_Death_Cry_Actions )
endfunction
Anyway It shuts the game with no errors when I cast the spell h00C is a dummy spell caster btw and A00U is ability to cast by dummy caster (its fan of knives based too) and A00W is ability that hero casts
Need_O2 is offline  
Old 10-04-2007, 10:01 AM   #2 (permalink)
 
YoshiRyu's Avatar

WC3 System's hijacker
 
Join Date: Jun 2007
Posts: 699

YoshiRyu is on a distinguished road (71)YoshiRyu is on a distinguished road (71)


an advice: indenting your code make it more readable
like this:
Code:
function a_stupid_function takes integer a_param returns integer
  local integer a_variable
    set a_variable = 2*a_param
    if (a_variable>=16) then
      return a_variable
    endif
    return 0
endfunction
__________________
/ YoshiRyu, french goblin engineer, map maker
/
/ Here are my current projects :
/ Gridwar project (alpha) : a board game with some warcraft's typical features.
/ Battle Chess 1.0 (release) : a humans vs orcs traditionnal chess game.
/ Please give your opinion.
YoshiRyu is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recipe System need serius help Tan World Editor Help Zone 9 10-02-2007 06:11 PM
Big Problem!! Need serius help from a top guy. X-Abe Map Development 8 03-19-2005 05:08 AM

All times are GMT. The time now is 06:16 AM.






Your link here 
Bankruptcy | Loans | Car Accident Attorney Los Angeles | Web Advertising | Loans
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle