Pazyryk
Deity
- Joined
- Jun 13, 2008
- Messages
- 3,584
I should be pretty good at looking at Lua code and understanding it by now. But I'm struggling with interface modes in WorldView.lua and InGame.lua.
What I want to do is create an interface mode to select a plot. It's for a spell, so there is a casting unit and a max range. Unit casts spell and then (if active player) interface mode should happen to allow plot selection. When player selects plot, stuff happens. I can code the spell and the stuff that happens, but I need some help or example code to follow for the interface part. Can anyone help?
What I want to do is create an interface mode to select a plot. It's for a spell, so there is a casting unit and a max range. Unit casts spell and then (if active player) interface mode should happen to allow plot selection. When player selects plot, stuff happens. I can code the spell and the stuff that happens, but I need some help or example code to follow for the interface part. Can anyone help?