TA: Kingdoms Community Forum
 
HomePortalCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Script TidBit

View previous topic View next topic Go down 
AuthorMessage
Vaerun

avatar

Posts : 104
Reputation : 0
Join date : 2008-08-09

PostSubject: Script TidBit   Fri Jun 25, 2010 1:22 am

Appears some of the modders are having problems with recompiling scripts where the units walk animation fails to show.

Here's how to fix that: Decompile the script and go to the line where it says get CURRENT_SPEED > 5, in which CURRENT_SPEED = 29 so 5 will never be greater than 29.
To fix the problem add parenthesis around get CURRENT_SPEED > 5 like this: ( get CURRENT_SPEED ) > 5 and recompile; voila walk animations are back.
It's a known bug with scriptor, however, the information apparently was lost. So Good Luck.

Vaerun
Back to top Go down
View user profile
Sage
Lead Designer of Ta Kingdoms: The New Era
avatar

Posts : 1034
Reputation : 3
Join date : 2008-08-02
Age : 30
Location : West Haven

PostSubject: Re: Script TidBit   Sat Jun 26, 2010 12:09 am

It still not getting the movement back.
This is what my code looks like now:


MoveWatcher()
{
set-signal-mask 4;
while( TRUE )
{
Static_Var_5 = get IN_WATER;
Static_Var_4 = ( get CURRENT_SPEED ) > 5 OR Static_Var_6;
sleep 100;
}
}

_________________
http://takuniverse.webs.com/ - TAK downloads
www.cristian-fuentealba.com - Graphic Design
GameRanger ID: 4138935
Back to top Go down
View user profile http://cristian-fuentealba.com
Sage
Lead Designer of Ta Kingdoms: The New Era
avatar

Posts : 1034
Reputation : 3
Join date : 2008-08-02
Age : 30
Location : West Haven

PostSubject: Re: Script TidBit   Thu Sep 09, 2010 11:36 pm

Does it look ok?

_________________
http://takuniverse.webs.com/ - TAK downloads
www.cristian-fuentealba.com - Graphic Design
GameRanger ID: 4138935
Back to top Go down
View user profile http://cristian-fuentealba.com
Sponsored content




PostSubject: Re: Script TidBit   

Back to top Go down
 
Script TidBit
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Chess Script
» Autohotkey script for melee barbarian
» Awesome (FREE) gun script!
» Gun Movement Script? Tutorial #2
» Walking Animation Script(Help)

Permissions in this forum:You cannot reply to topics in this forum
TA: Kingdoms Community Forum :: GENERAL :: Tutorials :: Programs-
Jump to: