Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have less text in configuration files by copying information from other items #3159

Open
9 tasks
ErminioLucente opened this issue Apr 18, 2024 · 2 comments
Open
9 tasks

Comments

@ErminioLucente
Copy link

ErminioLucente commented Apr 18, 2024

REQUEST
Allow modders to inherit properties from existing scripts from their related fields, taking and using all its functions and overriding those rewritten.

  • creature.cfg
  • crstates.cfg
  • cubes.cfg
  • keepcompp.cfg
  • lenses.cfg
  • magic.cfg
  • objects.cfg
  • terrain.cfg
  • trapdoor.cfg

Example....

[spell98]
Name = SPELL1
CastAtThing = 0
ShotModel = NOSHOT

[spell99 : spell98] :
Name = SPELL2
ShotModel = NOSHOT_2

@Loobinex
Copy link
Member

@ErminioLucente this one I do not understand, could you clarify?

@ErminioLucente
Copy link
Author

ErminioLucente commented Apr 20, 2024

this one I do not understand, could you clarify?

A shot (or instance, spell, room, whatever it might be) that basically takes another shots properties and simply uses those fields as its own without needing to write those out. i believe TheSim or Q knows about this request.

Another Example...
[spell66]
Name = SPELL1
CastAtThing = 0
ShotModel = NOSHOT

[spell67] :
Name = SPELL2
INHERIT = SPELL1 << here we take all the properties from spell 1 to use for this shot.
ShotModel = NOSHOT_2 << this here does not inherit the shot property, instead uses this as its own.
you will notice how cast at thing is not listed, thats because i dont need/want to change its properties for this shot.

@Loobinex Loobinex changed the title Script inheritance (Request) Have less text in configuration files by copying information from other items Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants