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
  #8  
Old 08-30-2002, 08:55 PM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
Quote:
Originally posted by Python523
use this for your minute:second.millisecond thing
NPC Code:

if (created) {
time={0,0,0};
timeout = .1;
}
if (timeout) {
time[2]=(time[2]+1)%10;
time[1]=(time[1]+0.1)%60;
time[0]=(time[0]+0.00166666666666666666666666666666667)%60;
setcharprop #c,#v(int(time[0])):#v(int(time[1])).#v(time[2]);
timeout = .1;
}


I would add hours in a similar way but graal doesnt support
2.77777777777777777777777777777778*(10^-5)(10 to the negative fifth power)
Ok, I will, I'm just not to good at math, so I do it the simple scratchy way. but thanks....i have algebra this year, and im only in 9th grade. I understand what you are doing though.
(steals this from jinx)
-Goboom
__________________
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 12:43 PM.


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