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
  #7  
Old 09-20-2002, 02:20 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by R0b1n-NPC
i think functions should have custom variables that can only be used inside the functions, e.g.

PHP Code:
if (playerenters) {
  
killplayer(#a,Hahah you suck);
}

function 
killplayer(account,message) {
  
with (getplayer(account)) {
    
playerhearts=0;
    
say2 message;
  }

that would be teh 1337
Great idea, but this has been asked for since functions were added to graalscript long ago (like 3 years or something).
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
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 10:12 PM.


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