View unanswered posts | View active topics It is currently Thu Mar 28, 2024 3:24 pm



Reply to topic  [ 1 post ] 
 Clothes checking 
Author Message
Rank 17
Rank 17
User avatar

Joined: Fri Feb 27, 2015 2:06 pm
Posts: 682
Location: Australia
hey im trying to figure out how to check for clothes being on or off

Code:
loc.cs.item = state.stat.game.cloth_pose.dress_item; 
loc.cs.y    = GetClothState(loc.cs);
[loc.cs.y < state.stat.game.cloth_pose.dress_down]


i think thats the code but cant get it to work

Edit

got it to work

Code:
loc.cs.item = 0; //cloth_item[0] name = "dress" so dress
loc.cs.y    = GetClothState(loc.cs);
[loc.cs.y < 1]// 0 seams to mean floor


doing that seams to work


Code:
state.stat.game.cloth_pose.dress_item
state.stat.game.cloth_pose.dress_down

are referenced chars\char_name\brain\state\stat.dat

if i got anything wrong here please correct me

_________________
To install a mod

ESKARN'S TUTORIALS

Eskarn's Dungeon Mod(BETA)

Eskarn's puzzle map (story)


Sat Feb 28, 2015 4:49 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group.
Designed by X-Moon Productions.