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
  #1  
Old 09-07-2011, 06:02 AM
furry_mougle furry_mougle is offline
big heart
furry_mougle's Avatar
Join Date: Aug 2011
Posts: 42
furry_mougle is an unknown quantity at this point
player.chat.starts with switch()

I know you can do something like,

PHP Code:
function onPlayerChats(){
  if(
player.chat.starts("test"){
     
// bla bla bla
  
}

but why can't you do something like this?

PHP Code:
function onPlayerChats(){
   switch (
player.chat.starts){
     case 
"test"// or case "("test")": ?
        // bla bla bla
     
break;
   }

might be a really simple solution, but idk it's been bugging me for a while
__________________
Quote:
Originally Posted by ffcmike View Post
But make sure to change beer.png to Orange Juice.
pay bills to play graal
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 09:15 AM.


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