- 422 名前:名前は開発中のものです。 mailto:sage [2022/08/27(土) 01:15:34.53 ID:TnfcNmnm.net]
- didhitscript @script
void main() { void self = getlocalvar("self"); void tar = getlocalvar("damagetaker"); void anims = getentityproperty(self,"animationid"); void dir = getentityproperty(self,"direction"); if(tar != NULL()) { if ( anims == openborconstant("ANI_Special2") ) { if (dir==0) { tossentity(tar, 2.2, -0.8, 0); } else { tossentity(tar, 2.2, 0.8, 0); } } } } @end_script 普通は animationscript data/scripts/script.c こんな感じに別なテキストファイルを用意したりしますが、直接キャラファイルに 書き込んでも機能します。 上の例では、Anim Special2 が実行されている間、攻撃が当たるたび相手が浮くというもの いわゆるお手玉ですね。相手のAnim Fall が短かったり無敵になったりすると 落としてしまいますが、連続技の演出に便利です。
|

|