Talk:Drink script

From Second Life Wiki
Revision as of 22:21, 15 May 2009 by Strife Onizuka (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Cycles

Why does this script have both a flag variable that loops through values 0-3 and a timer event triggering how often it happens? Currently the timer fires every 15 seconds, incrementing the flag variable and looping when it hits 4, and only firing the "drink" animation when flag equals 1, which means it fires once a minute. Wouldn't it be more effective to just have a timer set to 60 seconds and fire the animation every time? --Sheridan Otoole 18:09, 15 May 2009 (UTC)

Yes the avatar drinks every 60 seconds but the first drink isn't until 30 seconds. Now as to why, I can only speculate but I believe that Emmas Seetan didn't in fact write the script. In old drink scripts, the avatar falls down after a couple of drinks. I believe Emmas modified one of these old scripts, stripping that behavior from it. My speculations are unsupported though, a code compare would be required to verify them. Regardless the drink scripts of old I think were public domain. -- Strife (talk|contribs) 06:21, 16 May 2009 (UTC)