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 01-16-2004, 01:57 AM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
copylevel

copylevel serverside right?

If i am doing everthing right...is copylevel able to take variables and make a new level using the variable/string values?

Edit:

i had looked up the old copylevel threads, but they didnt help me like i needed
__________________
No longer a Advertisement Goat
Reply With Quote
  #2  
Old 01-16-2004, 02:20 AM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
copylevel levelname,newlevelname

of course, serverside only.

All copylevel does is make an exact copy of a level. copylevel can't edit strings/vars in levels. (Atleast not to my knowledge)
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #3  
Old 01-16-2004, 02:25 AM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
Quote:
Originally posted by xManiamaNx
copylevel levelname,newlevelname

of course, serverside only.

All copylevel does is make an exact copy of a level. copylevel can't edit strings/vars in levels. (Atleast not to my knowledge)
So then i have all the syntax down right, my pathname for the new level etc.

And what i ment was does it accept strings as values

so you could copy the level over to a new folder but with an extension diffrent to that of the first while still retaining the origonal prefix levelname
__________________
No longer a Advertisement Goat
Reply With Quote
  #4  
Old 01-16-2004, 02:29 AM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
I'm not really sure what you are saying.

You mean like:
copylevel blah.nw,places/#a.nw ?

If that's what you mean, you can do that. (#s #v etc will also work in place of #a)
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #5  
Old 01-16-2004, 02:31 AM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
Quote:
Originally posted by xManiamaNx
I'm not really sure what you are saying.

You mean like:
copylevel blah.nw,places/#a.nw ?

If that's what you mean, you can do that. (#s #v etc will also work in place of #a)
Right so then i dont understand what could be wrong, im calling copylevel from a weapon npc, but it wont copy the level infact it wont do anything at all.

Kinda confusing, i guess ill go play somemore, thanks for help
__________________
No longer a Advertisement Goat
Reply With Quote
  #6  
Old 01-16-2004, 02:45 AM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
Post the part of the script that does the level copying and I can probably help.
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #7  
Old 01-16-2004, 02:52 AM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
Quote:
Originally posted by xManiamaNx
Post the part of the script that does the level copying and I can probably help.
well

NPC Code:

if (actionserverside) {
if (strequals(#p(0),copylvl)) {
copylevel #p(1),test/#p(1)_#p(3).nw;
}
}
//#CLIENTSIDE
if (playerchats) {
if (startswith(copylevel,#c)) {
tokenize #c;
triggeraction 0,0,serverside,-System,copylvl,#F,#a,#t(1);
}
}



thats what ive done, planned to put a personal extention i had named on the end of level #F i was standing on.

Edit:

fixed the part in the initital code that was messed up anyways
__________________
No longer a Advertisement Goat

Last edited by Blue_Dragn; 01-16-2004 at 05:23 AM..
Reply With Quote
  #8  
Old 01-16-2004, 03:12 AM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
copylevel #p(1).nw,test/#p(1)_#p(3).nw;

should be

copylevel #p(1),test/#p(1)_#p(3).nw;


#F/#p(1) would return levelname.nw
and copylevel would look for levelname.nw.nw
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #9  
Old 01-16-2004, 03:18 AM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
Quote:
Originally posted by xManiamaNx
copylevel #p(1).nw,test/#p(1)_#p(3).nw;

should be

copylevel #p(1),test/#p(1)_#p(3).nw;


#F/#p(1) would return levelname.nw
and copylevel would look for levelname.nw.nw
I had caught that part after i posted that x_o;

Still though i have fixed that part, then when i execute to go to copylevel it does not copy the level, my folder is still empty.
__________________
No longer a Advertisement Goat
Reply With Quote
  #10  
Old 01-16-2004, 03:50 AM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
Ah yes.. #F should be #L. That should fix it.
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #11  
Old 01-16-2004, 03:57 AM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
Quote:
Originally posted by xManiamaNx
Ah yes.. #F should be #L. That should fix it.
Should but didnt, i still dont see my level copied into the folder
__________________
No longer a Advertisement Goat
Reply With Quote
  #12  
Old 01-16-2004, 04:17 AM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
hrm.. weird. I tested it on Maloria and it worked fine.
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #13  
Old 01-16-2004, 04:34 AM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
Quote:
Originally posted by xManiamaNx
hrm.. weird. I tested it on Maloria and it worked fine.
ew, i dont know what the problem is then
__________________
No longer a Advertisement Goat
Reply With Quote
  #14  
Old 01-16-2004, 04:37 AM
Thought Thought is offline
PipBoy Extraordinaire!
Thought's Avatar
Join Date: Nov 2001
Location: Long Beach, California.
Posts: 692
Thought is on a distinguished road
I believe there is a serveroption needed to be enabled to be able to use copylevel, I could be wrong though.
__________________
Rick ([email protected])
#gscript on FreeNode (#gscript Guild, #gscript Information)
Graal User Statistics

I am now using my new account, Rick.
Reply With Quote
  #15  
Old 01-16-2004, 05:11 AM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
Quote:
Originally posted by Thought
I believe there is a serveroption needed to be enabled to be able to use copylevel, I could be wrong though.
argh, which could it be then -_-

Edit:

if there is one at all, and if anyone else could shed some light on this, that would be swell too
__________________
No longer a Advertisement Goat

Last edited by Blue_Dragn; 01-16-2004 at 05:24 AM..
Reply With Quote
  #16  
Old 01-16-2004, 11:02 PM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
No serveroption is needed. If there is, it must not apply to Maloria
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

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 02:48 AM.


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