scholastic Posted August 14, 2009 Author Share Posted August 14, 2009 ok i am starting to get this stuff,but just in case…i need a bench in my game where players can leisure or take a break plus for the fancy part of just standing.Anyone out there think they understand how to make a bench whee characters may sit...and it look like they sit on it.Do i need to make an item and script it as a bench or am i too in to the whole thing?...-any help is appreciated.. Link to comment Share on other sites More sharing options...
Drummerpete Posted August 14, 2009 Share Posted August 14, 2009 Would require a source edit, because you would need an extra sprite frame for sitting down..Might also be possible with scripting, but I have my doubts..Anyway, ask in the source questions forum. Link to comment Share on other sites More sharing options...
scholastic Posted August 14, 2009 Author Share Posted August 14, 2009 thanks.. Link to comment Share on other sites More sharing options...
Bobosk Posted August 15, 2009 Share Posted August 15, 2009 you COULD make it a scripted tile with a /command with a map/x/y check, along with lockplayer.. Link to comment Share on other sites More sharing options...
Drummerpete Posted August 15, 2009 Share Posted August 15, 2009 @Bobosk:> you COULD make it a scripted tile with a /command with a map/x/y check, along with lockplayer..Would be more efficient through source, though, right? Link to comment Share on other sites More sharing options...
Bobosk Posted August 15, 2009 Share Posted August 15, 2009 Generally anything you run through the source is going to be more *efficient*… aslong as you don't F it up..But... seeing as how this is a board for SScripting Questions, i tend to give a SScripting solution.*Edit* Oh right forgot the sitting sprite part... all you need to do is setplayersprite, assuming you check which sprite they have, and have a sitting sprite for each of your player class/race/whatever's sprite Link to comment Share on other sites More sharing options...
Diskmaster Posted August 15, 2009 Share Posted August 15, 2009 No, u could have it read all of your info, store it in an ini (sprite or head, body, legs) and then change your sprite depending on what your sprite was before like:If GetPlayerClass(index)=1Call PutVar(blablabla, GetPlayerSprite(index))Call SetPlayerSprite(index, 2)End IfU see, this is an easy scripting example (unless I don't understand what he is trying to say)So, Bobosk is right in his edit. Link to comment Share on other sites More sharing options...
Bobosk Posted August 16, 2009 Share Posted August 16, 2009 If you're using head/body/legs, you only need to get/setplayerleg.. and only need to edit the legs for each person… though, these things... generally mess with pd xD Link to comment Share on other sites More sharing options...
Owen F Posted August 16, 2009 Share Posted August 16, 2009 yeah lol.I always forget, is there or isn't there a way to remove the items?PD most of the time is the downfall of some potentially good scripts :l Link to comment Share on other sites More sharing options...
Bobosk Posted August 16, 2009 Share Posted August 16, 2009 ```Sub UpdatePaperDoll(ByVal index As Long)Function GetPlayerPaperdoll(ByVal index As Long)Sub SetPlayerPaperdoll(ByVal index As Long, ByVal Mode As Byte)``` Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now