Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Old Scripting Engine (GS1)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-03-2007, 09:04 PM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Question ladder idea wont work x.x

ok, so i want it to look like your player is climbing down a ladder but this wont work x.x
PHP Code:
//#CLIENTSIDE
if (created) {dontblock;drawunderplayer;
  
setimg gl_stairs.png;
}
if(
created||timeout){
timeout=.05;
if(
playertouchsme){
playerdir=0;
}

so can someone help me out?
__________________
**FLIP OUT**
Reply With Quote
  #2  
Old 03-03-2007, 09:08 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally Posted by theHAWKER View Post
ok, so i want it to look like your player is climbing down a ladder but this wont work x.x
PHP Code:
//#CLIENTSIDE
if (created) {dontblock;drawunderplayer;
  
setimg gl_stairs.png;
}
if(
created||timeout){
timeout=.05;
if(
playertouchsme){
playerdir=0;
}

so can someone help me out?
dontblock cancels out playertouchs me i believe, and playertouchsme is an event, not a flag to check.

if i were you id test the player's x and y to see if they are in the right place to be on the ladder.
__________________
Reply With Quote
  #3  
Old 03-03-2007, 09:21 PM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
how would i do that?
if (playerx=32) {the script?
__________________
**FLIP OUT**
Reply With Quote
  #4  
Old 03-03-2007, 09:26 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally Posted by theHAWKER View Post
how would i do that?
if (playerx=32) {the script?
im thinking something like if (playerx in |x - whatever,x+whatever|) but whatever you want to do
__________________
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:06 PM.


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