Graal Forums

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

Knight_Vincent 12-16-2001 08:00 AM

Help me
 
Ok,

How would you make a waepon that shoots somthing like and arrow but with a dif gif, damage, and lets say things thats stop it?
Also how would I make it check if a person had a certain type of armor?

-Knight_Vincent

entravial 12-16-2001 08:30 AM

~AlphaFlame~

For the arrows... use an array to store the direction/x/y of the arrows, use your own images, and use a hitobjects... to detect tiles, use tiles[x,y]=....

For the armor... probably triggeraction looping..

if(actioncheckarmor){
if (this.armor=1){triggeraction armor1,x,y,;}
}

Or whatever the format for triggeraction is... too lazy to check on it right now.

Knight_Vincent 12-16-2001 08:33 AM

Ok,

Also how would I make the weapon stay out infrount of the person untill they fired the weapon again? Oh and how do you set a gain?

-Knight_Vincent

Python523 12-16-2001 01:30 PM

setani ganiname,params
since you probably don't know how to use params just do
setani ganiname,;

Knight_Vincent 12-16-2001 01:34 PM

Ok,

How do i make it change ganis when fired and also whats the keydown number for "D"?

-Knight_Vincent

Python523 12-16-2001 01:38 PM

Quote:

Originally posted by Knight_Vincent
Ok,

How do i make it change ganis when fired and also whats the keydown number for "D"?

-Knight_Vincent

if (weaponfired) {setani ganiname,;}
and for the keydown, it's either 4,5, or 6
try this to find out which one since I don't feel like opening graal right now.
You don't need a keydown for D since weaponfired looks for the D keydown but if you must know it, it's 4, 5, or 6, can't remember which

Knight_Vincent 12-16-2001 01:46 PM

Whoops,

Oh yes... now I rember that... ohwell. Anywho lerts say i made something shoot a object. Where in the fireing code (traveling part) would I put the setcoloreffect and drawaslight?

-Knight_Vincent

Python523 12-16-2001 01:49 PM

Quote:

Originally posted by Knight_Vincent
Whoops,

Oh yes... now I rember that... ohwell. Anywho lerts say i made something shoot a object. Where in the fireing code (traveling part) would I put the setcoloreffect and drawaslight?

-Knight_Vincent

Why would you use setcolor effect in a bow?

Knight_Vincent 12-16-2001 01:52 PM

Hehe,

Magical Fire Arrow bow and I dont wana use the stupid fire ball :D.

-Knight_Vincent

entravial 12-16-2001 03:20 PM

~AlphaFlame~

You'd put it in the timeout section, duh...

Sennema 12-17-2001 12:45 AM

Quote:

Originally posted by Python523

if (weaponfired) {setani ganiname,;}
and for the keydown, it's either 4,5, or 6
try this to find out which one since I don't feel like opening graal right now.
You don't need a keydown for D since weaponfired looks for the D keydown but if you must know it, it's 4, 5, or 6, can't remember which

4 is S, 5 is A, and 6 is D.


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

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