When creating dynamic variables, you need to stitch them together.
//set %flood. $active TRUE
Results in a variable named %flood. containing data #mirc TRUE
//set [color:red]$+(%,flood.,$active) TRUE[/color]
Results in a variable named %flood.#mIRC containing data TRUE
Note that you need to evaluate the variable when retrieving the data from it.
//echo -a [color:red]$($+(%,flood,$active),2)[/color]
- Raccoon
___
Edit: Noticing that you changed your example...
//set %flood. [color:red]$+ $active TRUE[/color]
Results in a variable named %flood.#mIRC containing data TRUE
This appears to be the effect you desire.
//say %flood. $+ $active
Results in a message > #mirc
This is *not* the effect you desire because %flood. is being evaluated before your dynamic variable is formed. The change made to /set & /var only effect the evaluation of variables in /set and /var commands. You must still use the method above for retrieving the data.
- Raccoon