Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-28-2007, 06:58 PM
oinknessx oinknessx is offline
Banned
oinknessx's Avatar
Join Date: Apr 2004
Location: United States
Posts: 646
oinknessx is on a distinguished road
Send a message via AIM to oinknessx
Red face Oldbie's Newb Scripting

At first I thought it would be impossible for me to upgrade to GS2. Here's what scripting looked like to me before, and it's still the easiest way for me to comprehend at the moment.

Quote:
if (playerenters){
shootball;
}
But now that everything is scripted in GS2, the script would look something more along the lines of.....

Quote:
function onPlayerEnters(){
shootball();
}
I guess it's not really TOO different or impossible for me to upgrade. It's just odd. But with the help of the Graal wiki, it's going to be a lot easier. However I still haven't figured out how to do a script so that if the player chats, and the chat equals certain words, it will perform a command.... I tried function onPlayerChats("and what they would chat in here") but that didn't work. o_o

I'd have to say basically, I just know how to call events... I don't know how to edit events, like with a created&&timeout, or playerchats&&wordsare.... or playerhit&&hp=2.....

I talked to Hell Raven, he basically taught me how to call basic events and told me about the wiki.
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 12:02 AM.


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