Jump to content

Photo

Shop64 - PREVIEW

SCRIPT IDEA

  • Please log in to reply
8 replies to this topic

#1 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 20 July 2023 - 09:56 AM

ZELDA64 BASED SHOPs

My girlfriend's son asked me to write a Resident Evil Engine
(Subscreen(Equip/Use, Combine, Check feat.), Weapon+Ammunition, Typewriter Saves(InkRibbon-Check, SaveRoom->FileRename feat.), etc.).

While working on it, I realized that I already gathered everything, that would be nessessary for a OoT/MM based Shop script.
A "lite version" of my RE Subscreen script, can actually manage the entire Zelda64 Shop features.

So I'm gonna work it out.

I'm just posting it, to see if other users would be intressted in this feature.


...example screen
9QTycTj.png


I'll post my progress here
...till everythings ready for the database


Edited by Bagu, 24 July 2023 - 03:08 PM.

  • Twilight Knight, Taco Chopper, Aslion and 2 others like this

#2 Twilight Knight

Twilight Knight

    Tell all with glee, Argon's on PureZC

  • Members
  • Real Name:Sven
  • Location:Rotterdam, NL

Posted 20 July 2023 - 01:15 PM



I immediately got this stuck in my head

So yeah... I'm interested in such a script!


  • Bagu likes this

#3 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 20 July 2023 - 01:17 PM

I immediately got this stuck in my head

So yeah... I'm interested in such a script!

I've been listening to this tracks, when I was making the example graphics :) :) :)


Edited by Bagu, 20 July 2023 - 01:17 PM.

  • Twilight Knight likes this

#4 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 24 July 2023 - 01:40 PM

It's already finished.

I'm just gonna sort it, for an easy SetUp and then I'll load it up

...p.S.: ...at the End of the Video you can see my HangmanBlox working.
...a script that Architect Abdiel asked me to write

 

But well, I really have to sort it
...cause at the moment it follows the first rule of programming :)

347613935_2541726135981722_4378261220011


Edited by Bagu, 25 July 2023 - 02:45 PM.

  • Twilight Knight, sutibu and connor.clark like this

#5 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 25 July 2023 - 05:34 AM

BTW...
...I wrote a namespace, containing all variables, arrays and functions, and 3 scripts (2 FFC, 1 ComboData),
which can read and write in the namespace to interact with each other.

The 3 Sripts handle everything , shown in the preview video:
https://www.purezc.n...78262&p=1074084

The 1st is the FFC, placed on the market stall.

1) FFC: MarketStall

- if the player's close enough, facing the ffc and pressing "A", it save's the current DMap, Screen, X-/Y-Coordinates and player's Direction

- it fades out the current screen, before warping to a certain ShopScreen, on the Shops' DMap (declared in the FFCs D[0-7] Arguments)
  I added this fade out for extra smooth and soft crossing

- can display 1 of 3 Inventory Icons, by checking certain flags of the FFC
OPTIONAL FEATURE:
 - can be used to declare iventory-specific shops: weapons, armors, utilities / or just to show if a shop sales special items) 
 - if unwanted, don't check any of the related FFC flags

I'm gonna add a variable message and a dialogue string (view stall? "yes/no"), to introduce the interaction.



2) COMBODATA: ShopTypes

 

- sets Shop- Items and Prices
- place it on a Screen, on layer 0 covered by other layers and it sets 8 items and 8 prices,
  by reading its own Attribytes and Attrishorts

- can display the Shop Name, instead of a DMap Title

...
I'm going to add flexible ways to create 2 types of Shop Puzzles

Change: This will either change entire Inventory or just single Items + Prices.
Refuse:  Will either refuse to sell certain items or refuse to trade entirely.

Theese features can be set by ScreenData Flags (General Purpose) to declare the screen as a "Puzzle Shop".
The puzzle Type and Solution can be defined by the Combo's Flagset

...for example...

PUZZLE TYPE FLAGS 0 & 1:
-Flag[0] = TYPE: Change, Flag[1] = TYPE: Refuse

SOLUTION TYPE FLAGS 2+:
Flag[2]  = checking Screen Secrets,  Flag[3] = checking certain Item, Flag[4] checking certain Counter,
Flag[5] checking if the player's on a certain Screen Flag, (etc)

If the solution flag is Flag[3] or bigger (so checking for Items, Counter Values, Screen Flags under the Player),
the individual solution Item ID, Counter ID and Value, or Screen Flag number is set by the Combo's Attributes.


2) FFC: Shop64

 

The actual Shop Screen Script

The FFC handles the entire trading interaction sequnce.

- it plays an individual Intro and outro Message
- it displays all Items, Dialogue Strings + Cursor
- It starts and breaks the NPC Animations (btw the NPC is an LWeapon instead of an FFC, because of easier extending and
  graphical flexibility.
- it does, what a shop code should do... checks if you've got engough money for the selected item and if so it adds it adds the item
  and adds Amount & Max Increase to the related DCounter ...and drains the Rupee Counter. 

- After trading, it fades out the current shop screen and warp to the saved, previous DMap, Screen and Coordinatesand restores

  the previous direction.

 


Edited by Bagu, 25 July 2023 - 06:23 AM.

  • Twilight Knight likes this

#6 Twilight Knight

Twilight Knight

    Tell all with glee, Argon's on PureZC

  • Members
  • Real Name:Sven
  • Location:Rotterdam, NL

Posted 25 July 2023 - 12:47 PM

Great work! The shop seems to work very well, great OoT/MM replica I'd say.

I'm not using this script just yet for my own quest (tons of rework required), but I'd definitely use it in a potential future quest

 

 

That block word puzzle is very nice too, though I'd personally wouldn't lock the letter in place, giving away the puzzle, rather placing a hint for it elsewhere and/or make the word shorter too probably. Is this script publicly available? I know the perfect use case for it and don't worry I can tweak it myself to not lock the letter in place.

 

 

Also I'd recommend OBS studio to anyone, the best free video recording software :-)


  • Bagu likes this

#7 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 25 July 2023 - 02:12 PM

That block word puzzle is very nice too, though I'd personally wouldn't lock the letter in place, giving away the puzzle, rather placing a hint for it elsewhere and/or make the word shorter too probably. Is this script publicly available? I know the perfect use case for it and don't worry I can tweak it myself to not lock the letter in place.

 

 

Also I'd recommend OBS studio to anyone, the best free video recording software :-)

 

Thank you, very much :)

I can send you the HangmanBlox script, so you can probably rewrite it for your personal purpose.
I just wrote it as required by the Architect. So the blocks should simply keep being pushable, unless they're on the right slot.

I'm gonna try OBS for future Screen Records


Edited by Bagu, 25 July 2023 - 05:01 PM.

  • Twilight Knight likes this

#8 ShadowTiger

ShadowTiger

    The Doctor Is In

  • Members

Posted 26 July 2023 - 07:15 AM

An absolutely incredible experience.  I loved every minute of it!  So much attention to detail. <3  You've outdone yourself.

 

Also, because it's literally part of my IRL job, here's an obligatory spell-check.

Spoiler


  • Bagu likes this

#9 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 26 July 2023 - 09:19 AM

An absolutely incredible experience.  I loved every minute of it!  So much attention to detail. <3  You've outdone yourself.

 

Also, because it's literally part of my IRL job, here's an obligatory spell-check.

Spoiler


Thank you very much, for your correction.

My english is not the best, at all.
And I was so focused on writing the scripts, that I surely missed to correct some spelling errors.

But you know...
...some say Bagu's Brother was Error ;)


  • ShadowTiger likes this


2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users