![]() |
GScript for Dummies Guide to GS2 question.
I'm reading the guide on GS2 and near the end he or she mentions objects. This part has me lost. What exactly is happening here?
PHP Code:
|
Okay after reading some of FP4's tutorial I am guessing temp.controlnpc = findnpc("Control-NPC") finds the object and this.player.data = temp.controlnpc.player_data pulls the value of player_data from the object? But what does temp.controlnpc.onCreated() do? Execute code listed in the onCreated() part of the Control-NPC? If so, how is this different than creating a class, using join, and calling a function that way?
|
Quote:
BTW I learned a little from reading this. |
Quote:
|
Quote:
PHP Code:
PHP Code:
I am not by a computer so I don't know if this is 100% correct** |
This is the best gs2 documentation I have found:
http://gswiki.wikidot.com/gs2-commands This is the best for explaining how to script gs2: http://gscript.graal.net/Index But the best way to learn I have found that helped me the most was javascript lessons here: http://www.freecodecamp.com |
All times are GMT +2. The time now is 08:31 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.