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 03-25-2005, 02:37 PM
greenarrow greenarrow is offline
Registered User
Join Date: Oct 2004
Posts: 6
greenarrow is on a distinguished road
addtiledef...

How come for some reason I can never remember how to use this damn code?
Can someone post the addtiledef code to restore pics1.png as the tiles for the editor...
Reply With Quote
  #2  
Old 03-25-2005, 02:42 PM
greenarrow greenarrow is offline
Registered User
Join Date: Oct 2004
Posts: 6
greenarrow is on a distinguished road
bah

lol i knew it, i knew i knew it i knew it, as soon as i posted this i remembered the code, well for others who cant figure it out, to restore pics1.png, enter this
if (created) {
addtiledef pics1.png,,1;
}
Reply With Quote
  #3  
Old 03-25-2005, 04:02 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
Quote:
Originally Posted by greenarrow
lol i knew it, i knew i knew it i knew it, as soon as i posted this i remembered the code, well for others who cant figure it out, to restore pics1.png, enter this
if (created) {
addtiledef pics1.png,,1;
}
Use GS2 :[

NPC Code:

function onCreated(){
addtiledef(pics1.png,,1);
}

Reply With Quote
  #4  
Old 03-25-2005, 05:00 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
Quote:
Originally Posted by protagonist
Use GS2 :[

NPC Code:

function onCreated(){
addtiledef(pics1.png,,1);
}

Why would he use GScript2 in the offline editor where there isn't any support for it?

Nor should he use it online because hardly anyone is making a v3 only compatible server.

Not to mention you give bad scripting advice, that is definitely the wrong way to use addtiledef()
__________________

Reply With Quote
  #5  
Old 03-25-2005, 08:27 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Just put removetiledefs; in an npc, press play, press F4, and delete the NPC. It doesn't follow proper scripting guidelines, but it is only staying there for a moment
__________________

Reply With Quote
  #6  
Old 03-25-2005, 11:55 PM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Orrrr you can clear the offlinetile thingey.txt
__________________
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 04:53 PM.


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