[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > Triggers & Scripts


Triggers & Scripts In this forum you may ask for help on fixing a trigger or script. But if you need help getting started with a trigger, this is not the right place — use the World Editor Help Zone.

Closed Thread
 
Thread Tools
Old 07-22-2008, 11:58 PM   #1 (permalink)
Registered User Dragon_Lancer
Why did I leave again?
 
Dragon_Lancer's Avatar
 
Join Date: Jul 2008
Posts: 78
Dragon_Lancer has little to show at this moment (2)
Simple Jass Question

Jass:
function Trig_spell_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'ANsb' ) ) then
        return false
    endif
    return true
endfunction

I need help. it says that on the first line says i need a initilization in it (
Jass:
function --> InitTrig_spell_Condition takes nothing returns nothing
) I want it so it only works when a unit casts an ability. (if confusing please say so)
Dragon_Lancer is offline  
Old 07-23-2008, 01:01 AM   #2 (permalink)
Registered User GhostWolf
User
 
Join Date: Jul 2007
Posts: 2,868
GhostWolf is a name known to all (658)GhostWolf is a name known to all (658)
Couldn't quite get what you want, ask, say, or whatever that was, but you should use "return statement" instead of "if condition return true else return false", for example:
Jass:
function Trig_spell_Conditions takes nothing returns boolean
    return GetSpellAbilityId() == 'ANsb'
endfunction
GhostWolf is offline  
Closed Thread

Bookmarks

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple JASS spell PaperJack Requests 0 07-07-2008 12:44 PM
[JASS] Simple Jass Question ChaosWar Triggers & Scripts 3 10-11-2007 09:06 PM
Simple Spell Help (JASS) Silvenon Triggers & Scripts 6 08-16-2007 07:14 AM
[JASS] Simple Jass Code Deep Sea Kraken Triggers & Scripts 5 04-15-2007 03:44 PM
[JASS] 2 simple(ish) questions about JASS ApM Triggers & Scripts 1 04-18-2005 09:07 AM

All times are GMT. The time now is 09:27 PM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle