wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 05-07-2006, 02:55 PM   #1
ShadowDestroyer
User
 
ShadowDestroyer's Avatar
 
Join Date: Jan 2006
Posts: 375

ShadowDestroyer is on a distinguished road (15)

Send a message via AIM to ShadowDestroyer
Default Knockback Help

I was using the knockback map by vile. When I imported all the needed triggers for just the knockback unit, i had 272 compile errors. I imported all the variables, what am i doing wrong?
ShadowDestroyer is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 05-07-2006, 03:06 PM   #2
Meanie
User
 
Join Date: Dec 2005
Posts: 152

Meanie is on a distinguished road (13)

Default

You need too import some stuff from the Custom Script(CS Cache, an part of Caster System), so try downloading Vexorians Caster System to get the needed system.(Atleast i think it was CS)
Meanie is offline   Reply With Quote
Old 05-07-2006, 03:27 PM   #3
vile
n00b map maker
 
Join Date: Jul 2005
Posts: 599

Submissions (5)

vile will become famous soon enough (60)vile will become famous soon enough (60)vile will become famous soon enough (60)

Send a message via ICQ to vile Send a message via AIM to vile Send a message via MSN to vile
Default

Click on the VilesKnockbackFunctions.w3x file in the triggers section, and paste what is in there to your map. Also make a global variable named cscache and define it as Game Cache.
__________________
Check out my maps:
Age of Myths
Deadly Games
Magic & Steel New Project is kicking in!

TEASER TRAILER
vile is offline   Reply With Quote
Old 05-07-2006, 05:44 PM   #4
ShadowDestroyer
User
 
ShadowDestroyer's Avatar
 
Join Date: Jan 2006
Posts: 375

ShadowDestroyer is on a distinguished road (15)

Send a message via AIM to ShadowDestroyer
Default

Ok, now I am only experiencing 15 compile errors. I think they are from variables that I do not have, but I copied all of the variables that you have listed in the variables dialog...

Edit, no, thats not it... I just added all those variables
Just a note, they are all occuring on the unit knockback trigger, oddly enough, every line doesn't work... 15 lines, 15 mistakes

Last edited by ShadowDestroyer : 05-07-2006 at 05:59 PM.
ShadowDestroyer is offline   Reply With Quote
Old 05-07-2006, 06:06 PM   #5
Captain Griffen
Dread Lord of the Cookies
 
Captain Griffen's Avatar


Content Director
 
Join Date: Sep 2003
Posts: 5,367

Submissions (2)

Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)

Approved Map: Warlords[Quicksilver #2] - 1st Place

Default

Post the trigger.
__________________
Quote:
Originally Posted by Earth-Fury
Griffen is correct, you are not.
Quote:
[13:32] <Akolyt0r> hmm.. stil i want to have some unused women
Captain Griffen is offline   Reply With Quote
Old 05-07-2006, 06:18 PM   #6
ShadowDestroyer
User
 
ShadowDestroyer's Avatar
 
Join Date: Jan 2006
Posts: 375

ShadowDestroyer is on a distinguished road (15)

Send a message via AIM to ShadowDestroyer
Default

Collapse JASS:
local location casterloc = GetUnitLoc(GetSpellAbilityUnit())
local location targetloc = GetUnitLoc(GetSpellTargetUnit())
local real angle = AngleBetweenPoints(casterloc, targetloc)
local interger lvl = GetUnitAbilityLevel(GetSpellAbilityUnit(),'A05P:AHtb')
local real dist
local real break
call removelocation(casterloc)
call removelocation(targetloc)
set dist = 35
set break = 1.25-(.15*l2R(lvl))

The problem is, all the triggers work fine until I use the custom script in the GUI. Should I just write it in pure jass, without the Custom Script command?

Last edited by ShadowDestroyer : 05-07-2006 at 06:19 PM.
ShadowDestroyer is offline   Reply With Quote
Old 05-07-2006, 06:26 PM   #7
Captain Griffen
Dread Lord of the Cookies
 
Captain Griffen's Avatar


Content Director
 
Join Date: Sep 2003
Posts: 5,367

Submissions (2)

Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)

Approved Map: Warlords[Quicksilver #2] - 1st Place

Default

Yes. GUI/JASS hybrids should be avoided aside from the odd line.
__________________
Quote:
Originally Posted by Earth-Fury
Griffen is correct, you are not.
Quote:
[13:32] <Akolyt0r> hmm.. stil i want to have some unused women
Captain Griffen is offline   Reply With Quote
Old 05-07-2006, 06:40 PM   #8
blu_da_noob
Nonchalant
 
blu_da_noob's Avatar


Respected User
 
Join Date: Mar 2006
Posts: 1,933

Submissions (2)

blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)

[Quicksilver #2] - 2nd Place[Quicksilver#1] 1st place

Send a message via MSN to blu_da_noob
Default

Capatilisation and spelling is important in jass. Fixed up your minor ones:
Collapse JASS:
local location casterloc = GetUnitLoc(GetSpellAbilityUnit())
local location targetloc = GetUnitLoc(GetSpellTargetUnit())
local real angle = AngleBetweenPoints(casterloc, targetloc)
local integer lvl = GetUnitAbilityLevel(GetSpellAbilityUnit(),'AHtb') //rawcodes are just the last four digits
local real dist
local real break
call RemoveLocation(casterloc)
call RemoveLocation(targetloc)
set dist = 35
set break = 1.25-(.15*I2R(lvl))
__________________
blu_da_noob is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 09:18 AM.


Donate

Affiliates
The Hubb http://bylur.com - Warcraft, StarCraft, Diablo and DotA Blog & Forums The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2013, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services