Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-28-2002, 08:47 AM
Link188 Link188 is offline
Registered User
Link188's Avatar
Join Date: Jul 2001
Location: Monroeville, PA
Posts: 548
Link188 is on a distinguished road
Send a message via AIM to Link188
Question Changing State

How can I make it so that if the player touches the object, their state changes too?
__________________
~Jeice Lighthawk~
"And you will shed tears of scarlet..."

~Edited by me. ^_^
Reply With Quote
  #2  
Old 01-28-2002, 09:35 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
showimg, changeimgvis is the only way
you cant change the state with 1 line of script, you have to code every part
Reply With Quote
  #3  
Old 01-28-2002, 09:39 AM
Link188 Link188 is offline
Registered User
Link188's Avatar
Join Date: Jul 2001
Location: Monroeville, PA
Posts: 548
Link188 is on a distinguished road
Send a message via AIM to Link188
ok could give me an example? just say the new state was called state2.png... ok take it away.
__________________
~Jeice Lighthawk~
"And you will shed tears of scarlet..."

~Edited by me. ^_^
Reply With Quote
  #4  
Old 01-28-2002, 09:43 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #5  
Old 01-29-2002, 01:47 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
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.
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote
  #6  
Old 01-29-2002, 02:03 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
cm3 is lenth, hight, and with...
cm2 is lenth hight...

Am I special now, nope...
__________________
Reply With Quote
  #7  
Old 01-29-2002, 11:15 AM
Yakuna2001 Yakuna2001 is offline
Registered User
Yakuna2001's Avatar
Join Date: Jun 2001
Location: England U.K
Posts: 940
Yakuna2001 is on a distinguished road
Send a message via AIM to Yakuna2001
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.?
__________________

-Manager of the UnholyNation PlayerWorld-
UnholyNation Forums
Reply With Quote
  #8  
Old 01-30-2002, 06:24 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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