Jump to content

Photo

Want to initiate a script that cuts down slash animation time down to


  • Please log in to reply
3 replies to this topic

#1 Lemmy Koopa

Lemmy Koopa

    We are the champions

  • Members
  • Location:Ohio

Posted 28 March 2019 - 11:41 AM

I haven't messed with ZC in a while, I can't find which function or variable I need to change link's animation to get out of the stabbing animation.

 

Can anyone help out?



#2 Russ

Russ

    Caelan, the Encouraging

  • Administrators
  • Location:Washington

Posted 28 March 2019 - 04:25 PM

The sword is pretty much a hard-coded item. If you want to significantly change its behaviour, you're gonna need to rescript swords.

#3 Moosh

Moosh

    Tiny Little Questmaker

  • ZC Developers

Posted 28 March 2019 - 07:01 PM

If you're trying to interrupt or modify a sword slash once it's started that's not possible, but if you want to access whether or not Link can slash with a script it's Game->Generic[GEN_CANSLASH]. 



#4 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 29 March 2019 - 03:52 AM

I haven't messed with ZC in a while, I can't find which function or variable I need to change link's animation to get out of the stabbing animation.

 

Can anyone help out?

 

Were you looking for Link->Action ?

 

Writing Link->Action = LA_NONE immediately ends the sword slash, and kills the sword weapon.

 

Adding other ways to clear the Attack animation to 2.55 might be trivial. I'd need to look at it when I have a lot of whiskey on hand and decide to code up the ability to script those events.

 

If you are starting the construction of a new quest, and you want to script things, it's very much worth your time to invest in shifting to the new version. With the expanded instruction set, rewritten parser, enhanced syntax options, and all of the new script types, it's a gigantic upgrade, and starting a new project in the old version of ZScript seems foolish, IMO.

 

The bonus perk is that when someone using the new builds wants a specific feature, we can try to incorporate it into the spec.


  • ShadowTiger likes this


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users