Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-11-2011, 10:55 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by cbk1994 View Post
I'm used to using upper case first letter for object/class names and a lowercase first letter for methods like in Java.
Well, it's all about preference I guess. I got used to upper case for my own functions and lower case for Graal's. Not sure why, but it works nicely.

Also, GScript really needs some solid documentation.
Reply With Quote
  #2  
Old 04-12-2011, 07:14 AM
Demisis_P2P Demisis_P2P is offline
Kanto League Champion
Demisis_P2P's Avatar
Join Date: Jan 2005
Posts: 2,357
Demisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud of
Quote:
Originally Posted by Crow View Post
Also, GScript really needs some solid documentation.
Maybe when GS3 comes out. Stefan's added way too much stuff to GS2 that nobody knows about to start documenting it now.
__________________
Reply With Quote
  #3  
Old 04-12-2011, 09:57 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Demisis_P2P View Post
Maybe when GS3 comes out. Stefan's added way too much stuff to GS2 that nobody knows about to start documenting it now.
The sole purpose of GS3 would probably be the documentation.
Reply With Quote
  #4  
Old 04-12-2011, 10:13 PM
Devil_Lord2 Devil_Lord2 is offline
David K?
Devil_Lord2's Avatar
Join Date: Apr 2011
Location: PA, MD.
Posts: 643
Devil_Lord2 can only hope to improve
Quote:
Originally Posted by Crow View Post
The sole purpose of GS3 would probably be the documentation.
I hopes so >.>,
And I hope it explains better than commands.txt and bible..
That would be awesome :]
__________________

Digital Media Artist - David K? </3 (UnLoved)
www.davidkrout.com
www.twitch.com/DavidKkz



Reply With Quote
  #5  
Old 07-19-2011, 06:36 PM
fatcat123 fatcat123 is offline
Levels Artist
fatcat123's Avatar
Join Date: Aug 2010
Location: Wisconsin
Posts: 70
fatcat123 is an unknown quantity at this point
I love this.

Although, when I die, I cannot figure out why the black GUI disappears and all I see is the wording of the staff tool name in white font.
Reply With Quote
  #6  
Old 07-19-2011, 07:23 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by fatcat123 View Post
I love this.

Although, when I die, I cannot figure out why the black GUI disappears and all I see is the wording of the staff tool name in white font.
Graal destroys all GUI layer images upon (default) death. Since I don't care much in this case, I didn't add anything to "fix" this. Try adding these lines of code though:
PHP Code:
function onPlayerDies() {
  if (
this.toolOn)
    
DrawTool(true);

Just add it at the very bottom of the code. Should work.
Reply With Quote
  #7  
Old 07-21-2011, 05:11 PM
fatcat123 fatcat123 is offline
Levels Artist
fatcat123's Avatar
Join Date: Aug 2010
Location: Wisconsin
Posts: 70
fatcat123 is an unknown quantity at this point
Works like a charm. Thanks for posting this =), I've been growing my scripting experience off of it.
Reply With Quote
Reply

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 03:47 AM.


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