Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #575

Closed
Open
Created Oct 07, 2021 by TheSlapDoctor@DeSlapDoctor

Use variables in AI Goals

Summary

I'd like to be able to use variables when setting AI goals. At the moment something like 'runaigoalselector{goal=goto <caster.var.xDest>,<caster.var.yDest>,<caster.var.zDest>}' returns a parse error. At the moment the runaigoalselector mechanic seems to handle this naively, directly setting the AI goals as 'goto <caster.. etc.>

Usage

Being able to parse variables when setting goals opens a lot of options that are impossible with the current implementation. For example, we could allow skills change the goals of a mob programmatically, allowing for more complex and interesting behaviour.

Value

Probably a lot, but specifically I want to use it to make things like wandering parties of mobs that are persistent in the world, or allow skills to trigger to direct mobs to certain areas or on certain patrol paths.

Priority

High, because I personally want it and think it'd be cool.

Implementation

Changing the AI goals system to allow for variables might be difficult, but letting the runaigoalselector mechanic parse the variables into their values before actually setting the AI goal might work more easily.

Thanks.

Edited Oct 07, 2021 by TheSlapDoctor
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking