HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help me out.

03-26-2007, 01:26 AM#1
darkened-angel
Ok I have all my triggers working fine. But my question is this. How do I make the 2 units cast my spell at the same time and work? I swear I am having a brain fart. What I mean is I need to code it so one trigger can work for 12 players at the same time if they cast the spell I am wonder is this is possible. I can do it with the trigger it self. But when I need to use every .02 second trigger I seem to run into issues. Sorry if this seems like a total noob question. But I swear it once of those days.
03-26-2007, 06:55 PM#2
darkened-angel
Can someone please help me out.
03-26-2007, 07:00 PM#3
thehellman
I'm having trouble understanding what you need.

Are you trying to make a spell multi-instanceable?

Or make 2 units cast an ability at the same time?

Or something totally different.
03-26-2007, 07:20 PM#4
Alevice
Quote:
Originally Posted by darkened-angel
Ok I have all my triggers working fine. But my question is this. How do I make the 2 units cast my spell at the same time and work? I swear I am having a brain fart. What I mean is I need to code it so one trigger can work for 12 players at the same time if they cast the spell I am wonder is this is possible. I can do it with the trigger it self. But when I need to use every .02 second trigger I seem to run into issues. Sorry if this seems like a total noob question. But I swear it once of those days.

You seem to want to make it Multi-User Instanceable (MUI). Do a search on that.
03-26-2007, 07:54 PM#5
Anopob
As the above user said, try searching on MUI, local variables, etc.
03-26-2007, 08:22 PM#6
thehellman
http://www.wc3campaigns.net/showthread.php?t=86850

If that's what you are looking for.
03-27-2007, 12:11 PM#7
darkened-angel
Yes i am looking for a Wait to make a MUI in gui for my spell. Hmm here my issue thou. One of my spell moves a units every .02 how do i make the MUI work with that.
03-27-2007, 07:47 PM#8
Anopob
Make a local variable, set it, then do the actions?
03-27-2007, 08:25 PM#9
thehellman
I don't think he knows how to use JASS. You have to make a global array and set each unit when the spell is cast set unit[player number] = whatever unit, turn on the movement trigger.
03-28-2007, 06:11 PM#10
darkened-angel
haha to the above post. u re mostly right i a new to Jass. And i already have it working they way you are talking about. I will give example.

Unit cast a spell
Spell = move
Set caster(player index(owner of casting unit)) = caster of (move)
enable trigger on.

Every .02 seconds.
Conditions = none
here is my issues how to sent the value to this trigger from the one above without using jass.

I would have put it in trigger code but i am at work and do not have access to my map to copy it out.