Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   setfocus (https://forums.graalonline.com/forums/showthread.php?t=54876)

sparkers 08-13-2004 08:38 PM

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

Lance 08-13-2004 08:45 PM

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.

falco10291029 08-13-2004 09:54 PM

well how culd u even if u culdnt c anything happening?

WanDaMan 08-13-2004 09:54 PM

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.

falco10291029 08-13-2004 10:06 PM

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?

Dach 08-13-2004 10:07 PM

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 :\

falco10291029 08-13-2004 10:31 PM

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:-/

falco10291029 08-14-2004 02:37 AM

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?

Lance 08-14-2004 02:52 AM

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.

Nappa 08-14-2004 03:18 AM

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...

falco10291029 08-14-2004 04:04 AM

So in other words there is no way in current gscript to do this?

Dach 08-14-2004 05:59 AM

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

falco10291029 08-14-2004 06:31 PM

well that royally sux, make new commands, like setfocus2 x,y,level. that would work

Python523 08-14-2004 08:17 PM

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.

Lance 08-14-2004 08:39 PM

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.


All times are GMT +2. The time now is 03:54 PM.

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