New fashion of scripting (single txt solution)

  • Thread starter Thread starter utunnels
  • Start date Start date
U

utunnels

Guest
Get latest build here:
https://www.dropbox.com/sh/gv17zu4f543ft6x/mdBDaZqByz/releases

Now you can write scripts directly in txt files, using inline script tag (@script). Combine with ondrawscript command, you can modularize some used-to-be-complicated functions, like trails or screen zooming.

You can get a demo from here: https://www.dropbox.com/s/koakad99dguoter/newtraildemo.7z
  Mary - test trail.txt  (jump, freespecial)
  Maxima - test zoomer.txt (freespecial)


*Edit*

you need to set maxentityvars in script.txt
This demo uses 5 or 6, so check your own value if it is smaller than that.


Copy trail.txt and zoomer.txt anywhere, add them to models.txt and spawn them in a proper way. Both of them use  parent property, so you need to use spawnframe or use some script to set the property.

You can download the two txts directly if you are not intersted in the demo.



[attachment deleted by admin]
 
Oh I forgot to say, you need to set maxentityvars in script.txt
This demo uses 5 or 6, so check your own value if it is smaller than that.
 
I noticed that both Mary and Maxima have this on header:

Code:
animationscript @script
#import "data/scripts/lib.c"
@end_script
it will not conflict if my char have another animation script?? its the first time I see an animationscript like that (first time I see @script), my character header have this one:
Code:
animationscript	data/scripts/kunio.c
to merge both, this is correct?
Code:
animationscript @script
#import "data/scripts/lib.c"
#import	"data/scripts/kunio.c"
@end_script

also, what means these variables on zoomer and trail? :
@cmd spawnsub "zoomer" 40 0 100
@cmd spawnsub "trail" 0 0 0
some kind of "range"?

thanks  :)
 
That may work if you use two #import, but you can also put that line in kunio.c instead.

Actually you don't have to use that. It is just my quick solution
There should be many scripts around that has appreciate spawn functions (spawn and set parent). I need one so I wrote one temporarily.

 
Back
Top Bottom