gift from God?
Moderator: Zyx
Forum rules
Please read the Forum rules and policies before posting.
Please read the Forum rules and policies before posting.
gift from God?
in the latest version of CSbuild (v2.17), there`s an option "gift from God" in "edit pushbutton" option. What does it means?
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
- Paul Stevens
- CSBwin Guru
- Posts: 4319
- Joined: Sun Apr 08, 2001 6:00 pm
- Location: Madison, Wisconsin, USA
If you have an empty hand and it is the
last actuator on the list in its position then
it will give you party a gift. It will also cause
an actuator 'rotation'. See:
http://www.dianneandpaul.net/CSBwin/doc ... uator.html
last actuator on the list in its position then
it will give you party a gift. It will also cause
an actuator 'rotation'. See:
http://www.dianneandpaul.net/CSBwin/doc ... uator.html
it`s a good option, but how to make an actuator on the wall, that works just like a water-fountain but insted of water gives you, for example, mana potion (replaces empty flask with mana potion)?
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
There is already a thread discussing this - for limited use, you use an oject swapper with mana potions in the wall set to activate by water flask. For a constant stream of potions, you need to use s DSA - zyx gave a good answer to this, do a search for the thread
Edit: Actually, to save you hunting ,you simple make the fountain a flask eater targetting a DSA. This DSA should have as its parameter the ID of a mana potion (say parameter A) sitting in a remote area of the dungeon (never accessed by anything). The DSA itself will have the code L0 L1 &NEG LA &ADD (that's a null charatcer as postion is irrelevant, -1 for the cursor, LA = ID of mana flask). Note with this code you could set up other fountains with other DSAs for other potions.
http://www.dianneandpaul.net/CSBwin/doc ... rator.html give mroe details of &ADD
Edit: Actually, to save you hunting ,you simple make the fountain a flask eater targetting a DSA. This DSA should have as its parameter the ID of a mana potion (say parameter A) sitting in a remote area of the dungeon (never accessed by anything). The DSA itself will have the code L0 L1 &NEG LA &ADD (that's a null charatcer as postion is irrelevant, -1 for the cursor, LA = ID of mana flask). Note with this code you could set up other fountains with other DSAs for other potions.
http://www.dianneandpaul.net/CSBwin/doc ... rator.html give mroe details of &ADD
thanx for description Beo, but I don`t have idea about using DSAing. I wrote the code: LO L1 &NEG LA &ADD to line S0 in DSA part in "Global info", when: display state is set to "0", DSA Group: Group ID=0 Master, State of Machine is set to "local state".
Is that ok? Suppose, that I`ve got my mana potion at <1>[1a32]PO161=Ee Potion(Mana) in 00(29,23)0 position. How to set that position to be understandable for a DSA? By wchich parameter?
How to make that "flask eater"? By "swap object" function?
Sorry for my ignorance, but I didn`t do any DSAs yet.
Is that ok? Suppose, that I`ve got my mana potion at <1>[1a32]PO161=Ee Potion(Mana) in 00(29,23)0 position. How to set that position to be understandable for a DSA? By wchich parameter?
How to make that "flask eater"? By "swap object" function?
Sorry for my ignorance, but I didn`t do any DSAs yet.
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
- Paul Stevens
- CSBwin Guru
- Posts: 4319
- Joined: Sun Apr 08, 2001 6:00 pm
- Location: Madison, Wisconsin, USA
sorry*1000+sorry for my ignorance again!
I found a formula in "documentation" for making a location integer:
integer = (((position * 64) + level) * 32 + x) * 32 + y
So, in case, when my object is located on 00(29,23)0
integer = (((0 * 64) + 0) * 32 + 29) * 32 + 23 = 29 * 32 + 23 = 951 ???
I found a formula in "documentation" for making a location integer:
integer = (((position * 64) + level) * 32 + x) * 32 + y
So, in case, when my object is located on 00(29,23)0
integer = (((0 * 64) + 0) * 32 + 29) * 32 + 23 = 29 * 32 + 23 = 951 ???
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
For an &ADD you only need an example object ID, not the location of it too.
The location parameter is for where you want a new one of this example type to be added.
The object ID in this case is the number '1a23'
This is in hex, so to convert to decimal it needs to be:
(3) + (2 x 16) + (10 x 16 x 16) + (16 x 16 x 16) = ID number
The 'swap object' actuator would swap a WATER flask with an item in the wall - this is not what you want if using a DSA
An 'wall switch special object' that removes object from hand (tick a checkbox) is what I meant by object eater.
The DSA code is fine in global. Now go to the level menu, the DSA list, and add that type you created from the global menu to this level list - this DSA type now exists in the level (like adding a monster type or decoration type)
Finally, create a DSA in the level, of this type, and have the fountain target a set effect to its north face (this corresponds to position S0 of the DSA)
All things being equal, it will work!
Oh, sorry, the final thing - edit the DSA you created in the dungeon, and for 'parameter A' click 'integer' then enter the ID of the mana potion you created - that should do it.
By the way - you are correct in creating a location integer from the x,y,z info - not needed in this case, but you would be right about how to calculate it for other things : )
The location parameter is for where you want a new one of this example type to be added.
The object ID in this case is the number '1a23'
This is in hex, so to convert to decimal it needs to be:
(3) + (2 x 16) + (10 x 16 x 16) + (16 x 16 x 16) = ID number
The 'swap object' actuator would swap a WATER flask with an item in the wall - this is not what you want if using a DSA
An 'wall switch special object' that removes object from hand (tick a checkbox) is what I meant by object eater.
The DSA code is fine in global. Now go to the level menu, the DSA list, and add that type you created from the global menu to this level list - this DSA type now exists in the level (like adding a monster type or decoration type)
Finally, create a DSA in the level, of this type, and have the fountain target a set effect to its north face (this corresponds to position S0 of the DSA)
All things being equal, it will work!
Oh, sorry, the final thing - edit the DSA you created in the dungeon, and for 'parameter A' click 'integer' then enter the ID of the mana potion you created - that should do it.
By the way - you are correct in creating a location integer from the x,y,z info - not needed in this case, but you would be right about how to calculate it for other things : )
Last edited by beowuuf on Sun Aug 21, 2005 10:36 am, edited 2 times in total.
- Paul Stevens
- CSBwin Guru
- Posts: 4319
- Joined: Sun Apr 08, 2001 6:00 pm
- Location: Madison, Wisconsin, USA
No, I guess I'm just not up to date. I have version 2.11, and I don't know what you mean by pushbutton section/menu, or the top right corner there. In my "Edit Pushbutton" menu, all I have are: Operated By (only that one in the top right corner), Target, Action, Wallgraphic, and a few other small things.
If I'm not just observing CSBuild incorrectly, I have 2 questions:
1. Can I make a 'gift from god' pushbutton in version 2.11?
2. Should I switch to a newer CSBuild? (I would only be using it for the creation of this one dungeon)
If I'm not just observing CSBuild incorrectly, I have 2 questions:
1. Can I make a 'gift from god' pushbutton in version 2.11?
2. Should I switch to a newer CSBuild? (I would only be using it for the creation of this one dungeon)
There is no reason not to swap to the newest CSBuild, and you can't create a gift from god without it I'm afraid
http://www.dianneandpaul.net/CSBwin/CSBuild251.zip
You might get asked about databases if you do, but that's ignorable or you can look at the relevant topic to see how to get rid of the warning
http://www.dianneandpaul.net/CSBwin/CSBuild251.zip
You might get asked about databases if you do, but that's ignorable or you can look at the relevant topic to see how to get rid of the warning
Ok, now I have the newest CSBuild. Sadly, the gift from god pushbutton only allows for a certain few objects to be gifted. Any possibility that could change in the near future?
And, the new CSBuild version seems to have dropped an item on the floor which was previously in an alcove on a trick wall. I wonder if I should just switch back to my old CSBuild version for this dungeon?
And, the new CSBuild version seems to have dropped an item on the floor which was previously in an alcove on a trick wall. I wonder if I should just switch back to my old CSBuild version for this dungeon?
That is nothign to do with CSBuild - items in trick walls are technically on the floor, just if there is an alcove there it displays them correctly (I believe) in the alcove
also, if you want to gift an item for pressing a switch directly to the hand, the DSA fucntiosn for move are a way to do it - have the simple push button activate a DSA that moves or adds an item into the hand of the party
also, if you want to gift an item for pressing a switch directly to the hand, the DSA fucntiosn for move are a way to do it - have the simple push button activate a DSA that moves or adds an item into the hand of the party