Graal Forums  

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

View Poll Results: Is This Simple?
Yes 4 44.44%
No 1 11.11%
This Poll Is Pointless, and Your New So You Must Want To Try The Features X( 4 44.44%
Voters: 9. You may not vote on this poll

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-20-2012, 12:27 AM
Bleachlover551 Bleachlover551 is offline
Soul Reaper
Bleachlover551's Avatar
Join Date: Jul 2012
Location: Brunswick
Posts: 34
Bleachlover551 is an unknown quantity at this point
Simple Warp Script [Help]

okay so i have this in my npc.
PHP Code:
// Made By Toshi! (Developer)
if (created) {
  
showcharacter;
  
setcharprop #3,head.png;
  
setcharprop #C0,orange;
  
setcharprop #C1,white;
  
setcharprop #C2,blue;
  
setcharprop #C3,red;
  
setcharprop #p1,rainbow_chinahat.png;
  
setcharprop #C4,black;
  
setcharprop #2,;
  
setcharprop #n,Toshi;
  
ap 100;
  
shieldpower 1;
  
dir 2;
}
if (
playertouchsme) {
  
say2 I Made This Level#bto see my house say "yes".;
}
function 
onPlayerchats(){
  if (
player.chat == "Yes"){
    
setlevel2=toshi's_level_inside_room5.nw,35.5,30;
  }

once i say Yes It Wont Warp Me i wonder Why
Reply With Quote
  #2  
Old 07-20-2012, 12:33 AM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
You've got a mix of GS2 and GS1 there. Not a good thing. Also, that's not how you use setLevel2.

PHP Code:
setLevel2("levelname.nw"xy); 
__________________
Reply With Quote
  #3  
Old 07-20-2012, 12:40 AM
Bleachlover551 Bleachlover551 is offline
Soul Reaper
Bleachlover551's Avatar
Join Date: Jul 2012
Location: Brunswick
Posts: 34
Bleachlover551 is an unknown quantity at this point
thanks

Quote:
Originally Posted by Emera View Post
You've got a mix of GS2 and GS1 there. Not a good thing. Also, that's not how you use setLevel2.

PHP Code:
setLevel2("levelname.nw"xy); 
thanks Lol Was this a simple mastake because ima developer for my friends sever but some crap i dont under stand
Reply With Quote
  #4  
Old 07-20-2012, 05:04 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
PHP Code:
// Made By Toshi! (Developer)
function onCreated() {
  
showcharacter();
  
head "head.png";
  
colors] = "orange";
  
colors] = "white";
  
colors] = "blue";
  
colors] = "red";
  
colors] = "black";
  
attr] = "rainbow_chinahat.png"// or hat = "";? idk
  
nick "Toshi";
  
ap 100;
  
shieldpower 1;
  
dir 2;
}
function 
onPlayerTouchsMe() {
  
say2"I Made This Level" NL "to see my house say 'yes'." );
}
function 
onPlayerChats() {
  if ( 
player.chat == "yes" ) {
    
setlevel2"toshis_level_inside_room5.nw"35.530 );
  }

This way won't work in the GraalEditor, but it is certainly much less deprecated compared to mixing GS1 and GS1 together.
Reply With Quote
  #5  
Old 07-21-2012, 04:31 PM
Bleachlover551 Bleachlover551 is offline
Soul Reaper
Bleachlover551's Avatar
Join Date: Jul 2012
Location: Brunswick
Posts: 34
Bleachlover551 is an unknown quantity at this point
Quote:
Originally Posted by devilsknite1 View Post
PHP Code:
// Made By Toshi! (Developer)
function onCreated() {
  
showcharacter();
  
head "head.png";
  
colors] = "orange";
  
colors] = "white";
  
colors] = "blue";
  
colors] = "red";
  
colors] = "black";
  
attr] = "rainbow_chinahat.png"// or hat = "";? idk
  
nick "Toshi";
  
ap 100;
  
shieldpower 1;
  
dir 2;
}
function 
onPlayerTouchsMe() {
  
say2"I Made This Level" NL "to see my house say 'yes'." );
}
function 
onPlayerChats() {
  if ( 
player.chat == "yes" ) {
    
setlevel2"toshis_level_inside_room5.nw"35.530 );
  }

This way won't work in the GraalEditor, but it is certainly much less deprecated compared to mixing GS1 and GS1 together.

okay thanks okay Bye
Reply With Quote
  #6  
Old 07-25-2012, 10:21 PM
Bleachlover551 Bleachlover551 is offline
Soul Reaper
Bleachlover551's Avatar
Join Date: Jul 2012
Location: Brunswick
Posts: 34
Bleachlover551 is an unknown quantity at this point
Quote:
Originally Posted by devilsknite1 View Post
PHP Code:
// Made By Toshi! (Developer)
function onCreated() {
  
showcharacter();
  
head "head.png";
  
colors] = "orange";
  
colors] = "white";
  
colors] = "blue";
  
colors] = "red";
  
colors] = "black";
  
attr] = "rainbow_chinahat.png"// or hat = "";? idk
  
nick "Toshi";
  
ap 100;
  
shieldpower 1;
  
dir 2;
}
function 
onPlayerTouchsMe() {
  
say2"I Made This Level" NL "to see my house say 'yes'." );
}
function 
onPlayerChats() {
  if ( 
player.chat == "yes" ) {
    
setlevel2"toshis_level_inside_room5.nw"35.530 );
  }

This way won't work in the GraalEditor, but it is certainly much less deprecated compared to mixing GS1 and GS1 together.
wait so i got a question really quick..so attr [1] = "hat?" and what would a attr [2] and so on mean?
Reply With Quote
  #7  
Old 07-25-2012, 11:28 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by Bleachlover551 View Post
wait so i got a question really quick..so attr [1] = "hat?" and what would a attr [2] and so on mean?
attr[1] is mostly used by servers as the hat since the servers actually all use the default ganis which got that attribute as a hat. you could change it by changing the ganis and editing them.
Anyway I think attr[3] is the item the player is carrying (bushes, rocks, ...) and something around attr[29] is used for global effects I gues
__________________
MEEP!
Reply With Quote
  #8  
Old 07-25-2012, 11:52 PM
Bleachlover551 Bleachlover551 is offline
Soul Reaper
Bleachlover551's Avatar
Join Date: Jul 2012
Location: Brunswick
Posts: 34
Bleachlover551 is an unknown quantity at this point
Thanks

Quote:
Originally Posted by callimuc View Post
attr[1] is mostly used by servers as the hat since the servers actually all use the default ganis which got that attribute as a hat. you could change it by changing the ganis and editing them.
Anyway I think attr[3] is the item the player is carrying (bushes, rocks, ...) and something around attr[29] is used for global effects I gues
Thanks So Very Much. Can You Take A Look At Some Of My Other Threads?
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 06:48 PM.


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