Exult Logo
 
Home | Download | Documentation | FAQ | Studio | Screen Shots
Development | Discussion | About Us | Letters | History | Links
 
Exult Discussion
Before posting, make sure you've read the FAQ and searched the message board for previous discussions. When reporting problems/bugs, please include details about your setup (Exult version, OS, sound and video cards).

 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 yew staff code
Author: agentorangeguy (---.145.19.98.dynamic.ip.windstream.net)
Date:   02-16-12 15:51

I've been coding the excellent Yew staff that Crowley made for the U6 mod. So far, it functions properly as I want it to, along the lines of the original U6 -

-it checks for the enchant spell, necessary reagents, and mana
-it 'charges' regular yew staff with the lightning spell (more will be avaliable but just testing this first) 10 charges
- it changes from 'yew staff' to 'yew staff - charged (lightning)' and it functions like a lightning wand.


That part functions just fine. What i'm having trouble doing is changing the 'yew staff - charged' back to a regular uncharged yew staff. Normally when the quality/charges reaches '0' it just puts the staff back into inventory. I tried making a basic code for it to change back but only does so if you double click it. 'event == readied/unreadied' didn't seem to work for me. How can I make the staff change back to a normal yew staff immediately after the quality/charges hits '0'?

Reply To This Message
 
 Re: yew staff code
Author: Marzo Sette Torres Junior 
Date:   02-16-12 23:12

For event==readied/unreadied to work, you have to tick the 'usecode events' checkbox in shape information for the shape in question.

------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
How To Ask Questions The Smart Way

Reply To This Message
 
 Re: yew staff code
Author: agentorangeguy (---.30.23.98.dynamic.ip.windstream.net)
Date:   02-18-12 12:24

Ohhhhhhhh...i didn't even think of that. ok I'll try that, thanks!

Reply To This Message
 Go to Top  |  Go to Topic  |  Threaded View   Newer Topic  |  Older Topic 


 
 Reply To This Message
 Your Name:
 Your E-mail:
 Subject:
 Subject:
   
 
SourceForge   phorum.org
 
Problems with Exult or this webpage? Contact us.
Last modified: 24 Oct 2001(GMT)