Chocobo
White-Flower
- Reaction score
- 409
<only for people who uses graphic calculators, since my script is using an "interface" almost like the ones in these calculators : Lists and variables>
Originally from there : http://www.thehelper.net/forums/showthread.php?t=125344
And here : http://www.thehelper.net/forums/showthread.php?t=124870 (very old thing I made 1 year ago through)
If you do not know what it does, here is a video showing what it can do :
(credits to LauraeLc2 who made the video for me)
This is the (ugly) code I'm using for that :
(source code in second post)
Is there anyway to "shorten" the code or to make the code more efficient (or more readable at least)?
is the function that does almost everything : pick degree of the parametric functions, the duration, which graph you want (normal or bezier), the delay between lightnings, the lightning you want, the precision of lightnings (use more or less lightnings), if it's an "additive" (that doesn't reset lightning count), if it has to delay the lightning destroy (so they destroy all together when it's false), and if it's the last lightning you are doing (used for "GetTime").
I guess that's too long to explicit everything. Would there be a shorter way of doing what I'm trying to do?
Another question : How would I make it multi instanceable? (could not perform two graphs at same time, or "not able to draw a graph while another graph is being graphed") and without making it slow? (I start to have small problems when delay is set to 0.0, sometimes my computer freezes for 0.5s but I think it depends on the lightning effect I use, I wrote if it's "laggy" or not in the function "LightningList")
Originally from there : http://www.thehelper.net/forums/showthread.php?t=125344
And here : http://www.thehelper.net/forums/showthread.php?t=124870 (very old thing I made 1 year ago through)
If you do not know what it does, here is a video showing what it can do :
(credits to LauraeLc2 who made the video for me)
[youtube]O0nd0fK2-JQ[/youtube]
this is what I try to reproduce :
[YOUTUBE]ryHYO7HP9p8[/YOUTUBE]
this is what I try to reproduce :
[YOUTUBE]ryHYO7HP9p8[/YOUTUBE]
This is the (ugly) code I'm using for that :
(source code in second post)
Is there anyway to "shorten" the code or to make the code more efficient (or more readable at least)?
JASS:
is the function that does almost everything : pick degree of the parametric functions, the duration, which graph you want (normal or bezier), the delay between lightnings, the lightning you want, the precision of lightnings (use more or less lightnings), if it's an "additive" (that doesn't reset lightning count), if it has to delay the lightning destroy (so they destroy all together when it's false), and if it's the last lightning you are doing (used for "GetTime").
I guess that's too long to explicit everything. Would there be a shorter way of doing what I'm trying to do?
Another question : How would I make it multi instanceable? (could not perform two graphs at same time, or "not able to draw a graph while another graph is being graphed") and without making it slow? (I start to have small problems when delay is set to 0.0, sometimes my computer freezes for 0.5s but I think it depends on the lightning effect I use, I wrote if it's "laggy" or not in the function "LightningList")