Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-14-2004, 11:00 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
I might be a little late in asking this, but how exactly Loriel's tokenize convention more efficient?

it would seem to me that requesting a string to be searched through and broken down and then assigned to 2 seperate parts of an array wouldnt be as efficient at all.

if (walking == 0)
setani idle;
else
setani walk;

what is less efficient about the old way? It does one check.
even if you wanted to be crafty why not..

setstring blah,idle,walk;
setani #I(blah,walking);

although in terms of efficiency it seems equivilent to me. ::shrugs::
The tokenize idea is crazy and unique, but please explain why it is better.
__________________
Reply With Quote
Reply


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:00 PM.


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