Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graphic Design (https://forums.graalonline.com/forums/forumdisplay.php?f=9)
-   -   question (https://forums.graalonline.com/forums/showthread.php?t=24896)

la_builder 03-02-2002 06:58 PM

question
 
how do i make a npc guy look to the north (in graal ) and set his sprite to a bow

NeoNPL 03-02-2002 11:27 PM

:grrr: :grrr: :grrr:

Wrong forum again@!!@!@!@!@!@!!@!@!!@

la_builder 03-02-2002 11:36 PM

ello pissed of kiddie im asking for a guy looking to the north jeez

joseyisleet 03-03-2002 01:52 AM

-=Josey=-
NPC Code:

if (playerenters){
playerdir=0;
setani shoot,;
}


The gani may be wrong but that's how you'd do it.

la_builder 03-03-2002 03:25 AM

thanks

la_builder 03-03-2002 03:27 AM

bud whats the deal with npc' s caus this does it to me

darkriders_p2p 03-03-2002 08:26 AM

ok josey the script you posted is right but you missed one key element.He wanted it as a NPC not the person & you needed to put the Def.parameter in the gani.
NPC Code:

if (playerenters) {
dir =4;
setcharani shoot,wbow1.png;
}



and next time la_builder post this in the SCRIPTING forum.Not the graphics forum.

la_builder 03-03-2002 04:28 PM

bud now he shows the ani and than the bow will disapear bud i want it to stay.

darkriders_p2p 03-04-2002 01:13 AM

woops
 
Ok I guess you have to put it in a loop.
Try this:
NPC Code:

if (playerenters||timeout) {
dir =4;
setcharani shoot,wbow1.png;
timeout =0.05;
}


la_builder 03-05-2002 01:27 AM

nope doesnt works i think i sprite would do it the best

darkriders_p2p 03-05-2002 06:29 AM

NPC Code:

// Graal2002 NPC by Stefan Knorr
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,head0.png;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
shieldpower = 1;
dir = 2;
}
if (playerenters||timeout) {
dir =0;
setcharani shoot,wbow1.png;
timeout =0.05;
}


NOW IT WORKS HAPPY???


All times are GMT +2. The time now is 06:13 AM.

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