View Single Post
  #27  
Old 02-02-2004, 01:23 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally posted by Termina_Owner

As in PHP:
NPC Code:

if (playerenters){
dog = new dog(10);
healthydog = new dog(100);
healthydog-> bark();
dog-> whimper();
}



It would be awesome if we could... Anyhow! When is the new engine planned to be released? You got me anxious (Well, more then I actually am).
You can call functions of other npcs if they are declared public (public function ...).
The class system is the same like the old Graal class system, except that you can join and leave at any time you want. You can do things like

myvar = "test";
myvar.join("dogs");
myvar.whimper();

which is then using the dogs class
Reply With Quote