Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   SxriptGanis (https://forums.graalonline.com/forums/showthread.php?t=17036)

Falcor 11-16-2001 06:59 AM

SxriptGanis
 
They dont work. Even something as simple as

SCRIPT
showimg 0,block.png,this.x,this.y;
SCRIPTEND

wont work. am i doing something wrong? How are you suppose to do this?

AlexH 11-16-2001 07:03 AM

you havent stated where this.x and this.y are

Falcor 11-16-2001 07:08 AM

I have int he acual code. (i even checked 0,0 on the level to see if the imgs were there)

AlexH 11-16-2001 07:10 AM

hmm
well i havent actuall tried any ofthis myself but ill give it a go and see what i can come up with

Falcor 11-16-2001 07:14 AM

=\ On the editor i see it creates a new npc at 0,0 which totally defeates the purposer of this gani... since i wanna define where my shoimgs are relitive to the npc that is using the gani =(

AlexH 11-16-2001 07:17 AM

yea i noticed that
cause thats what i would have used it for
to define the position from where the gani played
hmm
stefan needs to read this and tell us how to work this

Falcor 11-16-2001 07:27 AM

If I wanted a brand new nopc id put it on the lvl. so far i see script ganis are worthless

Admins 11-16-2001 06:32 PM

like
NPC Code:

SCRIPT
if (playerenters || timeout) {
showimg 1,beer.gif,playerx+0.5,playery-1;
timeout = 0.05;
}
SCRIPTEND



If you put that into idle.gani then all players
who stand still have a beer on the head.

LiquidIce00 11-16-2001 08:11 PM

Quote:

Originally posted by Stefan
like
NPC Code:

SCRIPT
if (playerenters || timeout) {
showimg 1,beer.gif,playerx+0.5,playery-1;
timeout = 0.05;
}
SCRIPTEND



If you put that into idle.gani then all players
who stand still have a beer on the head.

have you decided if free playerworlds may use scripted ganis?

Falcor 11-17-2001 05:29 AM

Quote:

Originally posted by Stefan
like
NPC Code:

SCRIPT
if (playerenters || timeout) {
showimg 1,beer.gif,playerx+0.5,playery-1;
timeout = 0.05;
}
SCRIPTEND



If you put that into idle.gani then all players
who stand still have a beer on the head.

True but what if I want the gani script to show images where the nPC is? Like if i have an NPC using a certain gani and i want ti to display light2.png on top of it... Can i do that?

Admins 11-17-2001 07:06 AM

the same way (playerx/y points to the gani object
(npcs are player object internally))

Falcor 11-17-2001 08:00 AM

ahg.. Il have to try that

Falcor 11-17-2001 08:18 AM

I wish you could also read playerrupees (not change them)

LiquidIce00 11-17-2001 09:03 AM

Quote:

Originally posted by Falcor
I wish you could also read playerrupees (not change them)
Can you send params to the gani then read them?
for example
setani whatever,#v(playerrupees);

then

SCRIPT
showimg 0,@#p(0),playerx,playery;
SCRIPTEND

well u get the point..

Admins 11-17-2001 09:31 AM

You still must use #P. There is only a little improvement:
you can do showimg 1,sprite,playerx,playery; shows the
sprite of the specified number (102 -> player head)

LiquidIce00 11-17-2001 09:43 AM

Quote:

Originally posted by Stefan
You still must use #P. There is only a little improvement:
you can do showimg 1,sprite,playerx,playery; shows the
sprite of the specified number (102 -> player head)

so if you added a sprite linked to Param1 for example and you did

setani whatever,beer.gif;

then it would show that sprite as the Param1 if you specified it in the showimg?

you cant do all player variables though?


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

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