Minor Troubles with Stock Areas

  • Chime
  • Chime's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
4 months 1 week ago #8073 by Chime
Minor Troubles with Stock Areas was created by Chime
Hi there! I'm not particularly interested in losing the stock zones in general, but I have noticed that the more I customize the codebase the more the stock zones become "buggy." For example, in my TBA project the stock skills and spells are almost completely gone, so the triggers in stock zones that use them have gone a bit haywire. They clearly aren't crashing my game, just an annoyance.

Editing the triggers one by one has been my course of action so far, but it is a little unnecessarily time consuming. I'd like to keep the stock zones for the DG script examples, OLC guides and such, which are extremely useful, but I'm wondering if there's a simpler way than hand-editing triggers to resolve these kinds of minor issues across the board. Is there a command for disabling a trigger from inside trigedit, maybe? I think that would be quicker than editing the scripts themselves. Or maybe disabling triggers from loading/firing in an area altogether?

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #8074 by thomas
Replied by thomas on topic Minor Troubles with Stock Areas
short answer - no such switch exists.

However, if I was the one with this problem, I'd use a script to fix it in the lib/world/trg/*.trg files, adding a * in front of casts of spell that no longer exist, for example.
sed -i .bak 's/dg_cast\ 'magic\ missile'/*dg_cast\ 'magic\ missile'/g' *.trg
The following user(s) said Thank You: Chime

Please Log in or Create an account to join the conversation.

  • Chime
  • Chime's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
4 months 1 week ago #8075 by Chime
Replied by Chime on topic Minor Troubles with Stock Areas
Thank you Thomas. Simple and good solution.

Please Log in or Create an account to join the conversation.

Time to create page: 0.991 seconds