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 08-13-2004, 08:38 PM
sparkers sparkers is offline
Yojumisto Online
sparkers's Avatar
Join Date: Jun 2004
Location: Why does anyone care about that?
Posts: 111
sparkers is on a distinguished road
Send a message via AIM to sparkers
setfocus

how do you setfocus to a player on a different level? I have tried normal setfocus using indexes and such bvut it wont work
Reply With Quote
  #2  
Old 08-13-2004, 08:45 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Unless you are using a gmap, you cannot focus on a player in another level.

Well, you could, but you would not be able to actually see anything happening there.
Reply With Quote
  #3  
Old 08-13-2004, 09:54 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
well how culd u even if u culdnt c anything happening?
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #4  
Old 08-13-2004, 09:54 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
Well, couldn't you copy the levels tiles into variables or something? I heard Alexander did something similar, which turned out awesome I might add.
__________________
V$:CONFL16T
Reply With Quote
  #5  
Old 08-13-2004, 10:06 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
well i wanna know cus i have this npc where you take control of that person totally, except wepons and junk. like u get a basic attack to use, then u also control movement and talking. I think itd be better if it setfocus on them. alkso what stop movement commands work serverside?
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #6  
Old 08-13-2004, 10: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
Quote:
Originally Posted by falco10291029
well how culd u even if u culdnt c anything happening?
he means setting the focus on an x and y that is outside the current level

Quote:
Originally Posted by WanDaMan
Well, couldn't you copy the levels tiles into variables or something? I heard Alexander did something similar, which turned out awesome I might add.
are you reffering to a spy npc? I don't think that is a reliable alternative for him
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #7  
Old 08-13-2004, 10:31 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
yeah spy npcs are easy except i dunno the tile part i just have it so u see the person talking and ganis and it displays things about then. It sux that u cant focus on that player then for a control npc:-/
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #8  
Old 08-14-2004, 02:37 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
wait a second idnt there a warpto command for npcs? Cant u use that to warp the npc there then set the focus on the npcs x and y and have it go to the players x and y?
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #9  
Old 08-14-2004, 02:52 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by falco10291029
wait a second idnt there a warpto command for npcs? Cant u use that to warp the npc there then set the focus on the npcs x and y and have it go to the players x and y?
Think about that one for a minute.
Reply With Quote
  #10  
Old 08-14-2004, 03:18 AM
Nappa Nappa is offline
The Great Nappa
Nappa's Avatar
Join Date: Sep 2003
Location: Florida
Posts: 1,911
Nappa is on a distinguished road
Send a message via AIM to Nappa
Lol... You can't see player movement on different levels unless using a gmap, so even if you did setfocus on a different level it wouldn't matter...
__________________
Reply With Quote
  #11  
Old 08-14-2004, 04:04 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
So in other words there is no way in current gscript to do this?
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #12  
Old 08-14-2004, 05:59 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
Quote:
Originally Posted by falco10291029
So in other words there is no way in current gscript to do this?
not the way you want to do it
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #13  
Old 08-14-2004, 06:31 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
well that royally sux, make new commands, like setfocus2 x,y,level. that would work
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #14  
Old 08-14-2004, 08:17 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally Posted by falco10291029
well that royally sux, make new commands, like setfocus2 x,y,level. that would work
It's a pointless idea that would be inefficient to create. There is no real purpose for it besides a "spy" npc which is pointless.
Reply With Quote
  #15  
Old 08-14-2004, 08:39 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by falco10291029
well that royally sux, make new commands, like setfocus2 x,y,level. that would work
No, you don't understand. If you are not receiving player movements or the npcs in another level (which you aren't), this command would be good for absolutely nothing.
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 12:03 AM.


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