Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Doan Sephim

Pages: [1] 2 3 ... 33
1
Been half a year, so what's new?

Working mainly on asset creation and story/puzzle plotting. On that front, I've produced somewhere near 60 or so backgrounds. For a project that was just supposed to be 1/3 of total game, this one is shaping up to be more of a full-length experience than I had anticipated at the outset, but I think that's great because it means I keep having more story and puzzle ideas to flesh out (and a bigger forest to explore). For comparison, Betrayed Alliance Book 1 had 56 Backgrounds, and I feel like I'm nowhere near finished making backgrounds. I would estimate maybe 100 or so would be the final amount for Book 2 (which is in the ballpark of some of the Sierra Originals).

I've also been working on character animations for the main two playable characters. Death screen animations and pictures were a focus earlier this year.



I will admit that work on the game has diminished to about 50% of my usual work in the last couple of months as I've been focusing on my health. I'm generally healthy, but have high blood pressure and have been working to get my weight down so that my blood pressure will reduce as well. So I've been working out more in my "free time" which has cut into my ability to work on the game. But I'm already at the halfway point for my weight goal having lost 18 lbs, so I'm looking forward to not having to focus so much energy on that and can get back to full creative capacity!

Here's some of my newer screens:





2
If you'd like me to try my hand at a PIC or two, feel free to post a picture of it (and the AGI resource would be nice too).

3
That sounds like a pretty simple way to do it to me! Thanks.

4
I would suggest introducing a 'count' property to the inventory item class (Iitem).  That way you can keep track of the count within the inventory item itself and you won't have the headache of having to keep track of the count with other global variables.

In the code I posted, just swap out the reference that prints out the view # for your new count property.
Excellent! Thanks for steering me in the right direction. I've made the alterations you've said and it does work just as it should.

My only problem now is figuring out how to manipulate the number. I've set up "count" as a new property of the iItem class and then added a new item:
Code: [Select]
(instance Crackers of Iitem
(properties
said 'cracker'
description {These are crackers. You have = %d many}
owner 0
view 610
loop 0
cel 0
script 0
name "crackers"
count 2
)
)

I can easily assign a number (like "2") to the "count" when acquiring the item, but how can I manipulate that number? I tried to assign it a variable, but the interpreter was pretty insistent that I only use a constant for the properties. Any thoughts?

Edit: I tried to set up a procedure in the Iitem class that would let me change the "count." Not sure if that's the right idea or not, but I can't get it working yet.

5
lskovlun, I'm clearly out of my depth when it comes to editing the standard template. I think I now understand that you were talking about a new method per inventory item (at least I think I understand that now). I will try some more later. I'm still at a loss on what "foo" is or what I should be replacing it with. I'm supposing it's just a stand in for what "description" was in the original method?

Gumby. Essentially I'm trying to display an item, say crackers, but also let the player know how many crackers they have. My goal is to display in the description message a number of the particular item they have. Most items the player will just have (1 of), but I would like to have multiples for other items.

After looking thru your code, it seems like it's relatively easy to do. I think I see how I the %d in the description can work with the slightly changed In script method. I'm not at the computer now, but I will give it a shot when I get the time. Not having checked it myself, would that effect inventory items in not trying to associate with variables?

Thank you both for the help. Coding has never been my forte

6
Playing mad libs with SCI0! Nice  ;D

It's going to take me some time to go through and conceptualize that code (which is sad to me having been at this for so long to still not understand what are clearly basic concepts!)

The thing that's currently in my way is just figuring out how to properly check which item is being clicked and then customizing a description response for it. You're example is great for me to get used to using strings and printing them, but the trigger to do it all is the playing typing "look." I'm familiar with that, but I'm not sure about how to check which item is being clicked (as opposed to others.) Is that something I can even check in the template Inv script?

7
I'm trying and failing to get a grip on how to write the "if foo" part to know which item I am in fact choosing. I tried:
Code: [Select]
(method (showSelf &tmp [buffer 40])
(if INV_TEST_OBJECT
(Format @buffer "Test to see if I can see this.")
(IconPrint buffer view loop cel)
else
(if description
(IconPrint description view loop cel)
else
(IconPrint objectName view loop cel)
)
)
)

But it just yielded back the description as outlined in the Main script.

8
Thanks to both of you. I now understand what gumby meant by pre-process. I will tinker around with this, but I think I'm now understanding the basic structures.

Thanks. Will update when I get some more time to see what I can come up with.

9
Here's the code I think you are referring to in Inv.sc

Code: [Select]
   (IconPrint description view loop cel)

Essentially you need to pre-process the description string and do your variable replacement using the Format kernel call to make whatever substitution you want.
Yup. That's it!

So, "pre-process the description string" ... Does that mean to set up the string (maybe in the main script) and then call that string as the "description?" I'm having trouble calling anything but a number or bracketed statement in the description. Surely I cannot call a text resource with a variable in it, correct?

Am I missing a step or comprehending something wrong?

10
I understand how to "FormatPrint" to allow for variable values to be imbedding in a print command, but I'm not sure how to do that with the Inventory's "description." I looked in the Inv script and there's something about IconPrint in the showSelf method, but I confess, I'm a bit baffled.

11
SCI Syntax Help / Re: Importing a Character (a la Quest for Glory)
« on: February 10, 2021, 12:14:30 PM »
It's like Christmas in February.
Agreed! I just wish I were capable of understanding more of this stuff.

12
SCI Syntax Help / Re: SCI0 - Is the Template broken for togglesound?
« on: February 07, 2021, 09:13:59 PM »
This may be what you are looking for: Fixing F2 (ToggleSound) issue with Companion
Thanks. I saw that post earlier and have made the suggested changes, but it doesn't seem to do anything.

As far as I can tell, I'm not even able to change any volume settings at all at this point, so I'm not sure it's really the toggle that's broken. The volume gauge doesn't yield any change in volume either. I guess I could try different drivers.

Ok...I tried the MPUMIDI driver and the volume works (and the toggle as well). So I'm guessing there's something about the MT32 driver that it doesn't like?

13
SCI Syntax Help / SCI0 - Is the Template broken for togglesound?
« on: February 05, 2021, 02:21:44 PM »
I just noticed I can't seem to change the audio volume of the snd resources I'm using in the game and the menubar's toggle for sound doesn't seem to do anything (nor does the manual gauge for setting volume)

I'm using MT-32 as the SCI-synth in Companion and as the driver, if that matters.

14
SCI Syntax Help / Re: SCI0 - Death Icon always set to loop indefinitely
« on: February 05, 2021, 08:55:01 AM »

Thanks. Now I understand what the room number 540 was all about. Instead of the room number, I did like you said and just created a global variable that when true would trigger the code properly.

Code: [Select]
(instance deadIcon of DCIcon
(properties)

(method (init)
(super init:)
(if (== gDeathIconEnd 1)
(= cycler (End new:))
(cycler init: self)
)
)
)

15
SCI Syntax Help / Re: SCI0 - Icon location in Print window
« on: January 23, 2021, 04:04:41 PM »
Yeah, I was just misreading. You did write y-axis. But the same trick applies; once the dimensions of the dialog box are known (i.e. after adding all the stuff to it and calling setSize:), you reposition the icon.
Yup, I basically just made the y-axis number a global variable that I will set when the death menu appears, but will otherwise be set to 4 (what it was before). This may not be the most elegant solution, but it'll do for me

Pages: [1] 2 3 ... 33

SMF 2.0.14 | SMF © 2017, Simple Machines
Simple Audio Video Embedder

Page created in 0.121 seconds with 21 queries.