| 01-16-2008, 10:23 PM | #1 |
Im making a system, expanded from my scene system tat i posted here sometime earlier. Wat it will do is tat it allow waits with 0.01 sec exact by abusing textmacros. It allow locals, but these locals are reset after each wait. But u can still use them for temporary calculation between waits. It require vJass, and that also means u can just declare globals on top of the textmacros to use inside for passing vars between waits. In addition im planning to make a custom loop for it, so u can have loop with accurate wait. dont know how people will like to try this system. The wait text macro is really simple: //! runtextmacro Wait("<seconds>") download of demo: http://www.wc3campaigns.net/attachme...3&d=1200649566 |
| 01-16-2008, 10:35 PM | #2 |
Seems useful, if it works properly. So this thing is accurate to two decimal places? |
| 01-17-2008, 09:53 AM | #3 |
it is accurate down to 0.01. it means the minimum wait is 0.01. waits lower than tat will be 0.01. So yes u can say its correct down to 2 demicals |
| 01-17-2008, 10:43 AM | #4 |
Nice idea. |
| 01-17-2008, 03:09 PM | #5 | |
Quote:
boo could still be useful for some applications |
| 01-17-2008, 05:15 PM | #7 |
atm im trying to figure out the loop... Its a bit tricky |
| 01-17-2008, 05:33 PM | #8 |
in anycase, this could be a very neat addition, and would eliminate the need for attchment systems to anything but triggers and units, as well as complicated timer systems aside from that, accurates waits in themselves would be very beneficial in themselves, even without being able to keep locals |
| 01-18-2008, 08:46 AM | #9 |
DEMO map so far, the system is working. but loops and some other things isnt added. But still useful |
| 01-18-2008, 09:27 AM | #10 |
Really nice, but i don't understand how to change the function name : JASS://! runtextmacro NewScene("TestA")And how to use a local, i tried this, but it doesn't work : set myGlobal = myLocal // use myGlobal |
| 01-18-2008, 11:12 AM | #12 |
//! runtextmacro NewScene("TestA") TestA is the name, you just change that. example you can ahve many scene functions: JASS://! runtextmacro NewScene("TestA") //! runtextmacro EndScene() //! runtextmacro NewScene("TestB") //! runtextmacro EndScene() what do u mean by local... you can declare local like this: JASS://! runtextmacro NewScene("TestA") local integer MyInteger lolcal real MyReal //! runtextmacro WaitOn() // Now you can use Wait //! runtextmacro EndScene() |
| 01-18-2008, 11:29 AM | #13 |
i got a compile error when i try to change the name on your Scenes trigger : JASS://! runtextmacro NewScene("TestB")for the local it would be great if we can use them, if not the system is useless (for me). and yes it's what you had written |
| 01-18-2008, 12:19 PM | #14 |
u need jasshelper version 0.9.9.7 and when u rename it u get error prolly cus u didnt change the Test trigger either... which is obvious. And you can use locals, just they will be reset after each wait. If this is useless then dont use it :D |
| 01-18-2008, 12:29 PM | #15 |
no offense, i mean no need to use it for me, it's still good for a cinematic system. sorry i didn't see the trigger test >< |
