I want to share a trick I learned handling inform7 stories when you want to make debug commands ``` unresolvecheat is an action applying to one topic. understand "unresolve [text]" as unresolvecheat. carry out unresolvecheat: repeat with X running from 1 to number of filled rows in Table of GameEventIDs: choose row X from the Table of GameEventIDs; if Name entry exactly matches the text topic understood, case insensitively: now Object entry is unresolved; break; ``` the above code functions to modify the property of an event in the table of GameEventIDs so that the player can attempt it again. at first I was having trouble because i couldnt figure out how to modify a property of a selected row but then i figured out the answer was Object entry. This is important because X which is what i attempted to use at the start is not the object but the index of the object in the table. ergo I attempted to make this line work ``` now X is unresolved; ``` but it was syntaticly invalid
author | jfmherokiller |
---|---|
permlink | how-to-modify-an-object-in-a-table-in-inform-7 |
category | programming |
json_metadata | {"tags":["programming","technology","inform7"],"app":"hiveblog/0.1","format":"markdown"} |
created | 2020-06-29 08:04:54 |
last_update | 2020-06-29 08:04:54 |
depth | 0 |
children | 2 |
last_payout | 2020-07-06 08:04:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.170 HBD |
curator_payout_value | 0.169 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,002 |
author_reputation | 311,353,057,143 |
root_title | "how to modify an object in a table in inform 7" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 98,238,383 |
net_rshares | 1,415,432,839,601 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
inertia | 0 | 962,018,178,426 | 100% | ||
tykee | 0 | 1,560,885,283 | 30% | ||
muksihs | 0 | 2,632,746,248 | 100% | ||
kamchore | 0 | 107,166,473,561 | 30% | ||
bala41288 | 0 | 31,370,902,049 | 12% | ||
laissez-faire | 0 | 67,246,047 | 100% | ||
bleuxwolf | 0 | 264,854,955,665 | 100% | ||
limka | 0 | 57,191,527 | 100% | ||
gitplait | 0 | 45,704,260,795 | 60% |
It's nice sharing your ideas and I really do appreciate you for that. Thanks for sharing 👍 <sub> **Your post has been submitted to be manually curated by @gitplait community account because this is the kind of publications we like to see in our community.** </sub> Join our [Community on Hive](https://hive.blog/trending/hive-103590) and Chat with us on [Discord](https://discord.gg/CWCj3rw). [[Gitplait-Team]](https://gitplait.tech/)
author | gitplait-mod2 |
---|---|
permlink | re-jfmherokiller-qcomrv |
category | programming |
json_metadata | {"tags":["programming"],"app":"peakd/2020.06.2"} |
created | 2020-06-29 10:08:03 |
last_update | 2020-06-29 10:08:03 |
depth | 1 |
children | 1 |
last_payout | 2020-07-06 10:08:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 440 |
author_reputation | 28,898,670,427 |
root_title | "how to modify an object in a table in inform 7" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 98,239,731 |
net_rshares | 0 |
you are welcome inform7 is a tough language not just to code but to also describe because of its english-like (well too be fair it also supports other languages) syntax. you can quickly end up trying to describe the language using parts of the language.
author | jfmherokiller |
---|---|
permlink | qcp7p9 |
category | programming |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2020-06-29 17:39:15 |
last_update | 2020-06-29 17:39:15 |
depth | 2 |
children | 0 |
last_payout | 2020-07-06 17:39:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 253 |
author_reputation | 311,353,057,143 |
root_title | "how to modify an object in a table in inform 7" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 98,246,079 |
net_rshares | 0 |