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 - richruss691

Pages: [1] 2 3
1
SCI Syntax Help / Re: Adding a room to Quest for Glory 1 (VGA)
« on: Yesterday at 07:14:12 PM »
awesome, thanks Eric

2
SCI Syntax Help / Re: Adding a room to Quest for Glory 1 (VGA)
« on: Yesterday at 11:16:14 AM »
Thanks. That is at least a starting point. Let's see if i can follow it somewhere.

3
SCI Syntax Help / Re: Adding a room to Quest for Glory 1 (VGA)
« on: June 01, 2020, 07:13:50 PM »
looks like error 4

4
SCI Syntax Help / Re: Adding a room to Quest for Glory 1 (VGA)
« on: May 31, 2020, 09:29:07 PM »
All of the necessary parts of my new room are in and appear to function properly, just needs a little polish maybe some bells and whistles and thorough testing then it'll be done. However, I've decided to take a break from this room for a while and focus on something else. The end credits sequence suggested by OmerMor.

As OmerMor suggested, it looked like it would be fairly easy to implement the fly-over as it seemed to be mostly already done. So I copied the necessary views from QfG ega as place holders and told the script to run the code that it bypasses in the official release. Of course, the code doesn't work right. Amongst other things, and currently my biggest concern, the fly-over begins but shortly into it the game crashes with one of those "you did something we didn't expect" errors. I don't know sci well enough to figure out much of that code block beyond moving the carpet around the screen, so i don't know even where to start with debugging this one. I got it to stop displaying the error message but now the game just stops doing anything and I have to "X" out of the game.

5
SCI Syntax Help / Re: Adding a room to Quest for Glory 1 (VGA)
« on: May 14, 2020, 12:48:36 AM »
thank you EricOakford for saving my bacon once again! "SEARCHED_FRED_TREASURE" seems to have fixed it, unless that flag gets triggered somewhere else. I can't think why it would though. digPile was at the end of the list, i wonder why it wasn't working.

thank you troflip for your input as well, it was helpful.

next on the agenda will be to make it so you can take fred's beard, then all that'll be left for this room is bells and whistles, i think.

6
SCI Syntax Help / Re: Adding a room to Quest for Glory 1 (VGA)
« on: May 13, 2020, 09:02:57 PM »
I defined it in script 000.

Quote
Are you sure it's at a higher index than any other global flag?

I don't know what that means so, no i'm not sure.

7
SCI Syntax Help / Re: Adding a room to Quest for Glory 1 (VGA)
« on: May 13, 2020, 07:41:30 PM »
I've made some decent progress on this room now. The room now knows whether or not the troll is dead, the troll will fight you if he's not dead and you get too close to his pile of stuff, after the fight it returns you to the room and the troll falls over dead, and you can search his pile of stuff and only get treasure once. I am, however, seeing a problem with that last one.

If i hack a game save first thing so i can beat the troll right away, the first place i go it to the troll cave. I can get in and fight the troll in the first part of the cave, the part that existed in the release, and i can go to the new part of the cave and get the loot from the pile. No troll in that part, i can only get the loot once, works perfect. However, if i play longer before visiting the cave, it thinks the loot is already taken even when it's not. the rest of the room works as expected. It's as though the flag is being set at some other point in the game but that shouldn't be possible. It uses a global variable that I added myself that shouldn't be referenced anywhere else in the game.

I'll drop some code below. If anyone has any thoughts i'd like to hear them, please.

Quote
(instance robLoot of Script
   (properties)
   
   (method (changeState newState)
      (switch (= state newState)
         (0 ;N_LOOT
            (Narrate 13 self) ;dig through loot
         )
         (1
            (if (Btst digPile)
               (= rando (Random 15 16))
               (Narrate rando self) ;already got loot
            else
               (Narrate 14 self) ;get the loot
               (ego get: iSilver 30)
               (ego get: iGold 5)
               (Bset digPile)
            )
         )
      )
   )
)

8
SCI Syntax Help / Re: Show line numbers in script editor?
« on: April 24, 2020, 12:59:12 PM »
okay, cool. that'll help a lot! thanks!

9
SCI Syntax Help / Show line numbers in script editor?
« on: April 24, 2020, 11:11:47 AM »
Is there a way to show the line numbers in the script editor? When the compiler errors out, it tells us which line it has a problem with. I'm looking for an easy way to find that line, up to now I've just been counting. I looked through the preferences but didn't see anything that looked like it would do it. maybe i missed something.

thanks for any help

10
SCI Syntax Help / Re: Adding a room to Quest for Glory 1 (VGA)
« on: April 24, 2020, 12:33:59 AM »
I just ran into something weird! I went to put the troll in my new room and it turned the entire background pic to black. I scratched my head for a few hours over it but did eventually manage to fix it. All the unused colors in the troll's pallet were set to used, and therefore showing as black. I changed them all to unused and it seems to have fixed the problem. i hope it doesn't creep into any other views.

11
SCI Syntax Help / Re: Adding a room to Quest for Glory 1 (VGA)
« on: April 18, 2020, 10:08:21 AM »
Fantastic! Thank you so much! :)

12
SCI Syntax Help / Re: Adding a room to Quest for Glory 1 (VGA)
« on: April 17, 2020, 06:38:16 PM »
Thank you very much Kawa. it seems to be working quite well. soon i'll be able to move on to the part of the project i expected to be hard. lol

I do have one more question, for now. gMessager class by default displays the messages toword the top of the screen. this new Narrate procedure you have written displays at the middle of the screen. is it possible to modify the code so that it will disply toward the top?

Again, the help you've been is enormous, thank you

13
SCI Syntax Help / Re: Adding a room to Quest for Glory 1 (VGA)
« on: April 17, 2020, 11:30:34 AM »
Thank you Kawa, I very much appreciate you help.

I tried both versions of the code you posted. They both compile without error but neither one works, unfortunately.

 The one without Talker support kicks back the error "Msg 999: 22 0 0.2 not found" then the game stops responding to input, the cursor moves around but won't anything else, not even bring down the menu.

 The version with Talker support give the error "<Messager findTalker:> can't find talker" then the game crashes.

Any thoughts?

I'm sorry I can't figure these things out on my own. this is my first time coding SCI and if its not in the tutorial its gonna take me a while.

14
SCI Syntax Help / Re: Adding a room to Quest for Glory 1 (VGA)
« on: April 16, 2020, 07:52:56 PM »
Thanks Kawa.
I don't mind leaving out messenger class. My new room has no one to talk to so i don't need talkers. all i need is something that will display, for instance, line 4 from text resource 118. Can you help me get something like that working? i couldn't figure it out from the documentation. i must be missing somthing obvious.

15
SCI Syntax Help / Re: Adding a room to Quest for Glory 1 (VGA)
« on: April 16, 2020, 02:00:32 PM »
Thank you very much EricOakford! valuable information! in the mean time, is there anything i can do to make my thing work? can i use Text resources? I tried but couldn't figure it out. maybe someone can help?

Pages: [1] 2 3

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

Page created in 0.139 seconds with 22 queries.