Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 02-19-2006, 01:41 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by ZeLpH_MyStiK
Example:
PHP Code:
if (created) {
  
setstring this.def,idle,walk,sit,swim;  // define default/setbackto ganis
  
setstring this.new,idle_new,walk_new,sit_new,swim_new;  // define new custom ganis
  
timeout .05;  // initiate timeout
}
if (
timeout) {  // timeout event
  
this.index lindexof(#m,this.def);  // is current gani listed in the list of default ganis?
  
if (this.index >= 0setplayerprop #m,#I(this.new,this.index);  // if it is, set player gani to the corresponding gani in the list of new custom ganis
  
timeout .05;  // continue timeout

eugh, yea, the flaw with that as I was stating was that you have to override it.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.