Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Arrays (https://forums.graalonline.com/forums/showthread.php?t=18611)

ShockwaveISTHEBEST 12-10-2001 12:07 AM

Arrays
 
What are arrays? What are they used for? How do you use them?

Falcor 12-10-2001 12:12 AM

predominatnly for storing valuses. ie

this.walls = {0,1,1,0,0,1,1,0}

ShockwaveISTHEBEST 12-10-2001 03:38 AM

what are each of the numbers for

Sennema 12-10-2001 03:42 AM

In Graal, they're like strings and junk, but with numbers... hard to explain. You could use like:

settarray ammo,3;

then you could call on them with

ammo[0], ammo[1], and ammo[2] (I dunno if it also uses ammo[3] or not for a size of three... I think it might).

Check the scripter's bible, and it's explained there better than I explained it.

ShockwaveISTHEBEST 12-10-2001 03:48 AM

ok thanks


All times are GMT +2. The time now is 10:36 AM.

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