Calculator Community > Pokémon Purple

[PP] Progress '10

<< < (3/89) > >>

tifreak:
Thanks, and yes, I am happy that that part works too.

Next up is working on the 'Event NPCs'.

Basically they are things that are effected by you doing certain things. An example would be Ash's mom. She repeatedly just says you need to gtfo and the prof is looking for you. Once you get your pokemon, she will then be able to heal.

This part is easy to code. It is a matter of 'groups'. Each 'group' is based off the NPC#, And then those check to see if the L_EVEN list element is tripped. From there, it sub(s the string and dumps it back off into Str7 for safe keeping until it is needed.

I also just realized that I can eliminate 2 bytes per NPC string being used for the normal NPCs and 4 or more for the ones that are event related. The event related ones I currently have separated out in to chunks split by the '[' character, but I will end up removing them as I get the ZNPCEV program created.

Hooray for small optimizations XD

Builderboy:
Wow, this is a very good milestone!  Everything looks very nice :)

(and good job on the smal optimizations ;))

tifreak:
Thanks.

I might have to create a program so I can select a point in a string and have it tell me what positions and stuff to use XD

Counting strings on paper is just not nearly as fun as it looks, let me tell ya.

ztrumpet:
Sounds great!  Good luck.

I don't know if this would be useful to you, but here's my favorite way of using sub(.
ex:
2->A //You want the second item
{1,6,6,4,1,4,1 // 1 followed by the lengths of the Item. (Item 1 has a length of 6, Item 2 has a length of 6, Itm3 has a length of 4... )
sub("Item 1Item 2Itm3455556",sum(Ans,1,A),Ans(A+1

This results with the second item, "Item 2".
I hope this helped someone. :)

tifreak:
Item names are stored in a program, line by line so just need to be recalled from there with celtic 2.

And that might be useful to someone. Not saying it isn't, but not sure how that will help me at this time. Thanks tho.

Right now I have the code written out for the events npcs, will possibly get that put in tonight, might be tomorrow tho. Lots to do this evening.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version