Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Changing State (https://forums.graalonline.com/forums/showthread.php?t=22327)

Link188 01-28-2002 08:47 AM

Changing State
 
How can I make it so that if the player touches the object, their state changes too?

Python523 01-28-2002 09:35 AM

showimg, changeimgvis is the only way
you cant change the state with 1 line of script, you have to code every part

Link188 01-28-2002 09:39 AM

ok could give me an example? just say the new state was called state2.png... ok take it away.

Python523 01-28-2002 09:43 AM

You would have to make completely custom grafics for the hearts, like:
if (created) {timeout=.05;}
if (timeout&&playerhearts=1)
{showimg 201,heartimage.png,screenlength-300,30;
changeimgvis 201,4;
timeout=.05;}
You would have to script each ammount

Sennema 01-29-2002 01:47 AM

Quote:

Originally posted by Python523
You would have to make completely custom grafics for the hearts, like:
if (created) {timeout=.05;}
if (timeout&&playerhearts=1)
{showimg 201,heartimage.png,screenlength-300,30;
changeimgvis 201,4;
timeout=.05;}
You would have to script each ammount

screenlength should be screenwidth. It only measures width and height, not length.

zell12 01-29-2002 02:03 AM

cm3 is lenth, hight, and with...
cm2 is lenth hight...

Am I special now, nope...

Yakuna2001 01-29-2002 11:15 AM

Quote:

Originally posted by Kaimetsu


What are you talking about?

i think he means centimetre squared is length and height, and centimetre cubed is length width and height.?

Python523 01-30-2002 06:24 AM

Quote:

Originally posted by Sennema


screenlength should be screenwidth. It only measures width and height, not length.

that was a typo, I tend to not look over what I type before I post


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

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