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-23-2012, 02:30 PM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
an 'offline' level online.

How would I go about making a level that everyone can go to, but players can't see other players?

I believe n-pulse had some cut scene levels like that.
Reply With Quote
  #2  
Old 05-23-2012, 02:47 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
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
You could either use copylevel(source, destination); to create multiple versions of the same level, or do some fancier system using hideplayer(time);, player.alpha and whatnot in ganis.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #3  
Old 05-23-2012, 04:38 PM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
Ziro, could you give me an example of the first one please... the (source, destination) one
Reply With Quote
  #4  
Old 05-23-2012, 05:22 PM
CujoDaMan CujoDaMan is offline
Shaded Legend Management
CujoDaMan's Avatar
Join Date: Aug 2004
Location: Canada, Nova Scotia
Posts: 108
CujoDaMan is an unknown quantity at this point
Send a message via AIM to CujoDaMan Send a message via MSN to CujoDaMan
You can't learn by copying and pasting but source would be foldername/levelname.nw and destination would be newfolder/levelname.nw

If i think right:

PHP Code:
copylevel("foldername/levelname.nw""newfolder/levelname.nw"); 
That may not be right, but I belive that is what it is.
__________________
Last Manager of Shaded Legend
Reply With Quote
  #5  
Old 05-23-2012, 06:05 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
The best plan would be to do what Ziro said at the end and come up with a system that hides everyone except yourself and use client-side script for the cut-scene.

copylevel usage:

copylevel works off the levels folder as it's base so it can be a little confusing, in this example the template level is stored in:

levels/baselevel/housetemplate.nw

and it will be copied to:

levels/houselevels/house_account.nw

PHP Code:
function onCreated() {
  
copylevel("baselevel/housetemplate.nw""houselevels/house_account.nw");

Make sure your folder config includes:

level houselevels/*.nw

Otherwise you won't be able to access the level.
__________________
Quote:
Reply With Quote
  #6  
Old 05-23-2012, 06:53 PM
CujoDaMan CujoDaMan is offline
Shaded Legend Management
CujoDaMan's Avatar
Join Date: Aug 2004
Location: Canada, Nova Scotia
Posts: 108
CujoDaMan is an unknown quantity at this point
Send a message via AIM to CujoDaMan Send a message via MSN to CujoDaMan
So with that you could make a level for every player by setting the new level name as "house_"@player.account@".nw" correct fp? I'm on my blackberry typing this .. Just want to make sure that would work for a better understanding
__________________
Last Manager of Shaded Legend
Reply With Quote
  #7  
Old 05-23-2012, 06:55 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by CujoDaMan View Post
So with that you could make a level for every player by setting the new level name as "house_"@player.account@".nw" correct fp? I'm on my blackberry typing this .. Just want to make sure that would work for a better understanding
Pretty much, be sure to do:

temp.lvl = "house_" @ escapefilename(player.account) @ ".nw";

Which will convert things like spaces and colons to their % reprensation form.
__________________
Quote:
Reply With Quote
  #8  
Old 05-23-2012, 06:58 PM
CujoDaMan CujoDaMan is offline
Shaded Legend Management
CujoDaMan's Avatar
Join Date: Aug 2004
Location: Canada, Nova Scotia
Posts: 108
CujoDaMan is an unknown quantity at this point
Send a message via AIM to CujoDaMan Send a message via MSN to CujoDaMan
I thought so, thanks fp!
__________________
Last Manager of Shaded Legend
Reply With Quote
  #9  
Old 05-23-2012, 07:17 PM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
i want to say Tig post a script like this that he use it in Graal Kingdoms Quest. I'm just not sure if its in Code Gallery or GK fourms
__________________
Graal Developer
Reply With Quote
  #10  
Old 05-23-2012, 07:23 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Rave_J View Post
i want to say Tig post a script like this that he use it in Graal Kingdoms Quest. I'm just not sure if its in Code Gallery or GK fourms
cbk wrote the Instance Manager (Generator) that's used on GK:
http://forums.graalonline.com/forums...hp?t=134263240
__________________
Quote:
Reply With Quote
  #11  
Old 05-24-2012, 01:00 AM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
Quote:
Originally Posted by fowlplay4 View Post
cbk wrote the Instance Manager (Generator) that's used on GK:
http://forums.graalonline.com/forums...hp?t=134263240
oppps
__________________
Graal Developer
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 01:10 AM.


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