Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Is it possible to script this? (https://forums.graalonline.com/forums/showthread.php?t=32275)

weirdpikachu2 06-25-2002 10:29 AM

Is it possible to script this?
 
An NPC which allows players to pick up and throw other players?

it's a really big part of my plan for Utopia's success so i must have the script for it! :megaeek:

zallus-k 06-25-2002 11:34 AM

Well, you'd have to disable everything about a player, hiding them and disabling their "existance" on the game plane, then you'd have to place a canbethrown NPC that looked like the orig. player @ the player's old x/y. You'd then have to get the player to pick up the new NPC, while letting the "picked-up" player's screen follow that player. Then, as soon as the player threw the other "player", the player would have to re-exist, and the player's NPC copy would transfer it's new x/y/lv/dir to the player, then destroy. The player would have to be temporarily hovered above his shadow and moved, and then placed at an appropriate throwing distance.

I think that is all possible, but I don't know.

Logo 06-25-2002 11:57 AM

I've done it ;)

No NPC's involved, just use triggeraction, freeze the player getting picked up, move him above the picker-uppers arms, move him as the picker-upper guy moves. It's pretty easy, hard to explain.

zallus-k 06-26-2002 12:12 PM

Well... that way you have to use scripting in both players. I just guessed that he would want a method that could be tested online... then again, you could do that offline...drat. But what if you (the player) missaims the triggeraction, or the other person has no head, etc., etc.

nyghtGT 06-26-2002 03:28 PM

ganis, setfocus, disabledefmovement, enjoy!!

weirdpikachu2 06-26-2002 08:59 PM

ok thanks... ALSO

does anyone know of a script which makes it so all the levels the current level your in you can warp to's NPCs are loaded? I mean this like something from the levelgenerator when all the outside levels are connected.... so that you like see the NPC image already loaded in another level your about to walk into before you walk into it...?


:confused:

Glory 06-27-2002 10:52 PM

Corupt: just map out levels and they will be able to see whatever is ahead in the minimap(if you make one) and/or the map

screen_name 06-28-2002 06:25 AM

just have a hidden weapon and have the trigger action in that


lets see, you would have to disabledefmovement, hide player, set the other player's gani, then the throwing action, change both player's gani, the show the player once it hits the ground


All times are GMT +2. The time now is 01:32 PM.

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