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 05-02-2004, 09:13 PM
billybob256 billybob256 is offline
Rainbow Fox
Join Date: Apr 2004
Location: b is for ENgland
Posts: 23
billybob256 is on a distinguished road
Send a message via ICQ to billybob256 Send a message via AIM to billybob256 Send a message via MSN to billybob256
generating levels?

I've always wondered, how does kingdoms make all it's playerhouses, ship levels and treasure maps? I mean, do they have some sort of big archive in a folder, which triggers a level higher each time one is created (eg. playerhouse_105.nw to playerhouse_006.nw), or is there some sort of way that you can generate levels?

Any ideas anyone?
Reply With Quote
  #2  
Old 05-02-2004, 10:28 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Uses copylevel I think.
Reply With Quote
  #3  
Old 05-03-2004, 01:37 AM
Phayze Phayze is offline
iPod user.
Phayze's Avatar
Join Date: Apr 2004
Location: California
Posts: 760
Phayze is on a distinguished road
Send a message via AIM to Phayze
Yep, copylevel.
It just copies a template level to a new name, counting the number of current houses and then adding the next number to the end of the new level name.
__________________

Reply With Quote
  #4  
Old 05-03-2004, 02:37 AM
billybob256 billybob256 is offline
Rainbow Fox
Join Date: Apr 2004
Location: b is for ENgland
Posts: 23
billybob256 is on a distinguished road
Send a message via ICQ to billybob256 Send a message via AIM to billybob256 Send a message via MSN to billybob256
is it a graalscript command?

if so how would you use it in an NPC?
Reply With Quote
  #5  
Old 05-03-2004, 02:59 AM
Leasure-13 Leasure-13 is offline
!Leasure
Leasure-13's Avatar
Join Date: Dec 2003
Location: Ohio
Posts: 505
Leasure-13 is on a distinguished road
Send a message via AIM to Leasure-13 Send a message via MSN to Leasure-13 Send a message via Yahoo to Leasure-13
Quote:
Originally Posted by billybob256
is it a graalscript command?

if so how would you use it in an NPC?
I would like to know the same thing.
Reply With Quote
  #6  
Old 05-03-2004, 03:01 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally Posted by billybob256
is it a graalscript command?

if so how would you use it in an NPC?
Yes, it is a graal script command. I suppose it's like this, not sure though:
NPC Code:
copylevel levelname,newlevelname;

__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #7  
Old 05-03-2004, 03:17 AM
billybob256 billybob256 is offline
Rainbow Fox
Join Date: Apr 2004
Location: b is for ENgland
Posts: 23
billybob256 is on a distinguished road
Send a message via ICQ to billybob256 Send a message via AIM to billybob256 Send a message via MSN to billybob256
Quote:
Originally Posted by osrs
Yes, it is a graal script command. I suppose it's like this, not sure though:
NPC Code:
copylevel levelname,newlevelname;

I'm almost sure it's not like that. I've tried it clientsided and serversided, and nothing happens.

Anyone else have any ideas on what the command might be?
Reply With Quote
  #8  
Old 05-03-2004, 03:23 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally Posted by billybob256
I'm almost sure it's not like that. I've tried it clientsided and serversided, and nothing happens.

Anyone else have any ideas on what the command might be?
You're obviously using it wrong.
Reply With Quote
  #9  
Old 05-03-2004, 03:49 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally Posted by billybob256
I'm almost sure it's not like that. I've tried it clientsided and serversided, and nothing happens.
Anyone else have any ideas on what the command might be?
Database-NPC is probably the answer. I remember someone scripting a system and using that command into a DB-NPC.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #10  
Old 05-03-2004, 01:19 PM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
Graal Kingdoms also has that Terrian Generator. It randomly does levels by that long number. It's quite fun actually seeing what you can generate.
Reply With Quote
  #11  
Old 05-03-2004, 01:50 PM
billybob256 billybob256 is offline
Rainbow Fox
Join Date: Apr 2004
Location: b is for ENgland
Posts: 23
billybob256 is on a distinguished road
Send a message via ICQ to billybob256 Send a message via AIM to billybob256 Send a message via MSN to billybob256
Quote:
Originally Posted by Malinko
Graal Kingdoms also has that Terrian Generator. It randomly does levels by that long number. It's quite fun actually seeing what you can generate.
You can also use levelgenerator, which i think is better because i'm not using a 3D terrain
Reply With Quote
  #12  
Old 05-03-2004, 02:03 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Tell him how to use it correctly?

I think the newly created level must not be in levels, but a subfolder... ? Dunno.
Reply With Quote
  #13  
Old 05-03-2004, 03:26 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Thats correct. The folder you're copying to can't be the same you're copying from...
__________________
-Kjetil Valen
Reply With Quote
  #14  
Old 05-03-2004, 03:44 PM
billybob256 billybob256 is offline
Rainbow Fox
Join Date: Apr 2004
Location: b is for ENgland
Posts: 23
billybob256 is on a distinguished road
Send a message via ICQ to billybob256 Send a message via AIM to billybob256 Send a message via MSN to billybob256
so, i would put an npc in the DB and make it go something like this?:

NPC Code:
if (created){
copylevel levelname.nw , playerhouses/levelname.nw;
}

Reply With Quote
  #15  
Old 05-03-2004, 08:35 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally Posted by Malinko
Graal Kingdoms also has that Terrian Generator. It randomly does levels by that long number. It's quite fun actually seeing what you can generate.
That doesn't make them on the spot though...

Quote:
Originally Posted by Phayze
Yep, copylevel.
It just copies a template level to a new name, counting the number of current houses and then adding the next number to the end of the new level name.
Thats rather simplified, to the point where it won't work actualy what happens when you make it to level #125 and the house #92 deletes? Then you'll be trying to create a level that already exists

...if only the search button still worked, there are a couple of threads about this topic already
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
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:23 AM.


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