Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-24-2005, 08:41 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
dynamic setshapes

1. you setshape
2. you can't change the shape, unless
3. you set it a width or height to 0, in which case
4. you can't set it back.

NPC Code:

//#CLIENTSIDE
function onCreated() {
setshape 1,32,32;
}
function onPlayerTouchsMe() {
setshape 1,0,64;
}
function onPlayerChats() {
setshape 1,64,64;
}

Reply With Quote
  #2  
Old 10-24-2005, 12:50 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
It's not a good idea to mix gscript with gscript2.
__________________
Skyld
Reply With Quote
  #3  
Old 10-24-2005, 01:32 PM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
Haha @ Skyld's sig:
"Are your graphics drivers up to date?"

^_^ Says all...


Anyhow -- The point is there. Test it out with GS2?
__________________
In a world of change... Who'll you believe?
Reply With Quote
  #4  
Old 10-24-2005, 09:58 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Velox Cruentus
Haha @ Skyld's sig:
"Are your graphics drivers up to date?"

^_^ Says all...


Anyhow -- The point is there. Test it out with GS2?
well... uhh... i actually tested it with all GS1 because the entire sliding door script I made is GS1. It does work in GS2... but what's with the nonconformity between GS1 and GS2 functionality? shouldn't they be the same?
Reply With Quote
  #5  
Old 10-24-2005, 10:05 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally Posted by jake13jake
well... uhh... i actually tested it with all GS1 because the entire sliding door script I made is GS1. It does work in GS2... but what's with the nonconformity between GS1 and GS2 functionality? shouldn't they be the same?
The new scripting has more functionality, so if you use special features of the new engine (like function onEventName) then it will not work in the old scripting engine.
Reply With Quote
  #6  
Old 10-25-2005, 04:37 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Stefan
The new scripting has more functionality, so if you use special features of the new engine (like function onEventName) then it will not work in the old scripting engine.
The script that does it doesn't have onEventName.

Server: Classic
Levels: graalcity_outside_11.nw, graalcity_outside_19.nw
Class: door_sliding
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 03:34 PM.


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