Talk:How do I make a "fake inn"?

From OHRRPGCE-Wiki
Jump to navigation Jump to search

Bob the Hamster: Why is this script so complicated? It does a huge amount of work checking which slots are free and which are filled, and stores them in a bunch of tags, but why bother? "inn case 7" will work fine no matter how many heroes are in the party, since attempting to use the "get hero stat"/"set hero stat" commands on an empty slot will just fail silently.

Bis_Senchi: Well strangely enough I didn't have problems with "inn case 7". When I test, all the heroes are correctly detected in their respective slots and correctly appears in the text boxes. Do you think it would be a good idea to ask ploscripts writers on the forum to help me to improve the code?

With this script, I tried to reproduce the old inn we had under custom.exe.

Bob the Hamster: Well, I wasn't saying that anything was wrong with inn case 7, it just seems to me that inn case 7 is the only case you should need, since setting stats on an empty slot is harmless.

If the script works for you, that is great, but if it is here on the wiki as an example, I really think it should be made as clean and simple as possible. Posting it on the plotscripting forums is a great idea.

Bis_Senchi: All right! I guess that it is a good occasion to embetter it!