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
  #16  
Old 10-18-2011, 02:46 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Regarding the random string, you could do this:

PHP Code:
// List of available trash
temp.listOfTrash = {
  { 
"Trash #1""nameofimage" },
  { 
"Trash #2""nameofimage" },
  { 
"Trash #2""nameofimage" }
};

// Generates a random trash entity from the trash array
temp.trashToSpawn randomstring(temp.listOfTrash);

// Sets temporary vars to increase code readability
temp.trashName temp.trashToSpawn[0];
temp.trashImage temp.trashToSpawn[1]; 

Quote:
Originally Posted by Gunderak View Post
if you do if onwall serverside it sais it is onwall constantly.
Are you using a custom tiletype 1 (newtiles) tileset on the server? Sounds like you are. To fix it you need to add the levels to newtilesetlevels in the serveroptions.

Example:

PHP Code:
newtilesetlevels=mylevelname1.nw,overworld1_,mylevelname2.nw,mylevels_,mal 
As you can see it doesn't have to be exact level names.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #17  
Old 10-19-2011, 08:20 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
thanks for the random trash choser, works like a charm.
and no, we are using the default tile types, we are however using a custom tileset.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
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 12:34 PM.


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