Tutorial and Information Requests

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Re: Tutorial and Information Requests

Postby J'Kla » Thu Jan 12, 2017 1:00 am

I do not know if this is even possible.

I am looking for a way of generating a user/game variable changeable by actions in game.

Then other actions that happen on the basis of that variable.

Initaly consider a closed door.

Next to that door there is a panel that displays two Dni Number characters.

the panel had four buttons.

Two of the buttons increase and decrease the least significant digit and two increase and decrease the most significant digit respectively.

When the value (decimal) lets call that Variable XD'ni that relates to the displayed D'ni digits meets some pre-determined value the door opens. and appears open for all visitors to the age.

Now consider two or three doors and various values result in various options of open/closed doors.

Two D'ni digits give a value of 0 to 576 with three doors there are 8 variations of doors open or closed.

Some predetermined arbitrary cases each of these doors or combination of these doors to be open.

Consider two visitors to any given age either visitor can change the value of the door combination lock and one the door or combination of doors are open.

For the logic to work all players who see the doors must remain frozen while the display changes and the door state changes.

Core to this is some player or multiple player action that changes the state of some hidden game value and the resulting new value changes the state of the game for any given instance.
Image
User avatar
J'Kla
 
Posts: 643
Joined: Wed Feb 20, 2008 3:16 pm
Location: Geordieland UK

Re: Tutorial and Information Requests

Postby Deledrius » Thu Jan 12, 2017 4:32 am

That sounds trivially doable to me. A proper usage of SDL and Responders with some Python for the extra puzzle-specific logic should be able to accomplish this.
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 918
Joined: Mon Oct 01, 2007 1:21 pm

Re: Tutorial and Information Requests

Postby J'Kla » Thu Jan 12, 2017 4:37 am

See my post "New Propsal for discussion.

https://forum.guildofwriters.org/viewtopic.php?f=10&t=6752

I was also wondering could we make doors that open given Avatar status.

An example of this would be a door that would only open in the presence of at least one Male and one Female avatar.

Or two doors one that opens for Female avatars and the other for Male.

Or a door that only opens if you are wearing a Hat? Or a particular hat.
Image
User avatar
J'Kla
 
Posts: 643
Joined: Wed Feb 20, 2008 3:16 pm
Location: Geordieland UK

Re: Tutorial and Information Requests

Postby Deledrius » Sat Jan 28, 2017 9:57 pm

There aren't any built-in logic conditionals for these, but it should be possible to do them with just a bit of Python, and mostly using the existing scripts. Off the top of my head:

J'Kla wrote:An example of this would be a door that would only open in the presence of at least one Male and one Female avatar. Or two doors one that opens for Female avatars and the other for Male.

I'd set up an SDL for the door lock, which the door would be set to active on with an xAgeSDLBoolCondResp. To change the SDL, I'd set up a detector that triggers a PythonFileMod which gets the triggering player and detects their shape. If it fits the requirements, change the SDL. You can determine the player's shape through ptPlayer.getAvatarClothingGroup(). You can use xAgeSDLBoolAndSet to require multiple triggers before setting that first SDL for the door.

J'Kla wrote:Or a door that only opens if you are wearing a Hat? Or a particular hat.

The logic would be similar to the above, but you can use ptPlayer.getAvatarClothingList() in the Python script to check if the hat is worn.
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 918
Joined: Mon Oct 01, 2007 1:21 pm

Re: Tutorial and Information Requests

Postby J'Kla » Sun Jan 29, 2017 2:23 pm

Interesting
Image
User avatar
J'Kla
 
Posts: 643
Joined: Wed Feb 20, 2008 3:16 pm
Location: Geordieland UK

Previous

Return to Building

Who is online

Users browsing this forum: No registered users and 3 guests