|
Drugs+drugs+rock+roll
|
 |
Join Date: Jul 2004
Location: Portland, OR
|
|

Jan 9th, 2005, 03:06 PM
I know how to program pretty well. Graal NPC scripting is just like regular programming language.
Example:
if (created) {
setimg beer.png;
}
//CLIENTSIDE
if (playertouchsme) {
playerhearts +=100;
hide;
}
if (playerchats&&strequals(#c beer)&&playerrupees =>11) {
show;
playerrupees -=10;
}
This is a script for beer, which is used a lot in playerhouses. If you touch it, it refills your health to full and goes away because you "drank" it, then if you say "beer" it will appear again and take 10 dollars from you (for buying annother one). Clientside means that it only effects one player, because graal is a MMG, and all the players in the same room as the NPC suddenly losing 10 gralats is kind of annoying. Yeah, there are some differences, but I'm good at adapting to these kind of changes. So, where do I actually go to write the program? Please help, I don't want to have to make a text adventure using Graal NPCs. ;_;
|
|
|
|