Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

equip "lock"

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Bagne
ALL YOUR NUDIBRANCH ARE BELONG TO GASTROPODA




Joined: 19 Feb 2003
Posts: 518
Location: Halifax

PostPosted: Sun Oct 25, 2009 9:48 am    Post subject: equip "lock" Reply with quote

Is there such thing as "locking" an item to an equipment slot, or would I have to use some plotscripting wizardry?

Like ... an ongoing script that keeps checking to see if TAG "Thing is equipped" ever turns off?
_________________
Working on rain and cloud formation
Back to top
View user's profile Send private message
NeoSpade
Of course!




Joined: 23 Sep 2008
Posts: 249
Location: Wales GB

PostPosted: Sun Oct 25, 2009 10:01 am    Post subject: Reply with quote

I believe that using the Force equip command on each step will do it...I think,

Hey that's a point, there's a command to check if a menu is open, but no command (that I can clearly see in the plotscripting dictionary) to check if the menu has been closed, is there one? Cause if that was the case it'd go something like:

Code:

if menu closed (menu:Equipment then(check tag(tag:NoUnarm==On))
then (force equip(find hero(hero:Bob)),slot:weapon,2)
end


EDIT: Yes...I'm fully aware that I missed the else commands...both of them...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Sun Oct 25, 2009 2:30 pm    Post subject: Reply with quote

I posted in another thread about wrapping the equip menu in a script. I would suggest that rather than an each-step or on-keypress script.

The only catch is that you would need to use the latest nightly build, since just a couple days ago I fixed a bug where equipment tags were being enforced when the main menu closed, instead of when the equipment menu closed.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bagne
ALL YOUR NUDIBRANCH ARE BELONG TO GASTROPODA




Joined: 19 Feb 2003
Posts: 518
Location: Halifax

PostPosted: Tue Oct 27, 2009 5:39 pm    Post subject: Reply with quote

I found your previous post -

Would the wrapper just re-equip the item if the user unequips it?
Ok, that's work-able.
I guess I could throw in a text box which informs the player what happened.

"YOU MUST WEAR THAT HAT! >:-( "
_________________
Working on rain and cloud formation
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group