Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-07-2001, 08:00 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Re: reply

Quote:
Originally posted by maximus_asinus
I guess I should have indicated that.Well I basically want what the p2p servers have with the tree growing/ apple getting.I have/had a tree but I used putnpc.I know you can use setarray but I don't know how to use it.This is some of the things I need to know about.Saving the tree steps is another thing.And doing it with a low amount of strings would be good.(like 5-10 strings max).Please point me in the right direction.
Let me give you a little push into the right direction about arrays:
Arrays are like having a string with more than one string in it, let's start out by setting the array:
setarray myarray,2;
it will set the array and will allow you to set three different parts (0, 1, and 2)

to read the arrays, you do this:
if (myarray[0]=0)
if (myarray[1]=0)
if (myarray[2]=0)
if (myarray[0]=1)
ext...
to set part of an array to a value, you do this:
if (created) {myarray[0]=1;}
and you can do a lot of other things with arrays, hope you understand now
Reply With Quote
Reply


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 09:14 AM.


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