HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Making a spell.

03-18-2008, 01:48 PM#1
dabest2503
Im trying to make a spell, X, when casted, automatically casts another spell, Y, infront of the casting unit by Z distance.

I can't figure out how to do this, but I can make spells which are targeted at a set amount of degree.

For example, spell X is a dummy spell with no target. When casted, creates a dummy which casts spell Y at the position the casting unit is facing, but spell Y casted is Z distance away from casting unit.

Is it possible to do this using only triggers? (I haven't learnt how to use JASS)
03-18-2008, 02:01 PM#2
RolePlaynGamer
Quote:
Originally Posted by dabest2503
Is it possible to do this using only triggers?

Yes it is. Could you tell more about what spell you want Y to be? And the Z point, should this point change based on the target point of spell X?
03-20-2008, 01:40 PM#3
dabest2503
Spell Y could be anything. For example, cluster rockets.

For the question on point Z, yes and no. Can you please tell me how to do both?
03-21-2008, 12:32 AM#4
Gorman
Trigger:
Dummy spell
Collapse Events
Unit - A unit Finishes casting an ability
Collapse Conditions
(Ability being cast) Equal to X
Collapse Actions
Unit - Create 1 Generic Dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees
Unit - Add Y to (Last created unit)
Unit - Order (Last created unit) to Y ((Position of (Triggering unit)) offset by 'Z' towards (Facing of (Triggering unit)) degrees)
Unit - Kill (Last created unit)

That should work, so long as Y is based off a spell that can be ordered to be cast, otherwise ur gonna hav a fair ammount more work to do...
03-21-2008, 04:11 AM#5
dabest2503
Thanks alot! It works.
03-21-2008, 03:02 PM#6
Gorman
i hav helped lik 10 people in the last 2 days... but my rep has not increased... maybe i should add the little "reo me if i help" thing that lots of people hav in their sigs...