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 04-02-2004, 04:21 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Tiles..

How would I make it so you can walk over some tiles and then not over some others?
without having to re-arrange my tileset..?
-thanks
__________________
V$:CONFL16T
Reply With Quote
  #2  
Old 04-02-2004, 04:44 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
re-scripting movement
-or-
do a tricky check for the tiles infront of player, if you want them to go over, move the player

The first is much better, however.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #3  
Old 04-02-2004, 04:53 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by Dach
re-scripting movement
-or-
do a tricky check for the tiles infront of player, if you want them to go over, move the player

The first is much better, however.
Alexander told me the same over aim. It dosn't matter, I'll guess I'll just have to move the tiles o.O!
__________________
V$:CONFL16T
Reply With Quote
  #4  
Old 04-02-2004, 06:16 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
A whole tile-check system or a new movement system, but as Chad said, a movement system would be better.
Attached Files
File Type: nw example.nw (788 Bytes, 198 views)
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /

Last edited by osrs; 04-02-2004 at 06:28 PM..
Reply With Quote
  #5  
Old 04-02-2004, 06:21 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by osrs
A whole tile-check system or a new movement system.
You're a life saver!
__________________
V$:CONFL16T
Reply With Quote
  #6  
Old 04-02-2004, 07:07 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
smeh, I would prefer in, let graal do all the crunch work, it's more noticable with a larger array though

NPC Code:

if (tile in tile_block) {
blockorwhateverplayerstuff;
}

__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #7  
Old 04-02-2004, 09:21 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by Dach
smeh, I would prefer in, let graal do all the crunch work, it's more noticable with a larger array though

NPC Code:

if (tile in tile_block) {
blockorwhateverplayerstuff;
}

Do you mean in an array? with the command:
'if(playerx in |,|)'
?
__________________
V$:CONFL16T
Reply With Quote
  #8  
Old 04-02-2004, 09:48 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by WanDaMan

Do you mean in an array? with the command:
'if(playerx in |,|)'
?
That's an event block, not a command. :P
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #9  
Old 04-02-2004, 09:50 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by osrs


That's an event block, not a command. :P
I didn't get what he said too.
Bah I'll just have to re-arrange!!
__________________
V$:CONFL16T
Reply With Quote
  #10  
Old 04-03-2004, 12:35 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Look at the example, in works the way I put it. You don't have to use it with |a,b| :P
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #11  
Old 04-03-2004, 11:24 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by Dach
Look at the example, in works the way I put it. You don't have to use it with |a,b| :P
Eh, is that possible?
__________________
V$:CONFL16T
Reply With Quote
  #12  
Old 04-03-2004, 12:50 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
No, it is NOT! That is why he SAID it would work!
Without critical thinkers like you, we would be lost.
Reply With Quote
  #13  
Old 04-03-2004, 01:02 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
you're lucky to have me.
__________________
V$:CONFL16T
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 09:31 PM.


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