Graal Forums

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

Death_Link 09-15-2001 04:25 AM

Inserting ganis
 
K guys i need some help. Im makin a futuristic playerworld and im makin it first weapon and its a gun.
I dont exactly know y im doin this coz im a dumb scripter, hopefully i will get better. I made all the gun gifs, all the bullet gifs and all the ganis.
i have this so far:

// NPC made by Death_Link
if (playertouchsme) {
toweapons chaingun;
destroy;
}

if (weaponfired) {
shootfireball playerdir;
}

lol. sorry i laugh every time i look at this crap script.
Now i need 2 add em all. The whole bunch. I need to add the bullets and the gun ganis. How i insert em?

Python523 09-15-2001 10:28 AM

ganis
 
its pretty easy if you know what the script is, its setani ganinamehere.gani,; (yes the comma has to be there)
if you can't get that to work, here's a script that you can use to figure it out
if (playertouchsme) {
toweapons Suicide;
hidelocal;
}

if (weaponfired) {
freezeplayer 1.5;
setani suicide1,;
sleep 1;
playerhearts=0;
}

Python523 09-15-2001 10:30 AM

my mistake
 
I've been making too many mistakes today :grrr: you don't need to put .gani in the setani

fireball_dolphonia 09-16-2001 04:59 AM

its easy just
setani ganiname,;
no .gani ok

Death_Link 09-16-2001 07:28 PM

cool. Thanx guys

Death_Link 09-16-2001 07:37 PM

K guys that is all well and good., but i made a gun gif and put it into the gani. When i use the gani it don't show up!

What i do now?

Death_Link 09-16-2001 10:43 PM

um........................hello????? HELLO?? HHEEELLOOO????? this thing on. HHHHHEEEEEELLLLLLLLOOOOOOOOO!!!!!!????????

LiquidIce00 09-16-2001 11:47 PM

u should use parameters.. that would be neat cuz then u could have many diff types of guns..
ill xplain here how :
make the image of ur gun 1 long image..
goto the gani editor then type in for def param1 the name of ur image (make sure its in ur gani folder)
then goto the add button (to add a sprite)
the first box should be PARAM1 then the next gun or whatever.. then ur gonna need to section each frame out (u know in ur image how u made all the diff perspectives of the gun in 1 long image? u need to section them out when u add the sprites)
then u just add it to ur gani and when you call your gani you do
setani yourgani,yourgun.gif;
or whatever .gif u want .. each diff .gif will look like a diff gun ..
(confusing)

Death_Link 09-17-2001 12:20 AM

Do i need 2 make the gun gifs so that they will fit into the same param the bow does?
Look im gunna try this liquid but keep checkin the thread coz im gunna need help ok?

Death_Link 09-17-2001 01:37 PM

hheeeeeeeeeeeellllllllloooooooooooooo????????????

Krakken_2001 09-17-2001 10:41 PM

Quote:

Originally posted by Kaimetsu


Shut the heck up. People won't help you if you act like an idiot.

Hahah! Kai, I have NEVER heared you say anything like that to someone =)

That was cool!

Krakken_2001 09-17-2001 11:39 PM

Quote:

Originally posted by Kaimetsu


He deserved it. Acting like I have some duty to help him and stuff.

Heh, yeah.

Death_Link 09-17-2001 11:47 PM

k guys chill. I didnt mean 2 fry u that much. geez..


All times are GMT +2. The time now is 08:06 PM.

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