HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Graphing

08-06-2008, 01:12 AM#1
CrazedCustom
Hello my request for this post is how to make a circle with special effects in trigger editor.

I tried this

event and conditions set up then

Action: if level of circle = 1
then create special effect at 360, 0
then create special effect at 350, 10
then create special effect at 340, 20
then create special effect at 330, 30
etc.
help would be appreciated!
08-06-2008, 01:50 AM#2
Here-b-Trollz
I'd suggest polar coordinates. Get a single point that is your circle center, and then do:

Trigger:
Actions
Collapse For each (Integer A) from 1 to <Num of Effects>, do (Actions)
Collapse Loop - Actions
Special Effect - Create a special effect at (<Circle Center> offset by <Circle Radius> towards ((Real((Integer A))) x (360 / <Num of Effects>) degrees) using <Effect Path>

And then put in the numbers and such that you need.
08-06-2008, 01:51 AM#3
darkwulfv
You're going to have to know some math for this.

But basically, project points in a circle;
X/Y is the center
R is 360 divided by the number of instances, so in this case 360 / 36. (10)
distance is how far away from the center the effects are.
Collapse JASS:

  loop
    exitwhen i > 36
    set x2 = X + distance * Cos((R * i) * bj_DEGTORAD) 
    set y2 = Y + distance * Sin((R * i) * bj_DEGTORAD)
    call AddSpecialEffect("path", x2, y2)
    set i = i + 1
  endloop



And Here-b-Trollz (fixed) method leaks like, 3 locations.
08-06-2008, 01:58 AM#4
Here-b-Trollz
Quote:
Originally Posted by darkwulfv
You're going to have to know some math for this.

But basically, project points in a circle;
X/Y is the center
R is 360 divided by the number of instances, so in this case 360 / 36. (10)
distance is how far away from the center the effects are.
Collapse JASS:

  loop
    exitwhen i > 36
    set x2 = X + distance * Cos((R * i) * bj_DEGTORAD) 
    set y2 = Y + distance * Sin((R * i) * bj_DEGTORAD)
    call AddSpecialEffect("path", x2, y2)
    set i = i + 1
  endloop



And Troll-Brains method leaks like, 3 locations.
1) Fuck you, Werewulf, I'm not Troll Brain
2) It's the principle of the thing, not about cleaning leaks....
3) Since he can't even use a trigger tag properly, what makes you think he'd understand jass?
4) You totally posted what I posted... but in Jass.
08-06-2008, 02:07 AM#5
darkwulfv
Quote:
1) Fuck you, Werewulf, I'm not Troll Brain
Fuck you Trollz, I'm not Werewulf.

Quote:
2) It's the principle of the thing, not about cleaning leaks....
Quote:
3) Since he can't even use a trigger tag properly, what makes you think he'd understand jass?
And what makes you think he's know to clean those leaks?

Quote:
4) You totally posted what I posted... but in Jass.
Yeah, you posted while I was posting. Not to mention the JASS method is 10x cleaner in so many ways.
08-06-2008, 02:19 AM#6
Here-b-Trollz
I agree with all of that, but:

1) it took me about 5 minutes of clicking to find a name with wulf in it
2) One thing at a time I always say.
08-06-2008, 11:16 AM#7
Tide-Arc Ephemera
Just fucking teach concepts, god.

Polar Coordinates use two things: angle and distance
Cartesian Coordinates are the regular grid coords, x and y.

Of course there are ways to convert between them, but when using GUI don't bother because it's supposedly much slower.

Use Trollz's method, but remember that 0 degrees is east/our right, 90 degrees is north/upwards, 180 degrees is west/our left and points if you can guess 270 and 360.

Sorry about no example trigger, but I don't have access to World Editor right now. Hope this info helps!
08-06-2008, 06:08 PM#8
CrazedCustom
Alright i am sharing my first secret I SUCK AT MATH 2x9=11 for me! all I want is to make a special effect in the shape of a circle around a unit can anyone like post/recommend a tutorial for me or make a model that makes a circle and special effects i dont care what special effect u use (prefferably flamestrike, awaken hero or mark of chaos) or I know this might be a jump..... make a map for me so i can study it and create my circle btw darkwulf and trolls don't get into an internet brawl read text below to see why
----------------------------------------------
Winning an online argument is similar to winning the olympics eather way you just are retarded

o and if anyone wants to see what I have made for buttons (still targa so u can edit them) here they are they are moons and cool celestial activity i.e. solar eclispe blood moon and a kick ass nebula that looks like red magic (to me at least)
Attached Images
File type: tgaJewel of the Sky.tga (9.5 KB)
File type: tgaBlood of the Sky.tga (9.5 KB)
File type: tgaMana corruption.tga (9.3 KB)
08-07-2008, 12:25 AM#9
Raydude
im pretty sure they're just saying this...

Trigger:
Untitled Trigger 001
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Reveal (Used)
Collapse Actions
Set User = (Triggering unit)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Reveal (Used) for User) Equal to 1
Collapse Then - Actions
Collapse For each (Integer A) from 1 to 10, do (Actions)
Collapse Loop - Actions
Special Effect - Create a special effect at ((Position of User) offset by 256.00 towards ((Real((Integer A))) x 36.00) degrees) using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
Else - Actions

i think if u wanna fix leak u could always set variable(point) and call remove it in the loop and 36 is 360/10 since...u said u dont math
08-26-2008, 03:31 AM#10
CrazedCustom
OK thanks now what if i want to make a pentagramm? thoughts and tutorials are welcome.
08-26-2008, 05:15 AM#11
rulerofiron99
Pentagram = 5 points, so use what you have learned earlier in this hijack'd thread. Go figure.




Just kidding :D

I suggest you use a simple doodad for this instead of triggers - make a dummy unit with locust and for the model, use the pentagram-shaped rune found in Black Citadel. It's under doodads, called Rune ## or something. Then just add a 2 or so second expiration timer (however long you want the thing to last)
08-26-2008, 02:25 PM#12
Askhati
Wow... Someone asks for help, and it turns into a flame war between two arrogant juveniles. You should be ashamed of yourself.

Raydude's method should be adequate, and can be used for many purposes - a ring of trees, a circle of fire (fire trap FX), etc.
08-30-2008, 04:13 PM#13
CrazedCustom
No a pentagramm made of runes i dont want to use doodads like that skill on youtube http://www.youtube.com/watch?v=0hyNv...eature=related
08-30-2008, 05:10 PM#14
rulerofiron99
The skills in the video will rape your pc. Hard.

It's basically just mass arrayed SFX.
08-30-2008, 06:02 PM#15
CrazedCustom
Alright now, i have seen people make it so special effects are sideways, how do you do that?