HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can somebody explain to me Vex's Caster System?

10-15-2006, 01:16 PM#1
Toink
Can someone here explain how Vex's Caster System works? I dunno what to do, I implemented it then stared at it. Are these just functions that are ONLY used for being called? Can someone please help, I'm trying to create a simple Collision Missile code but I can't understand this.
10-15-2006, 01:29 PM#2
zen87
we need to know how much you know about JASS before explaning stuff to you... for the least, do you know whats these ?
- paramemter
- takes xxx, xxx, xxx (what does these takes stuff mean)
10-15-2006, 02:13 PM#3
arpha_storm
Vex's CS is t3h sex. You can do many many things with it (d'oh). You should read the module documentations attached. If you want, I can PM you some spells I made using his system. People usually value it for its CSCache system, especially the tables.

And yes, these functions are for calling. And uh, I agree with zen87.
10-15-2006, 02:19 PM#4
Vexorian
hmnn , collisionmissiles are not exactly the best thing for the first JASS functions you ever call, mostly because the _Create argument list is kind of long but here is a sample:


Collapse JASS:
function Collitest_Hit takes nothing returns nothing
    call CollisionMissile_Destroy(GetTriggerCollisionMissile() )
endfunction

function Trig_Collitest_Actions takes nothing returns nothing
    call CollisionMissile_Create("somemodel\\path.mdl",0.0,10.0, 45.0 ,  600. , 0 , 1500.0 ,  60.0 ,true, 55 ,function Collitest_Hit )
endfunction



It will create a missile in 0,10 with 45º of direction, will move towards up to 1500.0 terrain units , have a 55.0 of collision and 600.0 of speed, it will explode when it impacts a unit.

Of course, you'd probably want to change "somemodel\\path.mdl" to a real model's path.

For collisionmissiles to be usable you most of the times need to attach information to them, for example in an ability cast you'd have to attach info to a collisionmissile like the unit that caster the spell so you can make the collisionmissile deal damage for that unit and stuff.

The inferno spell shows how complicated collisionmissiles can be, altough I think Hydra is a more pure collisionmissile usage spell.

--
I think reading a good jass tutorial won't hurt you: http://www.wc3campaigns.net/tutorials.php?f=650
10-15-2006, 03:26 PM#5
alzidaney
Meh. I would like to hitch this thread since its about the same thing. I'm in the same boat as the thread starter. Only thing, I've read the readme and tried out the test map. Yes the spells are cool and awesome. But I don't get how to implement them. Especially when the test spells use GUI + JASS.

And I do have basic knowledge on JASS though. Functions, loops, parameters i know. What Im bad at, is implementing and manipulating. :(
10-15-2006, 03:34 PM#6
zen87
hmmph btw vex, is your hydra spell finalised ? I'll like to use it in my map :D~
10-15-2006, 04:54 PM#7
BertTheJasser
@zen87: Hydra bugs are fixed (at least all we know till today). Search for "Hydra - hopefully last test" you should find the map at the top of the thread.

@Vexorian: Iguess you mean
Collapse JASS:
function Trig_Collitest_Actions takes nothing returns nothing

@Toink: You seem to be quite new to the world of jass. So first read the jass tutorail jass mentioned. After that you should dl some simple spells and have a lock at and try to change something (dl WEhelper and JassCraft before, they realy help you) or just convert some GUI actions (if you are familiar wiot them) and learn from the corresponding(?) jass funcs. If still do not feel like having the control over what happens, .. oh well, time will give you the knowledge but only if you keep on trying.
All in all: Be beware that CS is one of the must comlictest systems existant in the world of jass (especially the movment part of missiles/projectiles)

Poem:
Try
Fail
Try again
Fail better
(or something similar)
10-15-2006, 06:36 PM#8
Vexorian
Quote:
Originally Posted by alzidaney
Meh. I would like to hitch this thread since its about the same thing. I'm in the same boat as the thread starter. Only thing, I've read the readme and tried out the test map. Yes the spells are cool and awesome. But I don't get how to implement them. Especially when the test spells use GUI + JASS.

And I do have basic knowledge on JASS though. Functions, loops, parameters i know. What Im bad at, is implementing and manipulating. :(
Yeah, I am planning of stick to JASS only samples they would be much easier to understand in fact

bert: Yes, I forgot the takes nothing returns nothing
Quote:
must comlictest
What?
10-16-2006, 09:24 AM#9
Toink
Hey I'm not totally noob at JASS. I can only do simple things, I still don't know how to slide units in JASS, What I want to do is make a shockwave-ish spell fully made in JASS but only hits 1 unit, and knocks it backwards. I think the only best way for me to learn is to see a working JASS code, that's how I got started in GUI. It might take me like 1 month to get fluent in JASS.
10-16-2006, 01:21 PM#10
BertTheJasser
I meant complicatest, forget the must.

As I meantioned. Have a look at some jass spells wherever you can.
Tip: To slide a unit, you must have a kind of attachment system and a periodic timer with cycle less than or equal 0.05 (depending on speed)